Re: [Nagios-users] Monitoring question

2007-01-18 Thread Formoso, Travis
From: Marcel Mitsuto Fucatu Sugano <[EMAIL PROTECTED]> > Take a look at this article: > http://www.onlamp.com/pub/a/onlamp/2006/05/25/self-healing-networks.html > And mindless your network. > HTH Excellent - thank you! This e-mail and any files transmitted with it are for the sole use of

Re: [Nagios-users] Monitoring question

2007-01-18 Thread Marcel Mitsuto Fucatu Sugano
On Tue, 2007-01-16 at 17:51 -0500, Formoso, Travis wrote: > Hi guys, > > When monitoring services - I wanted to know if and when a service goes > down - is their a script to run that would try to bring the service > back up automatically? I wanted to know if nagios went this far. > Thanks a lot.

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> 'man sudoers' ;) The hand-holding approach is to -- > - run 'visudo' as root > - at the end of the file add 'nagios ALL= NOPASSWD: > /etc/rc.d/init.d/httpd' > - exit your editor > - test. Become the nagios user. If you're root, run 'su - > nagios' to become the nagios us

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Formoso, Travis > Sent: Wednesday, January 17, 2007 12:59 PM > To: andy.shellam-lists > Cc: nagios-users > Subject: Re: [Nagios-users] Monitoring question >

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> This really speaks of such a basic misunderstanding of how nagios > interacts with plugins that I'd suggest re-reading the documentation, > specifically the object configuration documentation and plugin theory. > Use the sample config files as a reference until you understand how > they're rel

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
> -Original Message- > From: Formoso, Travis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 17, 2007 12:22 PM > To: Marc Powell > Cc: nagios-users > Subject: RE: [Nagios-users] Monitoring question > > > > I shut down the httpd - however the servi

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> You will need to add "sudo" at the beginning of your command in Nagios - > e.g. "sudo /usr/local/nagios/libexec/eventhandler.." > I ran ./check-httpd as root and when I typed that in - nothing happened. I was trying to run the check-httpd script in the /eventhandler folder. If I run ./chec

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
> -Original Message- > From: Formoso, Travis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 17, 2007 11:58 AM > To: Marc Powell > Cc: nagios-users > Subject: RE: [Nagios-users] Monitoring question > > > The event handler _is_ being called ("SE

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Formoso, Travis wrote: >>> 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? >> > > Alway

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Marc Powell wrote: >> 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 star

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> > 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. I never was able to run anything a

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> The event handler _is_ being called ("SERVICE EVENT HANDLER"). If you're > using the example handler as is, it won't work. I'll bet you a free beer > that the nagios user does not have permission to restart httpd via the > init script. In cases such as this I use visudo to grant nagios > password

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] 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

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
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 what I have now: (I added the event handler to http) > > # http > define service{ > usegeneric-service > > host_name

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Formoso, Travis > Sent: Wednesday, January 17, 2007 9:59 AM > To: nagios-users > Subject: Re: [Nagios-users] Monitoring question > > > > OK I will try t

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> 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{ usegeneric-service host_name www.blueslate.net,prpc,mar

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> If you are checking for http to be running, then I would have thought that > the check_command would be something like > check_http, assuming you have it > defined > in your object configuration file. What you have currently is > checking for > NTP and is therefore giving you an alert even tho

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Rob Blake
If you are checking for http to be running, then I would have thought that the check_command would be something like check_http, assuming you have it defined in your object configuration file. What you have currently is checking for NTP and is therefore giving you an alert even though, as you say,

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> OK I tried to set up my first one today - testing the local host http from > > the sample provided on the page. Here is what I did. >check_command check_ntp } Well here is my error - however what would be the check_command for this event_handler? This e-mail and any

Re: [Nagios-users] Monitoring question

2007-01-17 Thread Formoso, Travis
> There are event handlers which, according to the docs, will run a > command to try and recover the service before sending a notification, > but I haven't (yet) implemented them, so you'd have to have a look at > the manual. You'd need to write the script yourself, it's impossible > for Nagi

Re: [Nagios-users] Monitoring question

2007-01-16 Thread Formoso, Travis
> There are event handlers which, according to the docs, will run a > command to try and recover the service before sending a notification, > but I haven't (yet) implemented them, so you'd have to have a look at > the manual. You'd need to write the script yourself, it's impossible > for Nagi

Re: [Nagios-users] Monitoring question

2007-01-16 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Formoso, Travis > Sent: Tuesday, January 16, 2007 4:52 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Monitoring question > > Hi gu

Re: [Nagios-users] Monitoring question

2007-01-16 Thread Aaron Segura
http://nagios.sourceforge.net/docs/2_0/eventhandlers.html From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Formoso, Travis Sent: Tuesday, January 16, 2007 3:52 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Monitoring question

Re: [Nagios-users] Monitoring question

2007-01-16 Thread Andy Shellam (Mailing Lists)
Formoso, Travis wrote: > Hi guys, > > When monitoring services - I wanted to know if and when a service goes > down - is their a script to run that would try to bring the service > back up automatically? I wanted to know if nagios went this far. > Thanks a lot. There are event handlers which, ac

Re: [Nagios-users] Monitoring question

2007-01-16 Thread Jay Chandler
Formoso, Travis wrote: > Hi guys, > > When monitoring services - I wanted to know if and when a service goes > down - is their a script to run that would try to bring the service > back up automatically? I wanted to know if nagios went this far. > Thanks a lot. > > It's called the Event Handler-

[Nagios-users] Monitoring question

2007-01-16 Thread Formoso, Travis
Hi guys, When monitoring services - I wanted to know if and when a service goes down - is their a script to run that would try to bring the service back up automatically? I wanted to know if nagios went this far. Thanks a lot. This e-mail and any files transmitted with it are for the sole