check_hd (free diskspace via snmp) reporting wrong values

Paul Weaver paul.weaver at bbc.co.uk
Tue Nov 6 16:39:57 CET 2007


I use a slightly modified (allow cheks of "/var" as well as "c:")
check_hd plugin to check disk space on both windows and unix. It works
fine for the most part, except for a windows machine with 2 partitions. 

The E: partition report is fine
OK: hd e:\.* 1% full, 27.4GB free. Warn at 85%, Critical at 95%

The C partition wasn't
OK: hd c:\.* 83% full, 0.7GB free. Warn at 85%, Critical at 95%

Investigating revealed the plugin working correctly
DBG: fullsize  8388447 * 512 = 4294884864
DBG: usedsize  6984708 * 512 = 3576170496

However the C: drive wasn't using 3.5G, it was using about 210*6984708 

So I doubt it's the allocationunit that's a problem.

It now reports the correct value, which may be linked to a restart of
the snmp service.
OK: hd c:\.* 65% full, 1.4GB free. Warn at 85%, Critical at 95%

Has anyone seen this kind of behavior before?


http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071106/2d24f81c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list