Quantcast
Channel: NSClient++ » All Posts
Viewing all articles
Browse latest Browse all 189

check_multi problems

$
0
0

Hello.
Is anyone using check_multi from checkhelpers ?
I wanted to construct a disk space check that I can customize on different servers, so the check on the server side could be always the same. Here’s nsclient.ini configuration :
[/settings/external scripts/alias]
test1=check_drivesize drive=c: “warn=free<100G” “crit=free<40G”
test2=check_drivesize drive=s: “warn=free<24G” “crit=free<20G”
testx=check_multi command=test2 command=test1
testy=check_multi command=test1 command=test2

and running a check on this returns :
./check_nrpe -H HOST -p 9280 -c check_multi -a “command=testx”
OK , WARNING c:: 60.582GB/117.187GB used|’s: free’=610GB;24;20;0;1550 ‘s: free %’=39%;1;1;0;100 ‘c: free’=56GB;100;40;0;117 ‘c: free %’=48%;85;34;0;100
icinga@otrs:/usr/local/icinga/libexec$ echo $?
1
./check_nrpe -H HOST -p 9280 -c check_multi -a “command=testy”
WARNING c:: 60.582GB/117.187GB used, OK |’c: free’=56GB;100;40;0;117 ‘c: free %’=48%;85;34;0;100 ‘s: free’=610GB;24;20;0;1550 ‘s: free %’=39%;1;1;0;100
echo $?
0

so, the result depends only on the last state, not worst. Or am I doing something wrong ?


Viewing all articles
Browse latest Browse all 189

Trending Articles