Windows Mount Points

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Windows Mount Points

Post 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?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Windows Mount Points

Post 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.
Nicholas Scott
Former Nagios employee
paul.jobb
Posts: 167
Joined: Tue Aug 02, 2011 4:37 pm

Re: Windows Mount Points

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Windows Mount Points

Post by lmiltchev »

paul.jobb, thanks for the feedback!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked