Page 1 of 2
Incorrect disk usage check
Posted: Mon Jul 16, 2012 2:52 am
by surachai.ch
Hi,
I have enabled linux snmpd monitoring on our servers and monitoring disk usage as following commands.
check_xi_service_snmp_linux_storage! -C public --v2c -m "^/usr$" -w 85 -c 95 -f
but when I go to monitored server and check disk (df -h) I found that disk usage is about 99% on "/usr" and Nagios did not send me any notification alert.
Please see attached screenshot.
Regards,
Surachai C.
Re: Incorrect disk usage check
Posted: Mon Jul 16, 2012 11:41 am
by slansing
Could you try using the following command on the linux command line?
Code: Select all
./check_snmp_storage.pl -H 127.0.0.1 -C public -m zzzz -w 80 -c 81 -v
Replace the -H, -m, -w, and -c values with your own.
Re: Incorrect disk usage check
Posted: Mon Jul 16, 2012 11:37 pm
by surachai.ch
Hi,
It means the initial commands for check disk from wizard is not correct and I have to udpate this command to all my monitored nodes, right ?.
Regards,
SC.
Re: Incorrect disk usage check
Posted: Tue Jul 17, 2012 11:03 am
by lmiltchev
Actually, run the following command in terminal and post the output:
Code: Select all
/usr/local/nagios/libexec/check_snmp_storage.pl -H <IP address> -C public --v2c -m "^/usr$" -w 80 -c 95 -f
Re: Incorrect disk usage check
Posted: Tue Jul 17, 2012 11:38 pm
by surachai.ch
Hi,
Please see output below.
[root@nagiossrv ~]# /usr/local/nagios/libexec/check_snmp_storage.pl -H 10.3.2.97 -C public --v2c -m "^/usr$" -w 80 -c 95 -f
/usr: 58%used(9558MB/16367MB) (<80%) : OK | '/usr'=9558MB;13093;15548;0;16367
Regards,
SC.
Re: Incorrect disk usage check
Posted: Wed Jul 18, 2012 9:44 am
by scottwilkerson
Hmmm, this is showing only 58% used.
Re: Incorrect disk usage check
Posted: Wed Jul 18, 2012 9:54 pm
by surachai.ch
Because I already increased disk space.
Re: Incorrect disk usage check
Posted: Thu Jul 19, 2012 10:08 am
by scottwilkerson
Can you post the full configuration for the service, not just the command
Re: Incorrect disk usage check
Posted: Thu Jul 19, 2012 11:27 pm
by surachai.ch
I'm not sure which one you want and how could I get full configuration for you. Or you mean configuration files, please suggest.
Re: Incorrect disk usage check
Posted: Fri Jul 20, 2012 11:00 am
by lmiltchev
Go to the Core Config Manager->Services->locate your service, click on the "Download" actions button (the diskette icon), save the file and post it, so we can review it. Thanks!