Adaptive monitoring and cluster check
Posted: Wed Feb 01, 2012 3:43 pm
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
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