Nagios cluster

Marc Powell marc at ena.com
Tue Nov 21 22:05:03 CET 2006



> -----Original Message-----
> From: Steve Shipway [mailto:s.shipway at auckland.ac.nz]
> Sent: Monday, November 20, 2006 9:47 PM
> To: Marc Powell; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Nagios cluster
> 
> Marc wrote:
> > Steve wrote:
> > > How about this - on server B, have the global notifications
enabled
> set
> > > to no.  Then you add an extra check on server B that tests for
> server A
> > > being properly up.  This check has an Event Handler that edits the
> > > nagios.cfg to set the global notify flag to yes and restart
Nagios.
> > > Have a similar event handler to do the same in reverse when the
> server A
> > > reappears.
> >
> > There are external commands that you can send to the command pipe to
> > enable/disable host and service notifications from the eventhandler.
> > That's how I'd approach this particular task instead of editing
> > nagios.cfg and reloading. Enable/disable_host_notifications,
> > enable/disable_svc_notifications.
> 
> If it were for a single host I'd agree, but in this case we want to
> enable/disable ALL the notifications for ALL hosts and services on the
> standby server.  Also, but making the change in the nagios.cfg, we can
> preserve any disable flags in the active configuration over changes.
> 
> Unless, of course, there exists an external command to change the
global
> Notifications Enabled flag - but I don't think there is (at least, not
> in v1.4 which we run).

Yep --
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?com
mand_id=8

There's a matching DISABLE_NOTIFICATIONS. That's actually what I was
going for with my response but wasn't thinking straight.

> 
> On a side thought, you'd also need to enable/disable the global Event
> Handler flag,  if you use eventhandlers.  You may even want to have
> execture_service_checks disabled on the standby server, in order to
> decrease load on your monitored hosts.

There are external commands for both of those as well.

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