Is this the correct way of defining an event handler script?
if [[ "$NAGIOS_SERVICESTATE" = "CRITICAL" ]]
Doesn't seem to get evaluated as true.
If I remove the if then it gets run every time the check runs. So that bit is ok.
Inside the service check only the event handler script name is specified. Would I have to add $NAGIOS_SERVICESTATE$ as an argument to be passed?