Incorrect disk usage check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
surachai.ch
Posts: 43
Joined: Tue Mar 27, 2012 9:58 pm

Incorrect disk usage check

Post 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.
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

Post 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.
surachai.ch
Posts: 43
Joined: Tue Mar 27, 2012 9:58 pm

Re: Incorrect disk usage check

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Incorrect disk usage check

Post 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
Be 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

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Incorrect disk usage check

Post by scottwilkerson »

Hmmm, this is showing only 58% used.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
surachai.ch
Posts: 43
Joined: Tue Mar 27, 2012 9:58 pm

Re: Incorrect disk usage check

Post by surachai.ch »

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

Post by scottwilkerson »

Can you post the full configuration for the service, not just the command
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
surachai.ch
Posts: 43
Joined: Tue Mar 27, 2012 9:58 pm

Re: Incorrect disk usage check

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Incorrect disk usage check

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked