Hi,
That is looking pretty good, but the last argument should have the format as follows.
Code: Select all
ARG4$: $SERVICESTATEID:yourhost1:PING$,$SERVICESTATEID:yourhost2:PING$,$SERVICESTATEID:yourhost3:PING$, $SERVICESTATEID:yourhost4:PING$
The hostname and the service description in $ARG4$ need to be exact (case sensitive). The other thing to note is that this command will not work directly from the CLI due to the on-demand macros.
With a 1 in $ARG3$, you will get an alert if 2 or more services in the cluster are in a non-OK state. Let us know if you get working.
--Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy.
Be sure to check out our
Knowledgebase for helpful articles and solutions!