Disk Usage Linux

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Disk Usage Linux

Post by ranjitw »

Hi All,

Currently we are using check_disk for getting the disk space utilization and the output is shown as below :

DISK OK - free space: /tmp 1023 MB (99% inode=99%)

In the above output its showing the free space for a /tmp mount point instead of free space is there a way I get used space ?

Please help in getting the used space instead of free space.
Regards,
Ranjit W
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Disk Usage Linux

Post by lmiltchev »

There are many custom plugins on the Nagios Exchange. You can test a few and see which one is going to work for you. I found one that might do the job for you:

https://exchange.nagios.org/directory/P ... ce/details

Here's a check run from the CLI:

Code: Select all

[root@speedking libexec]# ./check_disk_space.sh -w 80 -c 90 -p /
OK; /: total 27.0GB, used 11.9GB (44.1%), free 13.7GB (50.9%) | 'used space'=12767285248B;23181236633;26078891212;0;28976545792 'used space (pct.)'=44.1%;80;90;0;100
Once you find a plugin that you like, and make sure it works from the command line, set up a command and a service in XI and you are good to go. The document below should help you get started:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Let us know if you get stuck on something.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ranjitw
Posts: 175
Joined: Tue Sep 01, 2015 1:52 am

Re: Disk Usage Linux

Post by ranjitw »

Thank you , Please close the post.
Regards,
Ranjit W
Locked