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?
Windows Servers UNC Path checks
Re: Windows Servers UNC Path checks
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
Or
Use a plugin designed to check a nas (smb or cifs) share
http://exchange.nagios.org/directory/Pl ... System/SMB
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Windows Servers UNC Path checks
This is the direction I was thinking...CGraham wrote: Use a plugin designed to check a nas (smb or cifs) share
http://exchange.nagios.org/directory/Pl ... System/SMB