<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>The space after the g: is correct, the check then concatenates the drive and the folder together.  I'm pretty sure the drives the mapped as persistent (I didn't originally set them up so not 100%).  I tried UNC pathing and again it works fine on the windows box itself but same result as using normal absolute path.</DIV>
<DIV> </DIV>
<DIV>I have noticed in the NRPE documentation (for UNIX) that it has you add a nagios user to the remote host.  Being that there's not a whole lot of official documentation for nrpe_nt itself is there something to this affect that I have to do on the Windows machine?  Run the check as a specific user?  I've tried running the nrpe_nt service as every user on the windows box to no avail.  </DIV>
<DIV> </DIV>
<DIV>I'm thinking it's some sort of permissions or "run as this specific user so as to see network drives" issue, but my Windows knowledge in terms of services, access rights, etc. is limited.  Thanks!<BR><BR>>>> "James Pratt" <jpratt@norwich.edu> 4/9/2009 1:10 PM >>><BR><BR><BR>> -----Original Message-----<BR>> From: Michael McCoy [mailto:mmccoy@cedarville.edu]<BR>> Sent: Thursday, April 09, 2009 12:21 PM<BR>> To: nagios-users@lists.sourceforge.net<BR>> Subject: [Nagios-users] NRPE_NT Checks on Mapped Network Drive<BR>> <BR>> For off let me say this is my first mailing list, so I'm new at this,<BR>so<BR>> please excuse any mailing list etiquette that I violate :-)<BR>> <BR>> I am attempting to monitor the file count of a directory on a remote<BR>> Windows XP machine.  I have installed NRPE_NT on the remote box and<BR>> check_nrpe on my Nagios machine.  The two are talking to one another<BR>fine.<BR>> The problem is that the directory that I need to monitor is on a<BR>mapped<BR>> network drives.  Here is the command I am running...<BR>> <BR>> command[directory_file_count]=c:\WINDOWS\system32\cscript.exe //NoLogo<BR>> //T:30 c:\temp\nagioschecks\file_count.wsf g: \folder1\folder2\ 0 10<BR>> <BR>> Basically if run this command from the DOS command line on the XP<BR>machine<BR>> it works fine.  Once I try to run the command from check_nrpe on the<BR>> Nagios host it gives me the following error...<BR>> <BR>> c:\temp\nagioschecks\file_count.wsf(123, 2) Microsoft VBScript runtime<BR>> error: Path not found<BR>> <BR><BR>Hello Michael - Just a quick stab in the dark here, but in your command<BR>def above, you have a space character after your g: - is that correct,<BR>or could it be causing your issue?<BR><BR>Also, are your drives mapped as persistent, as I'm not positive the user<BR>running the script would see them either way if not "logged on<BR>interactively". <BR><BR>Can you use UNC pathing instead? Ie \\machine\share$ ? That should work<BR>if the user has rights, and you won't have to deal with the mapped drive<BR>issue(s) .<BR><BR>HTH,<BR><BR>Regards,<BR>jamie<BR></DIV></BODY></HTML>