Windows Servers UNC Path checks
Posted: Fri Oct 12, 2012 3:09 pm
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?
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?