Re: Monitor windows mapped drive

"Frost, Mark {BIS}" <[email protected]>
Newsgroups gmane.network.nagios.user
Message-ID <[email protected]>
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:[email protected]]
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 <[email protected]<mailto:[email protected]>> 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@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@nagios4 ~]#
[root@nagios4 ~]#  /opt/nagios/libexec/check_nt -H 192.168.204.130 -p 12489 -v CLIENTVERSION
NSClient++ 0,4,1,101 2013-05-18
[root@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@nagios4 ~]#

[root@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@nagios4 ~]#


--
Regards
Sunil Sankar



--
Regards
Sunil Sankar

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

_______________________________________________
Nagios-users mailing list
[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.