Page 1 of 1
Active/Passive monitoring
Posted: Mon Nov 29, 2021 1:04 pm
by preethu.d
Hi Team,
We have a firewalls set up in Active/Passive mode, if Active firewall is up and running, all the ports on passive firewall will be admin down, is there any way to stop port monitoring of passive firewall instead of disabling it manually ? Also when this become active is there any way to re-enable its monitoring and stop passive firewall port monitor ?
Regards,
Preethu
Re: Active/Passive monitoring
Posted: Mon Nov 29, 2021 5:29 pm
by ssax
You could point the checks at the firewall cluster VIP instead of each individual firewall, then it should always monitor the active node.
Re: Active/Passive monitoring
Posted: Tue Nov 30, 2021 12:09 pm
by preethu.d
Hi,
Can you please elaborate on this.
Regards,
Preethu
Re: Active/Passive monitoring
Posted: Tue Nov 30, 2021 7:22 pm
by ssax
You can either re-run the Network Switch / Router wizard against the VIP or edit your host in Configure > Core Config Manager > Hosts and set the address to the VIP.
After thinking about this though, I don't think that will work if any of the SNMP lookup tables for the interfaces will be different (they likely will).
What you could do is setup an event handler script that would fire when you want it to disable the checks from occurring:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://assets.nagios.com/downloads/nag ... mand_id=34
Re: Active/Passive monitoring
Posted: Tue Dec 14, 2021 5:44 am
by preethu.d
Hi,
Is there any sample script you can share for this scenario.
Regards,
Preethu
Re: Active/Passive monitoring
Posted: Tue Dec 14, 2021 5:55 pm
by kfanselow
Hi Preethu,
Unfortunately we do not have prebuilt scripts for this scenario but you can take a look at our "Core External Commands" which include example scripts that should be useful to you.
List of the external command functions available with script examples:
https://assets.nagios.com/downloads/nag ... ernalcmds/
Here specifically is the DISABLE_HOST_CHECK example.
https://assets.nagios.com/downloads/nag ... mand_id=34
Hope this is useful.
Thanks and Best Regards,
Keith