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.
Disk Usage Linux
Re: Disk Usage Linux
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:
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.
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;100https://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!