ssh vs nrpe

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: ssh vs nrpe

Post by jdalrymple »

BanditBBS wrote:I was planning on writing a check that runs once a day on all my linux servers that checks a folder for a file. If it exists, then a script will be kicked off that will grab new plugins and new nrpe.cfg. It will then restart xinetd. We centrally manage sudo files, so can easily add the line to allow the nagios user to restart that server globally.
Make sure to exploit the test environment included in your XI license!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: ssh vs nrpe

Post by Box293 »

BanditBBS wrote:I need to automate it as we are constantly writing new plugins/expanding our monitoring. That, plus bug fixes or updates to existing plugins. Of course, this plan may all get thrown away and we may do it another way, but that's what is in my mind at the moment.
It would be worthwhile looking into what Willem has been working on for deploying stuff using Nagios Reactor.

https://github.com/willemdh/naf_request_install
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: ssh vs nrpe

Post by BanditBBS »

Troy,

We are using NSClient for our windows servers and I would venture to guess they are less than 5% of my hosts...so no reason to need that yet.

However, that brings up a couple questions now......

1.) Is reactor ready for prime time?

2.) Its been so long since I messed with it or saw the video, excuse this question(I will go look after posting) - Could I use reactor to deploy NRPE and also to keep it up to date if there are changes I need to make to nrpe.cfg and/or plugins?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: ssh vs nrpe

Post by Box293 »

BanditBBS wrote:1.) Is reactor ready for prime time?
I haven't had a chance to play with Reactor yet, however I know Willem has invested much time in using it in his environment. If it wasn't suitable them I'm sure he would not have persisted with it.
BanditBBS wrote:We are using NSClient for our windows servers and I would venture to guess they are less than 5% of my hosts...so no reason to need that yet.
BanditBBS wrote:Could I use reactor to deploy NRPE and also to keep it up to date if there are changes I need to make to nrpe.cfg and/or plugins?
Yes, you should be able to use it to deploy NRPE. I pointed you to Willem's project as this is a good use case for Reactor, looking at what he has already done may save you a lot of leg work.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: ssh vs nrpe

Post by WillemDH »

Hello,

I'm using Reactor to update and deploy NSClient on all of my Windows Servers (about 450 servers). Created event chains for each specific task with a schedule and priority hostgroups.. Only requirement is that you need a Windows gateway where the NSClient is running with an account that has sufficient permissions on all Windows hosts. I hope to find some time to clean them up and document them.

if set up correctly following the how to doc, you should be able to install NSClient with this on one server:

Code: Select all

https://github.com/willemdh/naf_request_install
(Or any other software with an msi in fact if you make a similar install ps1 like naf_install_nsclient.ps1)

Grtz

Willem
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ssh vs nrpe

Post by lmiltchev »

Thanks for sharing, Willem!
First, building, testing and reporting bugs are highly appreciated. Please include console's output and reproduction step in your bug report.
Post it on the Nagios Exchange whenever you have time. I believe a lot more nagios users will get to see it there and possibly test it.
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: ssh vs nrpe

Post by WillemDH »

Well I put it on the Exchange. (still needs to be accepted) I hope some people get it working. Documentation might still be limited for now.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: ssh vs nrpe

Post by abrist »

I will poke Ludmil about your exchange posting.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ssh vs nrpe

Post by lmiltchev »

I approved the Exchange post... needed some poking. :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
mp4783
Posts: 116
Joined: Wed May 14, 2014 11:11 am

Re: ssh vs nrpe

Post by mp4783 »

I have done what you describe here using SCP. I don't recall where I posted an outline of the method I used (it's in the forum somewhere), but it pretty much followed what you described.

The thing we're still working through is how to differentiate between platforms, apps, etc. so they all get the correct checks and libraries.
Locked