Page 1 of 1

check_multi Critical Parameter not working

Posted: Mon Jan 28, 2019 11:15 am
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

Re: check_multi Critical Parameter not working

Posted: Mon Jan 28, 2019 1:40 pm
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

Re: check_multi Critical Parameter not working

Posted: Mon Jan 28, 2019 3:29 pm
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