Page 1 of 1

Setup command line and args for check_disk v2.0.3

Posted: Mon Nov 05, 2018 8:35 pm
by hlaten01
Team,
My team needs to monitor windows drives for free disk space in GB. I am having problems setting up the Command line and args for making this happen by using the plugin check_disk v2.0.3. Can someone please help with this. The problem I am having is listing each drive say from C: -G: and wanting to set warnings at 20gb and alerts at 10 gb for each drive. It would also really help if someone could give command line and args for setting up volume mount points the same as in monitoring exchange server mount points. We are using Nagios XI version 5.4.13
Thank you, hlaten01

Re: Setup command line and args for check_disk v2.0.3

Posted: Tue Nov 06, 2018 10:05 am
by lmiltchev
You could monitor Windows drives for free disk space via NCPA, NSClient++ , WMI, or SNMP.

https://support.nagios.com/kb/article/d ... s-770.html

I believe the best route would be to use NCPA.

https://support.nagios.com/kb/article/d ... free_value

Example:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -t 'mytoken' -P 5693 -M 'disk/logical/C:|/free' -w 20: -c 10: -u G
OK: Free was 27.36 GB | 'free'=27.36GB;20:;10:;
As far as mount points, you could monitor physical mounts but not shared drives. I am not sure what kind of environment you have, in order to provide more details.