Page 2 of 2

Re: Monitoring services in cluster setup- Linux servers

Posted: Mon Jan 25, 2021 5:40 pm
by benjaminsmith
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

Re: Monitoring services in cluster setup- Linux servers

Posted: Wed Jan 27, 2021 2:29 am
by pratikmehta003
Hi Benjamin,

Still not clear on Arg4 usage.

ARG4$: $SERVICESTATEID:yourhost1:PING$,$SERVICESTATEID:yourhost2:PING$,$SERVICESTATEID:yourhost3:PING$, $SERVICESTATEID:yourhost4:PING$

if i have 2 servers with a service called DNS then can u help me how this should be placed? and Ping$ refers to what here?

Re: Monitoring services in cluster setup- Linux servers

Posted: Wed Jan 27, 2021 3:17 pm
by benjaminsmith
Hi pratikmehta003,

So if you want to run the checks against a service called DNS, simply replace PING with the name of this service.

Code: Select all

$SERVICESTATEID:yourhost1:DNS$,$SERVICESTATEID:yourhost2:DNS$,$SERVICESTATEID:yourhost3:DNS$, $SERVICESTATEID:yourhost4:DNS$
--Benjamin

Re: Monitoring services in cluster setup- Linux servers

Posted: Thu Feb 04, 2021 11:49 pm
by pratikmehta003
Let me test it....

Re: Monitoring services in cluster setup- Linux servers

Posted: Fri Feb 05, 2021 10:48 am
by benjaminsmith
Hi,
Let me test it....
Sounds good. Let us know if you get it working.