Monitor mapped network drives

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor mapped network drives

Post by lmiltchev »

Yes, thanks WillemDH I'll give that a try.
We will keep the thread open.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Monitor mapped network drives

Post by jkinning »

Sorry for the delay. I had thought I already replied but noticed I had not.

Changing the NSClient++ to run as the service account worked out but now I am faced with a similar dilemma. I have a few other servers that users want drive mappings monitored and on these each drive mapping would have a different service account. Since the NSClient++ can only run as one account I am looking at the PowerShell route. If I create a PowerShell script to run every 5 or 10 minutes via the Windows Scheduler or something like that how does Nagios get the results? Do I create an output file and read those results or what is the best method to check the PowerShell script results to have Nagios notify when one is missing?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitor mapped network drives

Post by lmiltchev »

If your PS script works as expected (shows all of the mapped network drives), you could probably set up a passive check in NSClient++, and run it this way.
Once the results are sent to Nagios XI, you can go to Unconfigured Objects, and run the wizard to configure the check.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Monitor mapped network drives

Post by WillemDH »

Easiest way would be to just give the user NSClient is running with permissions on all the shares you want to monitor. Other options are to indeed make several scheduled tasks, each with a different user and use send_nsca.exe https://exchange.nagios.org/directory/A ... nt/details to send the data over NSCA to Nagios or psnrdp https://github.com/jsmroshamboot/psnrdp to send to Nagios over NRDP.
Nagios XI 5.8.1
https://outsideit.net
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Monitor mapped network drives

Post by rkennedy »

Thanks Willem!

@jkinning - let us know if you run into issues with either of these solutions.
Former Nagios Employee
Locked