Nagios Check result is wrong

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
supportagilita
Posts: 12
Joined: Thu May 24, 2018 3:26 am

Nagios Check result is wrong

Post by supportagilita »

Hi there,

I'm having issues with the new SLES15 checks / results.

Command used:
/usr/lib/nagios/plugins/check_disk -w 20% -c 10%

Expected result (check run local):
/usr/lib/nagios/plugins/check_disk -w 20% -c 10%
DISK CRITICAL - free space: /dev 440932 MB (100.00% inode=100%); /dev/shm 661410 MB (100.00% inode=100%); /run 440915 MB (99.99% inode=100%); /sys/fs/cgroup 440940 MB (100.00% inode=100%); / 24287 MB (83.27% inode=99%); /boot 936 MB (92.33% inode=100%); /usr/sap 45183 MB (73.57% inode=100%); /hana/log 367376 MB (89.73% inode=100%); /hana/data 277270 MB (45.15% inode=100%); /hana/backup 0 MB (0.00% inode=2%); /hana/shared 73598 MB (71.90% inode=100%); /sapmnt 28699 MB (93.46% inode=100%); /boot/efi 510 MB (99.79% inode=-); /hana/backup_long 2017597 MB (64.13% inode=-); /run/user/2001 88188 MB (100.00% inode=100%); /run/user/2000 88188 MB (100.00% inode=100%); /run/user/2002 88188 MB (100.00% inode=100%); /mnt/resource 876172 MB (89.52% inode=100%); /run/user/2003 88188 MB (100.00% inode=100%); /run/user/2004 88188 MB (100.00% inode=100%); /run/user/0 88188 MB (100.00% inode=100%);| /dev=0MB;352745;396838;0;440932 /dev/shm=0MB;529128;595269;0;661410 /run=25MB;352752;396846;0;440940 /sys/fs/cgroup=0MB;352752;396846;0;440940 /=4878MB;23332;26249;0;29166 /boot=77MB;811;912;0;1014 /usr/sap=16226MB;49128;55269;0;61410 /hana/log=42022MB;327519;368459;0;409399 /hana/data=336827MB;491278;552688;0;614098 /hana/backup=409406MB;327525;368466;0;409407 /hana/shared=28751MB;81880;92115;0;102350 /sapmnt=2005MB;24564;27634;0;30705 /boot/efi=1MB;408;459;0;511 /hana/backup_long=1128130MB;2516582;2831155;0;3145728 /run/user/2001=0MB;70550;79369;0;88188 /run/user/2000=0MB;70550;79369;0;88188 /run/user/2002=0MB;70550;79369;0;88188 /mnt/resource=102476MB;824874;927983;0;1031093 /run/user/2003=0MB;70550;79369;0;88188 /run/user/2004=0MB;70550;79369;0;88188 /run/user/0=0MB;70550;79369;0;88188

Result from nagios server:
/usr/local/nagios/libexec/check_nrpe -H <Client-IP> -c check_disks
DISK OK - free space: AggregateDisk 2355439 MB (71.41% inode=100%);| AggregateDisk=942671MB;2680450;3015506;0;3350563


Check disks is not the only check witch is giving wrong results.

Any suggestions ?
Thx for the help
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios Check result is wrong

Post by benjaminsmith »

HI,

The command is slightly different, so I'd like to see the full command definition for check_disks in the nrpe.cfg file.

It looks like you have enable the group flag here that will apply to of all partitions together, for example:

Code: Select all

./check_disk -w 10% -c 20% -g aggregate
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