Stop monitoring a host if it's OFF and re-monitor when ON?
Posted: Mon Nov 12, 2018 7:29 am
Hi guys!
I was wondering if there's a possibility that Nagios could stop monitoring a Host if it's OFF, and turn monitoring ON when it's ON?
The idea was to use my Nagios server that will monitor if a CLIENTserver is OFF through a script which uses an API, and if the CLIENTserver is off it'll auto-remove its monitoring on it, But if the server is ON it'll re-install the monitoring automatically into the templates,
The reason I need it is because there are Hourly CLIENTservers that we need to monitor aswell, and when the hourly servers are OFF it's SPAMMING US with alerts.
I know there are better ways for it, I welcome every solution.
Thanks allot!
I was wondering if there's a possibility that Nagios could stop monitoring a Host if it's OFF, and turn monitoring ON when it's ON?
The idea was to use my Nagios server that will monitor if a CLIENTserver is OFF through a script which uses an API, and if the CLIENTserver is off it'll auto-remove its monitoring on it, But if the server is ON it'll re-install the monitoring automatically into the templates,
The reason I need it is because there are Hourly CLIENTservers that we need to monitor aswell, and when the hourly servers are OFF it's SPAMMING US with alerts.
I know there are better ways for it, I welcome every solution.
Thanks allot!