Page 1 of 1

Windows Mount Point

Posted: Sun Aug 19, 2018 4:00 am
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

Re: Windows Mount Point

Posted: Mon Aug 20, 2018 3:33 pm
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.

Re: Windows Mount Point

Posted: Mon Sep 17, 2018 10:35 am
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.

Re: Windows Mount Point

Posted: Tue Sep 18, 2018 3:54 pm
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.

Re: Windows Mount Point

Posted: Tue Sep 18, 2018 4:24 pm
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

Re: Windows Mount Point

Posted: Wed Sep 19, 2018 1:58 pm
by scottwilkerson
Thanks for the additional info @mcapra!

Re: Windows Mount Point

Posted: Mon Oct 29, 2018 11:14 am
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

Re: Windows Mount Point

Posted: Tue Oct 30, 2018 3:23 pm
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

Re: Windows Mount Point

Posted: Tue Oct 30, 2018 9:32 pm
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

Re: Windows Mount Point

Posted: Wed Oct 31, 2018 2:41 pm
by ssax
Glad to hear it, are we okay to lock this topic and mark it as resolved?