I don' t want install nsclient ++ all HYPERV hosts .

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
seliimgnc
Posts: 14
Joined: Mon Mar 18, 2019 8:43 am

I don' t want install nsclient ++ all HYPERV hosts .

Post by seliimgnc »

Should I install nsclient++ agent for all virtual machines on hyper-v ???? I don' t want install nsclient ++ all HYPERV hosts .
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: I don' t want install nsclient ++ all HYPERV hosts .

Post by ssax »

This is entirely up to you.

There are usually multiple methods and protocols for monitoring systems.

First you need to decide:

Do I want to install an agent on the systems I'm monitoring? Can I even install an agent if I wanted to?
-- You've indicated you do not want to install the nsclient++ on all HYPERV hosts, what about the guests (VMs)?
---- If not nsclient++, what about NCPA?

https://www.nagios.org/ncpa/

If you don't want to install an agent, you have multiple options for monitoring Windows hosts/guests, you can either use SNMP, WMI, or WinRM, or some other method you come up with.

But then you need to ask yourself, are the values that I'm looking to monitor even available through SNMP/WMI/WinRM?
-- Well, that depends on what metric you're trying to monitor and whether or not the MIB files are installed

WinRM and WMI are later additions so not all Windows hosts may support it (depending on which Windows version you're using) so you're likely to want to monitor via SNMP, then you can use SNMP traps as well.

Please see here for the docs we have on this:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://support.nagios.com/kb/article/n ... p-661.html
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

We don't have anything on WinRM at the moment but I'm assuming you can do something like this:

https://devblogs.microsoft.com/scriptin ... -on-linux/

Let us know if you have any questions.

Thank you
seliimgnc
Posts: 14
Joined: Mon Mar 18, 2019 8:43 am

Re: I don' t want install nsclient ++ all HYPERV hosts .

Post by seliimgnc »

I think, you may not understand me. For example , I have 20 virtual machines on hyperV . I want to install the nsclient++ but I am asking that should ı install to agent++ every singel machine. Can I monitoring to all machines only install nsclient to one machine ?
seliimgnc
Posts: 14
Joined: Mon Mar 18, 2019 8:43 am

Re: I don' t want install nsclient ++ all HYPERV hosts .

Post by seliimgnc »

And is avaible this agents (SNMP, WinRM vs.) for Nagios Core 4 ?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: I don' t want install nsclient ++ all HYPERV hosts .

Post by mcapra »

seliimgnc wrote:Can I monitoring to all machines only install nsclient to one machine ?
That is an NSClient++ specific question, likely better asked on their forums as no one here maintains NSClient++:
https://forums.nsclient.org/

Based on my understanding of NSClient++, that is not possible. It was designed to be installed on the specific Windows/Linux machine that you want to monitor (or to be used as a passive/active check forwarder).

If you want to monitor individual machines at the hypervisor level, there are a handful of plugins available for that use-case which may or may not have parity with what NSClient++ offers:
https://exchange.nagios.org/directory/P ... th/details

If you don't want to install/maintain a bunch of individual agent installations, I would recommend a configuration management solution like Ansible, Saltstack, Chef, Puppet, etc.
seliimgnc wrote:And is avaible this agents (SNMP, WinRM vs.) for Nagios Core 4 ?
WMI and SNMP are well supported within Nagios Core via the check_snmp and check_wmi_plus plugins:
http://nagios-plugins.org/doc/man/check_snmp.html
http://www.edcint.co.nz/checkwmiplus/

Feel free to ask any questions about how those plugins can be integrated with the various Windows components. There's a Nagios XI specific document covering WMI, which has most of the setup required for check_wmi_plus:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
https://www.mcapra.com/
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: I don' t want install nsclient ++ all HYPERV hosts .

Post by ssax »

Thanks @mcapra!

@seliimgnc, Do those answer your questions or do you have any followup questions?

NSClient++ doesn't support reaching into the guests from the hosts as far as I'm aware but you could do something like this:

Install NSClient++ on the Hyper-V host:
- Setup NRPE in NSClient++
- Then setup powershell scripts to check the stats of the Hyper-V guests that would be called through NRPE
-- You can search the Nagios Exchange for scripts available but you'll likely need to write your own to do what you want

Then you would only need to install the agent on the Hyper-V host.

More than likely you'll want to install the NSClient++ agent on every machine though as it will give you the same commands to check all the systems.
Locked