Page 1 of 1

Alert configuration for Windows Mapped drive

Posted: Wed Jun 26, 2019 5:07 am
by inas.labib
Hi Team,

we need to monitor the mapped drive connectivity status.Checked with available plugin but it is not working.Please suggest us to monitor network mapped drive in windows server

Used below command

$/usr/local/nagios/libexec/check_nrpe -H XX.XX.XX.XX -c check_drivesize -a "crit=free<1g" drive=* "filter=type in ('remote')"
output :OK: No drives found|

But we have network mapped drive is attached to the server.Please suggest us.

Re: Alert configuration for Windows Mapped drive

Posted: Wed Jun 26, 2019 3:34 pm
by lmiltchev
Most probably, this is not going to work as NSCLient++ service is run as the SYSTEM user account, not the user who is logged into the system. The SYSTEM account won't have the mapped drives that the user you are logged in and testing it as will.

Some users suggest that one could run NSCLient++ service with an account with permissions on the UNC path and monitor the full path instead of the mapped drive letter, but I haven't tested that.

Perhaps, the developers of NSClient++ can shed some light on the issue. This agent is not developed or maintained by us (Nagios).

Re: Alert configuration for Windows Mapped drive

Posted: Wed Jul 03, 2019 6:36 am
by inas.labib
Do we have any plugin to configure this alert.

Please let us know.

Re: Alert configuration for Windows Mapped drive

Posted: Wed Jul 03, 2019 8:39 am
by lmiltchev
Unfortunately we don't have such a plugin. *Maybe* this could be done via a custom powershell script, that would connect the drive under a specific user, check it, then disconnect it. This is not something that we have as far as I know.