Windows Mount Point

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pcheng
Posts: 7
Joined: Mon Apr 09, 2018 3:25 pm

Windows Mount Point

Post by pcheng »

Does anyone know if the latest version of Nagios XI 5.5.2 support Windows Mount Point monitor? Only finding somewhat outdated posts that suggested using NSClient and the CheckDriveSize using NRPE. Even with that, may not be 100% success method. Some other suggestions found include powershell and vbs.

Like to know if there is a default plug-in avail with the latest version. Any other suggestions appreciate it.

Thanks in advance.

-P
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Windows Mount Point

Post by ssax »

Are you referring to a standard mapped drive?

The problem with mapped drives is that they are per user in windows, so unless you are going to run the nsclient service as the user who has it mapped you wouldn't see it.
pcheng
Posts: 7
Joined: Mon Apr 09, 2018 3:25 pm

Re: Windows Mount Point

Post by pcheng »

Thanks for the reply SSAX.

I am not referring to mapped drives but rather as a Windows Mount Point folder path - here's a Microsoft link https://docs.microsoft.com/en-us/window ... to-a-drive.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Windows Mount Point

Post by cdienger »

There isn't a default plugin, but I tested with nsclient 0.4.4.23 and it was able to return mount points with checkdrivesize.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Windows Mount Point

Post by mcapra »

Here's an example from a previous post:
https://support.nagios.com/forum/viewto ... 26#p252126

And a KB article with that information:
https://support.nagios.com/kb/article.php?id=770

For more information on using check_nrpe with NSClient++, check out the following documentation:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

And if you're needing help getting NSClient++ installed on your Windows machines, see here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Windows Mount Point

Post by scottwilkerson »

Thanks for the additional info @mcapra!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
pcheng
Posts: 7
Joined: Mon Apr 09, 2018 3:25 pm

Re: Windows Mount Point

Post by pcheng »

Thanks to everyone responded.

Just to close the loop on this, NCPA v2.1.5 addresses this issue and working as designed. The only issue I find annoying is each mountpoint monitor needs to be manually configured. When I scanned a server with multiple mountpoints, the scan result will return only the drive letter with no indication of the mountpoint path.

Example:
Assuming these 3 mountpoints on a server:
c:\mountpoint\m1
c:\mountpoint\m2
c:\mountpoint\m3

Nagios scan would return similar to these:
c:\ Warning: 80% Critical: 90%
c:\ Warning: 80% Critical: 90%
c:\ Warning: 80% Critical: 90%

There is also no way of editing these results to actual paths before committing the changes. Commit as shown will only have one monitor in the list of services as there can't be any dups.

I've not looked into automating this task as I am still learning my way around Nagios. If anyone have any suggestions, love to hear it.

Thanks again for everyone's help.

-pc
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Windows Mount Point

Post by ssax »

I will submit this as a bug but you can download the attached file, unzip it, and then replace the file below and it should fix the issue in the wizard for you:

Code: Select all

/usr/local/nagiosxi/html/includes/configwizards/ncpa/ncpa.inc.php
ncpa.zip
Edit: Bug report created:

Code: Select all

NEW TASK ID 13783 created - Nagios XI Bug Report: XI - NCPA Wizard shows duplicate windows mounts
You do not have the required permissions to view the files attached to this post.
pcheng
Posts: 7
Joined: Mon Apr 09, 2018 3:25 pm

Re: Windows Mount Point

Post by pcheng »

ssax - the ncpa file you provided is working great. Able to scan the server and pull up all the mountpoints with correct respective paths.

Thanks very much.

-pc
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Windows Mount Point

Post by ssax »

Glad to hear it, are we okay to lock this topic and mark it as resolved?
Locked