Monitoring services in cluster setup- Linux servers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring services in cluster setup- Linux servers

Post 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
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!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Monitoring services in cluster setup- Linux servers

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring services in cluster setup- Linux servers

Post 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
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!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Monitoring services in cluster setup- Linux servers

Post by pratikmehta003 »

Let me test it....
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring services in cluster setup- Linux servers

Post by benjaminsmith »

Hi,
Let me test it....
Sounds good. Let us know if you get it working.
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!
Locked