Windows Mount Points
Windows Mount Points
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
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.
I responded to the email thread and in an effort to keep this conversation single threaded let us continue the discussion in that email.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Windows Mount Points
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.
[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
paul.jobb, thanks for the feedback!
Be sure to check out our Knowledgebase for helpful articles and solutions!