R: R: start a script automatically
Marco Borsani
m.borsani at it.net
Wed Apr 5 14:52:18 CEST 2006
I am using NSClient ...
Marco
_____
Da: Toto Capuccino [mailto:shoktai at gmail.com]
Inviato: mercoledì 5 aprile 2006 12.52
A: Marco Borsani
Cc: NAGIOS
Oggetto: Re: R: [Nagios-users] start a script automatically
Just write sc4ripts in whenever languages you feel happy with and then use
nrpe to execute them on the Win host.
2006/4/5, Marco Borsani <m.borsani at it.net <mailto:m.borsani at it.net> >:
Well, now it is working correclty!
There was a network problem between the hosts.
I still have to know how to run a command with the Event Handler on a
Windows 2003 server.
Moreover, will I have any authentication problems?
Any idea?
Regards.
Marco
-}-----Messaggio originale-----
-}Da: nagios-users-admin at lists.sourceforge.net
-}[mailto:nagios-users-admin at lists.sourceforge.net
<mailto:nagios-users-admin at lists.sourceforge.net> ] Per conto
-}di Marco Borsani
-}Inviato: mercoledì 5 aprile 2006 9.59
-}A: 'Marc Powell'
-}Cc: 'NAGIOS'
-}Oggetto: R: [Nagios-users] start a script automatically
-}
-}
-}-}Marc wrote:
-}-}
-}-}Not without the rest of the error that you chopped off.
-}-}What's the '....' part? That's probably the most useful bit
-}-}of information. You've been on the list long enough to know
-}-}we need more information than that
-}-};)
-}
-}Complete message is:
-}Warning: Attempting to execute the command
-}"/usr/local/nagios/libexec/eventhandlers/restart-http
-}$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$"
-}
-}I see restart-http script on the manual (in the "event
-}handlers" chapter) and copy it to test and understand how
-}event handlers work.
-}
-}-}
-}-}Can you run restart-http as the nagios user? Show us the
-}-}command and service definition. Verify that you're using
-}full -}paths for commands used within restart-http. Detail
-}what -}restart-http is doing specifically.
-}-}
-}
-}# 'restart-http' command definition
-}define command{
-} command_name restart-http
-} command_line
-}/usr/local/nagios/libexec/eventhandlers/restart-http
-}$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$
-} }
-}
-}One problem could be "where" define restart-http command.
-}Yesterday I put it in the checkcommands.cfg file, today I am
-}defined it in the misccommands.cfg.
-}Another one is how to restart the httpd (in this case) like
-}nagios user (the manual mentions this possibility, but no
-}ideas are given to solve it).
-}Again, if I would run a command on a Windows 2003 server, how
-}will I do ?
-}
-}Regards
-}Marco
-}
-}
-}
-}-------------------------------------------------------
-}This SF.Net email is sponsored by xPML, a groundbreaking
-}scripting language that extends applications into web and
-}mobile media. Attend the live webcast and join the prime
-}developer group breaking into this new coding territory!
-}http://sel.as-us.falkag.net/sel?cmd=lnk
<http://us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&>
&kid=110944&bid=241720&
-}dat=121642
-}_______________________________________________
-}Nagios-users mailing list
-}Nagios-users at lists.sourceforge.net
-}https://lists.sourceforge.net/lists/listinfo/nagios-users
-}::: Please include Nagios version, plugin version (-v) and OS
-}when reporting any issue.
-}::: Messages without supporting info will risk being sent to /dev/null
-}
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk
<http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642>
&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
<mailto:Nagios-users at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null
--
Le bon sens est la chose du monde la mieux partagée.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060405/eee16b67/attachment.html>
More information about the Users
mailing list