Monitoring question

Marc Powell marc at ena.com
Wed Jan 17 18:50:53 CET 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Andy Shellam (Mailing
Lists)
> Sent: Wednesday, January 17, 2007 11:30 AM
> To: Formoso, Travis
> Cc: nagios-users
> Subject: Re: [Nagios-users] Monitoring question
> 
> Formoso, Travis wrote:
> >> OK I will try to give it the check_http check and see if it works
when
> I > > bring down the httpd.


> > 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?
> >
> 
> Have you tried running the "restart-httpd" command as the Nagios user
> from the console?

Always a good suggestion.

> Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up,
> and it looks like Nagios doesn't provide any delay between running the
> event handler, and the subsequent check if httpd's running.

Yes, there is a delay between the event_handler running and the next
check for services at least. Whatever retry_check_interval is set to is
the time nagios will wait to check again after executing the
event_handler. Travis's retry_check_interval appears to be 1 minute (60
seconds).

--
Marc

-------------------------------------------------------------------------
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