Alert configuration for Windows Mapped drive

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Alert configuration for Windows Mapped drive

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alert configuration for Windows Mapped drive

Post 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).
Be sure to check out our Knowledgebase for helpful articles and solutions!
inas.labib
Posts: 170
Joined: Tue Sep 11, 2012 3:48 am

Re: Alert configuration for Windows Mapped drive

Post by inas.labib »

Do we have any plugin to configure this alert.

Please let us know.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alert configuration for Windows Mapped drive

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked