Enhancement #2003

Negotiate Check Results

Added by christian evertz over 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:10/19/2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:fixed

Description

Hi,

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.

Example:
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.

Kind Regards
Christian

History

#1 Updated by Julien Mathis over 3 years ago

Yes but this option must be on command ?

So if I follow your idea, I obliged to duplicate all commands: one for the real command and one for the negate command. No ?

#2 Updated by Sylvestre Ho over 2 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Hi,

Or you could just use custom macros in all your commands:
$_SERVICENEGATE$ $USER1$/check_ping ....

service definition:
_SERVICENEGATE $USER1$/negate -s

Leave it blank if no need to negate.

Also available in: Atom PDF