C: has 122662% free
Brought to you by:
wolle62
I am using nagios-wsc's "disk" check with warning/crit of 10%/5% on about 100 Windows boxes.
On just 1 of them, this is what it reports:
Result: Disk Okay;C:119.79GB/100.00MB (122662% free)|<br> freeperc=122662%;10;5;;
The disk has 119G free of 136G. I suppose there should be some logic to check if there's > 100% free, and return an error/unknown instead of 122662% ;-)
(Also, I'd like to know why it fails to get the total disk size. Any way to get verbose output?)
This is nagios-wsc v1.3.4 VS2005, according to Service1.asmx/version
Additional info:
- I'm running nagios-wsc as a non-admin AD account that has remote WMI and DCOM privs.
- As this is the only server that reports wrong info for the C: check, I tried to figure out what's different about it. It's the only one I'm checking with a C: size > 100GB or so, so I thought that might be the problem. Running the check on other servers, against other disks, though, shows it working with much largers volumes:
F:978.62GB/1,394.47GB (70% free)
- While investigating the above, I ran across a few other/strange problems:
1. Sometimes, when running the "disks" check, a single drive will show up as "infinity" size and used:
Free-F:=68%;0;0;;
Free-G:=66%;0;0;;
Free-J:=66%;Infinity;Infinity;;
Free-K:=74%;1;0;;
Free-M:=62%;0;0;;
2. On Windows 2003 servers, large volumes (~1TB) are handled fine (see above), but on my Windows 2008 boxes, they also come back as infinity, but the percentage free is correctly reported, it seems:
Result: Disk(s) Okay |Free-C:=36%;0;0;; C:23.93GB/67.05GB (36% free) |Free-F:=36%;Infinity;Infinity;;
Result: Disk(s) Okay |Free-C:=53%;0;0;; C:13.04GB/24.41GB (53% free) |Free-D:=53%;Infinity;Infinity;;
- Running the wmi query manually seems to show correct output in all cases. E.g., for the first one above:
DeviceID|FreeSpace|Size
F:|508959920128|899119312896
So, there doesn't seem to be much rhyme or reason, that I can see, for when the disk checks behave oddly. However, of all the disks I looked at, on all the servers, there is still only a single one that comes back with the size reported as 100MB instead of ~136GB.