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