Page 1 of 1
Use NSClient to monitor a machine its not installed on
Posted: Mon Jul 04, 2016 2:25 am
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
Re: Use NSClient to monitor a machine its not installed on
Posted: Mon Jul 04, 2016 9:06 pm
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?
Re: Use NSClient to monitor a machine its not installed on
Posted: Tue Jul 05, 2016 1:39 am
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)
Re: Use NSClient to monitor a machine its not installed on
Posted: Tue Jul 05, 2016 1:49 am
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
Re: Use NSClient to monitor a machine its not installed on
Posted: Tue Jul 05, 2016 2:19 am
by nathanplatt
Would a Raspberry Pi would be powerful enough to accomplish this?
Re: Use NSClient to monitor a machine its not installed on
Posted: Tue Jul 05, 2016 3:03 am
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.
Re: Use NSClient to monitor a machine its not installed on
Posted: Tue Jul 05, 2016 3:09 am
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
Re: Use NSClient to monitor a machine its not installed on
Posted: Tue Jul 05, 2016 9:33 am
by mcapra
Closing this per your request. Feel free to create another thread with additional developments/issues!