NSClient++ and monitoring Windows cluster or NLB clusters?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

NSClient++ and monitoring Windows cluster or NLB clusters?

Post by PhilG »

Hello:
I have now installed NSClient++ on the majority of my Windows servers. I have not installed NRPE plug-ins, though.
I have configured those Windows servers in Nagios XI with the Windows Server Wizard, and they are appear to be monitoring fine at this time.

Problem: How can I monitor a Windows cluster (Exchange) and a NLB cluster (we have at least 2 sets of these, 1 pair of Windows servers is configured as an IIS webserver NLB cluster)? Is there a way to do this without going back and having to reconfigure NSClient++ to install NRPE plug-ins or reinstall the agent? If so, how, please?
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by lmiltchev »

I assume you are planning on using check_nrpe + custom script with NSClient++. You can always enable the NRPE and External Scripts modules in the nsclient.ini file, and restart the NSClient++ service so that changes can take effect. You don't need to reinstall the agent.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by cmerchant »

Here is the "Enabling the NRPE Listener In NSClient++" doc for version 0.4.x:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by PhilG »

cmerchant wrote:Here is the "Enabling the NRPE Listener In NSClient++" doc for version 0.4.x:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

We are using NSClient++ 0.3.9 since I read in a couple of forum posts that there may have been some issues with using 0.4.x.

FYI: The PDF you provided references:
"Note: This document is for version 0.4.x of NSClient++. For version 0.3.x of NSClient++ see:
http://assets.nagios.com/downloads/nagi ... Client_pdf
"
and when I clicked on the link it went back to "http://assets.nagios.com/downloads/nagi ... _0.4.x.pdf"
Last edited by PhilG on Tue Dec 02, 2014 4:56 pm, edited 1 time in total.
Newbie '14
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by WillemDH »

Hey,

I'm using 0.4.1.105 and I'm not really having any issues the last 1.5 years. Just my thoughts of course... :)

Grtz
Nagios XI 5.8.1
https://outsideit.net
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by PhilG »

WillemDH wrote:Hey,

I'm using 0.4.1.105 and I'm not really having any issues the last 1.5 years. Just my thoughts of course... :)

Grtz
Wish you would've had this posted prior to my already manually installing to 163 Windows servers since we don't have a functioning SCCM server.
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by lmiltchev »

You can check out this document:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

In my opinion, both, the 0.3.9 and 0.4.x versions of NSClient++ work in general, but both have some (different) issues. I guess, stick to the one you have installed.
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: NSClient++ and monitoring Windows cluster or NLB cluster

Post by WillemDH »

Hey PhilG,

Really sorry for that. Maybe I can make it up to you by referring you to https://github.com/willemdh/nagiosxi_au ... _framework It contains some script you could use to install / upgrade NSClient with. It's not really documented and I did not release it on the Nagios Exchange yet, as there are just too many possible issues (for example UAC, Firewall, security considerations, ...) and I'm a bit busy atm with some other projects.

But you should be able with the help of a Windows Gateway to make a quick action to install / upgrade NSClient. Link the quick action through Bash to the request install script which should be able to call the install script on the remote host where nsclient should be installed. The NSclient service on the Gateway need to run with an account with admin permissions on the remote Windows hosts..
Once you got that set up, you can make a Bash script that gets all hosts of a hostgroup where you put all the Windows hosts in and update them all sequentially and automatically. The only thing you will need to do is write one more Powershell script to update the nsclient.ini. I have that script, but it contains too many sensible info, so I can't put that on Github yet, it also makes connection with our SQL Inventory db to get realtime event exclusions, so in order to work you would need a sql db with identical tables as we have etc.

Grtz

Willem
Last edited by WillemDH on Wed Dec 03, 2014 2:48 am, edited 2 times in total.
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by slansing »

Awesome information for future reference Willem, thank you for putting the time into this, I'm going to have to test it out. Hopefully something here can be of help to @PhilG.
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: NSClient++ and monitoring Windows cluster or NLB cluster

Post by PhilG »

WillemDH wrote:Hey PhilG,

Really sorry for that. Maybe I can make it up to you by referring you to https://github.com/willemdh/nagiosxi_au ... _framework It contains some script you could use to install / upgrade NSClient with. It's not really documented and I did not release it on the Nagios Exchange yet, as there are just too many possible issues (for example UAC, Firewall, security considerations, ...) and I'm a bit busy atm with some other projects.

But you should be able with the help of a Windows Gateway to make a quick action to install / upgrade NSClient. Link the quick action through Bash to the request install script which should be able to call the install script on the remote host where nsclient should be installed. The NSclient service on the Gateway need to run with an account with admin permissions on the remote Windows hosts..
Once you got that set up, you can make a Bash script that gets all hosts of a hostgroup where you put all the Windows hosts in and update them all sequentially and automatically. The only thing you will need to do is write one more Powershell script to update the nsclient.ini. I have that script, but it contains too many sensible info, so I can't put that on Github yet, it also makes connection with our SQL Inventory db to get realtime event exclusions, so in order to work you would need a sql db with identical tables as we have etc.

Grtz

Willem
Thanks, Willem. Yes, there are issues with UAC and prompting for user intervention when it's running and when I'm trying to install manually. Very frustrating and a time waster.

Since the link you provided displays several files, I'm assuming that I would need all the files, but which one would I need to run?
Newbie '14
Locked