Page 1 of 1
Windows Mount Points
Posted: Mon Aug 29, 2011 5:12 pm
by paul.jobb
What would be the best method to collect utilization information from Windows Mount points? preferably without having to install an agent. Are there any examples for doing this with WMI?
Re: Windows Mount Points
Posted: Tue Aug 30, 2011 10:36 am
by nscott
paul.jobb,
I responded to the email thread and in an effort to keep this conversation single threaded let us continue the discussion in that email.
Re: Windows Mount Points
Posted: Thu Sep 01, 2011 2:01 pm
by paul.jobb
for anyone interested I added the following to the /usr/local/nagios/libexec/check_wmi_plus.ini file
[checkmountpoint]
slashconversion=1
query=Select Name, FreeSpace, Capacity from Win32_Volume where Name = "{_arg1}"
customfield=_FreeSpacePercent,percent,FreeSpace,Capacity,%.1f,
customfield=_Used%,percent,FreeSpace,Capacity,%.1f,100
test=_Used%
display=_DisplayMsg||~|~| - ||
display=Name||~|~| ||
display=Capacity|#|Total||||
display=FreeSpace|#|Free|| ||
display=_FreeSpacePercent|%|~|~||(|)
In the service management common Settings screen Set $ARG3$ = checkmountpoint and $ARG4$ = -a 'G:/dirnamehere/subdirnamehere/' -w 80 -c 95 -t 60
the server I was testing against timed out after 15 seconds so -t allowed me to bump up the timeout to a minute, only reason I used it.
Re: Windows Mount Points
Posted: Fri Sep 02, 2011 11:44 am
by lmiltchev
paul.jobb, thanks for the feedback!