[Nagios-users] re-execute an event handler just in case the service stays DOWN
Hi, I would like one event handler to be re-executed just in case it failed for the first time. The docs (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you don't want that", but I am fairly confident that I want it in this case. I have a nagios host in a unattended site which generally gets its internet access from the site network. In case of a site network failure, the host needs to dial in to the Internet via modem to be reachable for debugging purposes. The nagios installation monitors a host on the Internet and has an event handler connected with this host which will initiate the dial-up when the "Internet host" goes into a HARD DOWN state. I would like this event handler to be re-executed in case the dial-up connection doesn't come up or goes down _before_ nagios has detected that the "Internet host" is UP again. Is there any way to accomplish this or am I better of with a cronjob which will initiate the dial-up from outside nagios? Any hints will be appreciated., Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] re-execute an event handler just in case the service stays DOWN
Hi Ludse, this issue was completely lost in space, sorry about that. [quoting fixed to get things back in context] On Thu, Jan 22, 2009 at 06:05:00PM +0100, Ludse Verhoeven wrote: > Marc Haber wrote: >> I would like one event handler to be re-executed just in case it >> failed for the first time. The docs >> (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you >> don't want that", but I am fairly confident that I want it in this case. I forgot to mention that this is a host event handler. >> I have a nagios host in a unattended site which generally gets its >> internet access from the site network. In case of a site network >> failure, the host needs to dial in to the Internet via modem to be >> reachable for debugging purposes. >> >> The nagios installation monitors a host on the Internet and has an >> event handler connected with this host which will initiate the dial-up >> when the "Internet host" goes into a HARD DOWN state. >> >> I would like this event handler to be re-executed in case the dial-up >> connection doesn't come up or goes down _before_ nagios has detected >> that the "Internet host" is UP again. >> >> Is there any way to accomplish this or am I better of with a cronjob >> which will initiate the dial-up from outside nagios? > Maybe the "is_volatile" option is something for you (see: > http://nagios.sourceforge.net/docs/3_0/volatileservices.html) Unfortunately, is_volatile seems to be a service only option, and I am checking the host. When I define a service to that host which has the is_volatile option set, the service event handler is never called since the service is not checked again once the host is in DOWN state. Any additional hints? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] re-execute an event handler just in case the service stays DOWN
Maybe the "is_volatile" option is something for you (see: http://nagios.sourceforge.net/docs/3_0/volatileservices.html) Met vriendelijke groet/with kind regards, Ludse Verhoeven AIX System Engineer T: +31 10 400 2440 F: +31 10 400 2891 E: ludse.verhoe...@vopak.com Vopak Information Services B.V. Trade Register (or local equivalent): 24146892 Visit Address: Westerlaan 10, 3016 CK Rotterdam Postal Address: P.O. Box 863, 3000 AW Rotterdam The Netherlands http://www.vopak.com A Royal Vopak company Marc Haber 22/01/2009 16:17 To nagios-users@lists.sourceforge.net cc Subject [Nagios-users] re-execute an event handler just in case the service stays DOWN Hi, I would like one event handler to be re-executed just in case it failed for the first time. The docs (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you don't want that", but I am fairly confident that I want it in this case. I have a nagios host in a unattended site which generally gets its internet access from the site network. In case of a site network failure, the host needs to dial in to the Internet via modem to be reachable for debugging purposes. The nagios installation monitors a host on the Internet and has an event handler connected with this host which will initiate the dial-up when the "Internet host" goes into a HARD DOWN state. I would like this event handler to be re-executed in case the dial-up connection doesn't come up or goes down _before_ nagios has detected that the "Internet host" is UP again. Is there any way to accomplish this or am I better of with a cronjob which will initiate the dial-up from outside nagios? Any hints will be appreciated., Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Nagios-users mailing list Nagios-users@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 -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] re-execute an event handler just in case the service stays DOWN
Marc Haber schrieb: > Hi, > > I would like one event handler to be re-executed just in case it > failed for the first time. The docs > (http://nagios.sourceforge.net/docs/3_0/eventhandlers.html) say "you > don't want that", but I am fairly confident that I want it in this case. > > I have a nagios host in a unattended site which generally gets its > internet access from the site network. In case of a site network > failure, the host needs to dial in to the Internet via modem to be > reachable for debugging purposes. > > The nagios installation monitors a host on the Internet and has an > event handler connected with this host which will initiate the dial-up > when the "Internet host" goes into a HARD DOWN state. > > I would like this event handler to be re-executed in case the dial-up > connection doesn't come up or goes down _before_ nagios has detected > that the "Internet host" is UP again. > > Is there any way to accomplish this or am I better of with a cronjob > which will initiate the dial-up from outside nagios? > > Any hints will be appreciated., Hi Marc, just use a notification to fire the eventhandler script. Disadvantage: only triggered on HARD states. Advantage: notification_interval to re-execute the script. Joerg -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] re-execute an event handler just in case the service stays DOWN
On Fri, Jan 23, 2009 at 06:41:20AM +0100, Joerg Linge wrote: > just use a notification to fire the eventhandler script. > Disadvantage: only triggered on HARD states. > Advantage: notification_interval to re-execute the script. That would prevent me from actually notifying. At least if one does not want to be notified once a minute ;) Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things."Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190 -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ Nagios-users mailing list Nagios-users@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