How to check disk space on AIX

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cyruseli
Posts: 2
Joined: Wed Nov 06, 2013 10:14 am

How to check disk space on AIX

Post by cyruseli »

How to check the disk space on a AIX server in one command for multiple folder like - /home, /var, /dev, /usr / below is the example of what I have setup to just check /dev folder. This command is in my nrpe.cfg file.

command[check_dev]=/usr/local/nagios/libexec/check_disk -w 30% -c 5% -p /dev
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to check disk space on AIX

Post by lmiltchev »

You can use the "check_disk" as such:

Code: Select all

./check_disk -w 30% -c 5% -p /dev -w 30% -c 5% -p /home -w 30% -c 5% -p /var -w 30% -c 5% -p /dev -w 30% -c 5% -p /usr
If you are using nagios plugins 2.0, you can even pass a "-n" flag to have a multi-line output.

Code: Select all

./check_disk -w 30% -c 5% -p /dev -w 30% -c 5% -p /home -w 30% -c 5% -p /var -w 30% -c 5% -p /dev -w 30% -c 5% -p /usr -n
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked