Setup command line and args for check_disk v2.0.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hlaten01
Posts: 15
Joined: Thu Feb 15, 2018 1:54 pm

Setup command line and args for check_disk v2.0.3

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked