Windows Servers UNC Path checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kubben
Posts: 19
Joined: Thu Jun 21, 2012 3:15 pm

Windows Servers UNC Path checks

Post 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?
User avatar
CGraham
Posts: 115
Joined: Tue Aug 16, 2011 2:43 pm

Re: Windows Servers UNC Path checks

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Windows Servers UNC Path checks

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked