Windows drive monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Windows drive monitoring

Post by maddev »

Hi,

I have nsclient running on my windows machines; I would like to monitor all my drives using a single service. Is this possible?
I was able to do this for linux machines using check_nrpe. Not sure of the check command to be used and arguments to be given and config files if any to be modified to achieve this on windows. any guidance will help.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Windows drive monitoring

Post by jdalrymple »

I do this using nsclient and the nrpe_server module with the following command:

Code: Select all

check_nrpe -H <winhost> -c check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'"
If you don't like the defaults you can append something like:

Code: Select all

MaxWarn=80% MaxCrit=90%
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Windows drive monitoring

Post by Box293 »

I have some more detailed examples here:

http://sites.box293.com/nagios/guides/c ... disk-usage
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Re: Windows drive monitoring

Post by maddev »

anyway to achieve this using nsclient plugin check_xi_service_nsclient; I really cant get them to open up nrpe ports from windows machines.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Windows drive monitoring

Post by jdalrymple »

No, not easily.

My advice - start fighting the NRPE battle today. Module nsclientserver will not see any further development ever, not on the client side Nagios, not on the server side. If you're happy monitoring what you can today and will never want to monitor anything else (and don't mind specifying drive letters individually) ... check_nt is for you. If you want to open yourself to the world of endless monitoring on Windows systems, plan on doing it over 5666.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Windows drive monitoring

Post by Box293 »

You *could* configure the NSClient++ NRPE module to run on port 12489 AND disable the check_nt module and perform check_nrpe requests over port 12489. Will require you to change the commands that your services use, reconfigure all of your services and all your historical data will probably become incompatible.

This is a bit of work here and ultimately I can see it causing you more troubleshooting headaches in the future.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked