Page 1 of 1

How to check disk space on AIX

Posted: Mon Mar 17, 2014 3:55 pm
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

Re: How to check disk space on AIX

Posted: Mon Mar 17, 2014 4:24 pm
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