Monitor windows mapped drive

Frost, Mark {BIS} mark.frost1 at pepsico.com
Tue Jun 11 21:08:07 CEST 2013


Sunil,

I've only ever found two ways to do this.


1)      We were using NSClient++ in the same manner you were (running it with a domain user id that had permissions to access that network drive).    I think we still though did not attempt to access it as the drive letter.   I'm pretty sure we used the UNC path to the disk.    Unless I'm mistaken, the driver letter is only mapped after a user logs in and the service that NSClient++ does not replicate a login shell to trigger the drive to map to a drive letter.

2)      We are using check_disk_smb from the Nagios plugins package to mount the UNC path to the disk locally on our Linux machine and check available space.



Mark

From: Sunil Sankar [mailto:sunil at sunil.cc]
Sent: Tuesday, June 11, 2013 9:11 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Monitor windows mapped drive

Guys,

Any update on this


Regards
Sunil

On Sat, Jun 8, 2013 at 8:26 PM, Sunil Sankar <sunil at sunil.cc<mailto:sunil at sunil.cc>> wrote:
Guys,
Has anyone monitored mapped drive in windows using nsclient .I am not able to do it need you help
I have mapped Z drive in windows and also I have started nsclient with same user as the mapped drive

When I execute the check I am getting the following output
[root at nagios4 ~]# /opt/nagios/libexec/check_nrpe -H 192.168.204.130 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90% FilterType=REMOTE                                                                                                   OK: All drives within bounds.
[root at nagios4 ~]#
[root at nagios4 ~]#  /opt/nagios/libexec/check_nt -H 192.168.204.130 -p 12489 -v CLIENTVERSION
NSClient++ 0,4,1,101 2013-05-18
[root at nagios4 ~]#  /opt/nagios/libexec/check_nrpe -H 192.168.204.130 -p 5666
I (0,4,1,101 2013-05-18) seem to be doing fine...
[root at nagios4 ~]#

[root at nagios4 ~]# /opt/nagios/libexec/check_nrpe -H 192.168.204.130 -c CheckDriveSize -a ShowAll MaxWarn=80% MaxCrit=90%
OK: C:\: 10.1G|'C:\ %'=51%;80;90 'C:\'=10.056G;15.725;17.691;0;19.656
[root at nagios4 ~]#


--
Regards
Sunil Sankar



--
Regards
Sunil Sankar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130611/60f2162e/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list