check_disk only local file systems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

check_disk only local file systems

Post by asmgiadmin »

can check_disk be configured to monitor only local file systems, without having to exclude any non-local filesystems?
asmgiadmin
Posts: 125
Joined: Tue Feb 12, 2013 5:00 pm

Re: check_disk only local file systems

Post by asmgiadmin »

got it with -l switch :)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_disk only local file systems

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_disk only local file systems

Post by lmiltchev »

Great! I am marking this as resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked