Adaptive monitoring and cluster check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
[email protected]
Posts: 6
Joined: Wed Feb 01, 2012 3:35 pm

Adaptive monitoring and cluster check

Post by [email protected] »

Hello,

I have a firewall cluster that runs dhcp on the external interface (This is my home network and my isp only supports dhcp unfortunatly).

Anyway, During a failover I disable the external interface on the inactive firewall, I would like for nagios to report the interface as OK since when the firewall is not active that is the way the interface should be.

So I read the chapter about adaptive monitoring and created two identical check_snmp_int services, one of them use the negate command. So far so good. I was about to create an event handler script to use the CMD_CHANGE_SVC_CHECK_COMMAND command to make the inactive firewall negate its check. When I couldn't get it to work and scratching my head for a while I googled my way to the information that these commands have been disabled (A little annoying that the manual doesn't say so).

So my question now is can I achieve this some other way. To make it clearer, this is what I want to achive.

fw1
When fw2->eth0 == Up, check that fw1->eth0 == Down

fw2
When fw1->eth0 == Up, check that fw2->eth0 == Down

Regards
Magnus
Locked