Page 1 of 1

check_disk only local file systems

Posted: Tue Mar 12, 2013 2:56 pm
by asmgiadmin
can check_disk be configured to monitor only local file systems, without having to exclude any non-local filesystems?

Re: check_disk only local file systems

Posted: Tue Mar 12, 2013 2:59 pm
by asmgiadmin
got it with -l switch :)

Re: check_disk only local file systems

Posted: Tue Mar 12, 2013 3:01 pm
by slansing
If you are speaking in reference to checking in this fashion:

Code: Select all

/usr/local/nagios/libexec/check_disk -w 100 -c 200
Then yes, it will return an output such as this:

Code: Select all

DISK OK - free space: / 9057 MB (81% inode=92%); /dev/shm 938 MB (100% inode=99%); /boot 428 MB (93% inode=99%);| /=2012MB;11561;11461;0;11661 /dev/shm=0MB;838;738;0;938 /boot=31MB;384;284;0;484
Edit: Glad you got it working, I was going to add:
-l, --local
Only check local filesystems

Re: check_disk only local file systems

Posted: Tue Mar 12, 2013 3:04 pm
by lmiltchev
Great! I am marking this as resolved.