Page 1 of 1

Windows Servers UNC Path checks

Posted: Fri Oct 12, 2012 3:09 pm
by kubben
I am currently using a Nagios XI 2011R2.3 and check_nrpe against a wiondows server 2008 with nsclient++ 3.91 and i need to be checking
a NAS share.

ex.

check_nrpe -H host.domain.com -c CheckDriveSize -a Drive =\\\\nas01\\dept_prog$\\ MaxWarnUsed=95 MaxCritUsed=99

which on the command line returns:

CRITICAL: \\nas01\dept_prog$\: Total: 5G - Used: 1.64e+004P (3435973127%) - Free: 40.5G (18446744070273578589%) > critical|'\\nas01\dept_prog$\ %'=3435973127%;99;99 '\\nas01\dept_prog$\'=18446744035613557000B;95;99;0;536870912

hmm. doesn't look terribly promising.

when described as a service in XI, same information is entered as ARG1, it displays :

CRITICAL: Could not get free space for:
as01dept_prog$
as01dept_prog$ reason: 3: The system cannot find the path specified

is there a better way to do disk size/use on UNC Paths?

Re: Windows Servers UNC Path checks

Posted: Mon Oct 15, 2012 4:01 pm
by CGraham
You could map a drive on the server to the unc path.

Or

Use a plugin designed to check a nas (smb or cifs) share
http://exchange.nagios.org/directory/Pl ... System/SMB

Re: Windows Servers UNC Path checks

Posted: Mon Oct 15, 2012 4:14 pm
by scottwilkerson
CGraham wrote: Use a plugin designed to check a nas (smb or cifs) share
http://exchange.nagios.org/directory/Pl ... System/SMB
This is the direction I was thinking...