Set Nagios Service to Pending State or Change color code
Posted: Mon Feb 04, 2019 7:49 am
Team,
I have a requirement that based on some condition, my service plugin has to set the return code of service check to "Pending".
I don't see any color code or option available to do this.
System Architecture:
I have a service running on 2 servers acting as master and slave and switching between these host/services happen real time.
Currently I have defined Host and Service definitions for both Hosts and Services.
My custom plugin:
1) Sets the Active Host to UP and Inactive Host is also set to UP but message as "Inactive Host"
2) Sets Active Service to OK and Inactive Service to WARN
The downside of this implementation is the WARN Services which basically mean that this service needs monitoring (Which can confuse client as its the expected state a slave service will be in).
Is there a way to display only the active Host and service? or change the color code of Inactive Host/Service on the fly?
I have a requirement that based on some condition, my service plugin has to set the return code of service check to "Pending".
I don't see any color code or option available to do this.
System Architecture:
I have a service running on 2 servers acting as master and slave and switching between these host/services happen real time.
Currently I have defined Host and Service definitions for both Hosts and Services.
My custom plugin:
1) Sets the Active Host to UP and Inactive Host is also set to UP but message as "Inactive Host"
2) Sets Active Service to OK and Inactive Service to WARN
The downside of this implementation is the WARN Services which basically mean that this service needs monitoring (Which can confuse client as its the expected state a slave service will be in).
Is there a way to display only the active Host and service? or change the color code of Inactive Host/Service on the fly?