[Help] event handler for remote host.

axacheng axanet at ms32.hinet.net
Tue Nov 11 09:00:10 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hello list :

How do i use "event handler" to restart remote apache2 web server ?

i've read
http://nagios.ezplay.tv/nagios/docs/eventhandlers.html#example

but i cat NOT use event handler sccessful....event handler seems NOT
work....

my nagios.log as following:

[1068536872] SERVICE ALERT: backup;Apache;CRITICAL;SOFT;1;Connection
refused by host
[1068536872] SERVICE EVENT HANDLER:
backup;Apache;CRITICAL;SOFT;1;restart_apache2
[1068537022] SERVICE ALERT: backup;Apache;CRITICAL;SOFT;2;Connection
refused by host
[1068537022] SERVICE EVENT HANDLER:
backup;Apache;CRITICAL;SOFT;2;restart_apache2
[1068537092] SERVICE ALERT: backup;Apache;CRITICAL;HARD;3;Connection
refused by host
[1068537092] SERVICE NOTIFICATION:
sysadm;backup;Apache;CRITICAL;notify-by-email;Connection refused by
host
[1068537092] SERVICE EVENT HANDLER:
backup;Apache;CRITICAL;HARD;3;restart_apache2




- -- 
Trust & Unique ...
axacheng <axanet at ms32.hinet.net>

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0 - not licensed for commercial use: www.pgp.com

iQA/AwUBP7CXB2KaBUIt/7zHEQKfMQCeIsYMgRZL7QHMgRyD3kW3FSzppMsAn0RV
T1gum4lrO+SZZkiahq5a72VP
=dUqM
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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





More information about the Users mailing list