> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Philip Hallstrom > Sent: Wednesday, March 29, 2006 3:54 PM > To: [email protected] > Subject: [Nagios-users] multiple nagios monitoring that have to agree? > > I've read through the docs and distributed, failover, and redundant > monitoring, but those didn't seem to apply. > > I'm wondering if two nagios instances can be set up to monitor the > same hosts/services and have to agree with each other before sending a > notification?
That's not a standard configuration and you'd probably run into timing issues. If NagiosA has checked the service and finds it down, NagiosB may not have checked the service yet and may still consider it up. What do you do then (nothing?)? How can you tell the difference (Last Check time?)? Nagios isn't built for that kind of coordination. For an off-the-cuff suggestion, if you used multiple retries and didn't specifically require that both servers see the state as HARD you could embed that logic in your notification script. - NagiosA always sends notifications. - ServiceX on HostY reaches hard state. - NagiosA initiates notification for ServiceX on HostY - Notification script searches status.log on NagiosB or performs HTTP screen scrape on NagiosB to determine state of ServiceX on HostY as seen from there. - If NagiosB shows CRITICAL, send notification - If only one shows critical do nothing(?) - repeat at regular intervals in case NagiosB was slow to pick up the state (or use the vice-versa logic to also send notifications from NagiosB) There are probably pitfalls but I think that's how I would approach it at first. -- Marc ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Nagios-users mailing list [email protected] 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
