Incorrect disk usage check
-
surachai.ch
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Incorrect disk usage check
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.
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.
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Incorrect disk usage check
Could you try using the following command on the linux command line?
Replace the -H, -m, -w, and -c values with your own.
Code: Select all
./check_snmp_storage.pl -H 127.0.0.1 -C public -m zzzz -w 80 -c 81 -v-
surachai.ch
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Re: Incorrect disk usage check
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.
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
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 -fBe sure to check out our Knowledgebase for helpful articles and solutions!
-
surachai.ch
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Re: Incorrect disk usage check
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Incorrect disk usage check
Hmmm, this is showing only 58% used.
-
surachai.ch
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Re: Incorrect disk usage check
Because I already increased disk space.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Incorrect disk usage check
Can you post the full configuration for the service, not just the command
-
surachai.ch
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Re: Incorrect disk usage check
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!