Use NSClient to monitor a machine its not installed on

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
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Use NSClient to monitor a machine its not installed on

Post by nathanplatt »

Hi Everyone,

Previous i logged a problem monitoring our QNAP where the plugin was timing out. This now happens daily and I was wondering how I could get another Server in its Physical location to pull the data for the plugin. rkennedy implied this is possible.

Any help would be appreciated

Nathan
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Use NSClient to monitor a machine its not installed on

Post by Box293 »

These guides explain how to allow NSClient++ to perform checks against other NSClient++ instances:

http://sites.box293.com/nagios/guides/n ... le-hopping

Is this what you are looking for?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Use NSClient to monitor a machine its not installed on

Post by nathanplatt »

I think I understand that, but the device I'm trying to monitor is SNMP only. I can't install NSClient on it as its a custom web based config. Is there a way for another machine to pull the snmp information to it and then relay to Nagios stored at a different site. (Both sites are connected over VPN)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Use NSClient to monitor a machine its not installed on

Post by Box293 »

A windows machine will be difficult to do that with.

If you had a linux machine at the site, you could install NRPE on it and the nagios plugins with SNMP support. Then based on my guide you could use the NRPE client to do the SNMP checks.

Alternatively you could have a linux machine at the site and install a Mod-Gearman worker on it to execute the checks.
Here are some Mod-Gearman guides:

https://support.nagios.com/kb/article.php?id=225
https://support.nagios.com/kb/article.php?id=484
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Use NSClient to monitor a machine its not installed on

Post by nathanplatt »

Would a Raspberry Pi would be powerful enough to accomplish this?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Use NSClient to monitor a machine its not installed on

Post by Box293 »

It should be possible, the newer versions of Pi seem to be more powerful.

I'm not sure what type of compatibility you may face running Raspbian and Mod-Gearman. I would be included to run the same OS that your Nagios server is to keep things simple.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: Use NSClient to monitor a machine its not installed on

Post by nathanplatt »

Box293 wrote:It should be possible, the newer versions of Pi seem to be more powerful.

I'm not sure what type of compatibility you may face running Raspbian and Mod-Gearman. I would be included to run the same OS that your Nagios server is to keep things simple.
Ah, well Nagios is on Centos 7, so not sure how well it'll run. I'll do some tests on this site and see how it works. Consider the tread closed and I'll try the solutions you've linked!

Thanks again
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Use NSClient to monitor a machine its not installed on

Post by mcapra »

Closing this per your request. Feel free to create another thread with additional developments/issues!
Former Nagios employee
https://www.mcapra.com/
Locked