check_multi Critical Parameter not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

check_multi Critical Parameter not working

Post by hoegh »

HI Team,

I'm implementing check_multi plugin to monitor one service on 3 different server.
My requirement is If on any server the service is up then check_multi must show service in OK state.
No matter if the same service is down on other 2 servers.
I'm using below command :

Code: Select all

check_multi -f check_multi_AD.cmd -w 2 -c 3 -r 3
Where check_multi.cmd contains:

Code: Select all

command[AzureAD_15]=/usr/local/nagios/libexec/check_nrpe -H 10.202.24.47 -t 30 -c alias_dxcmd_AzureAD -2
command[AzureAD_16]=/usr/local/nagios/libexec/check_nrpe -H 10.202.24.48 -t 30 -c alias_dxcmd_AzureAD -2
command[AzureAD_24]=/usr/local/nagios/libexec/check_nrpe -H 10.202.24.57 -t 30 -c alias_dxcmd_AzureAD -2
Please suggest me what need to modify in this command.

Thanks & Regards
Hoegh
Thanks
Höegh
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: check_multi Critical Parameter not working

Post by benjaminsmith »

Hi @hoegh,

It would be helpful to see the alias_dxcmd_AzureAD command, but what happens when you run the check_nrpe command from the command line. Is it returning valid results for all 3 servers?

Also, it might be easier to use the BPI component with Nagios XI as you can setup a similar check using the GUI and use the configuration wizard to setup your server checks (i.e. Active Directory).

References:
Nagios XI - How To Test Check Commands From The Command-line
https://support.nagios.com/kb/article.php?id=167

Using the BPI in Nagios XI
https://assets.nagios.com/downloads/nag ... BPI_v2.pdf
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!
User avatar
hoegh
Posts: 201
Joined: Thu Jan 04, 2018 7:48 am

Re: check_multi Critical Parameter not working

Post by hoegh »

Thanks @benjaminsmith,

I'm looking for check_multi critical & warning threshold parameters.
So I managed to do it with help of
--critical <expression>.
So i used something like this

Code: Select all

check_multi -f check_multi_AD.cmd -r 3 --critical 'COUNT(CRITICAL) >= 3' --ok 'COUNT(OK) >= 1' --warning 'COUNT(WARNING) >= 3' --unknown 'COUNT(UNKNOWN) >= 3'
Its working fine as i expected.

So i think we cam close this thread.
If needed i'll open another thread.

Thanks
Hoegh
Thanks
Höegh
Locked