Monitoring question

Formoso, Travis Travis.Formoso at blueslate.net
Wed Jan 17 16:58:30 CET 2007


> OK I will try to give it the check_http check and see if it works when I > > bring down the httpd.

Here is what I have now: (I added the event handler to http)

# http
define service{
 use                            generic-service

 host_name                      www.blueslate.net,prpc,mars.blueslate.net,localhost
 service_description            HTTP
 is_volatile                    0
 check_period                   24x7
 max_check_attempts             3
 event_handler                  restart-httpd
 normal_check_interval          3
 retry_check_interval           1
 contact_groups                 bssadmins
 notification_interval          60
 notification_period            24x7
 notification_options           w,u,c,r
 check_command                  check_http!guest:guest
}

Here is the output of the log file:

[1169048695] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection refused
[1169048695] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;1;restart-httpd
[1169048755] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection refused
[1169048755] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;SOFT;2;restart-httpd
[1169048815] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;3;Connection refused
[1169048815] SERVICE NOTIFICATION: tformoso;localhost;HTTP;CRITICAL;notify-by-email;Connection refused
[1169048815] SERVICE EVENT HANDLER: localhost;HTTP;CRITICAL;HARD;3;restart-httpd

I shut down the httpd - however the service did not restart auto - so the handler is not working. Any thing I can try or did wrong?





This e-mail and any files transmitted with it are for the sole use of
Blue Slate Solutions and the intended recipient(s) and may contain
confidential and privileged information. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
or any action taken in reliance on this e-mail is strictly prohibited
and may be unlawful.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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