Negotiate Check Results
in Nagios Plugins, there is a script named negate.
It switch OK <-> Critical.
Nice to have a checkbox for Service and Host to mark as negated.
A Server physicaly disconnected from Network by Admin.
Nagios marks Host as down. In this case I negate the Hostcheck.
Same to Services (FTP SMTP etc.) set as offline by Admin.
Now I have to create a command check_host_up and its opposite check_host_not_up.
check_host_up: $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
check_host_not_up: $USER1$/negate -s $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
And I have to change the hostcheck command for the Host.
With the Checkbox the way should be more flexible.
In a first step the checkbox only add "$USER1$/negate -s" in front of the check command
Maybe in a second step the action of the checkbox can be configured by User.