Make sure to exploit the test environment included in your XI license!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.
ssh vs nrpe
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: ssh vs nrpe
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: ssh vs nrpe
It would be worthwhile looking into what Willem has been working on for deploying stuff using Nagios Reactor.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.
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.
Re: ssh vs nrpe
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?
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
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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: ssh vs nrpe
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:1.) Is reactor ready for prime time?
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.
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.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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: ssh vs nrpe
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:
(Or any other software with an msi in fact if you make a similar install ps1 like naf_install_nsclient.ps1)
Grtz
Willem
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_installGrtz
Willem
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: ssh vs nrpe
Thanks for sharing, Willem!
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.First, building, testing and reporting bugs are highly appreciated. Please include console's output and reproduction step in your bug report.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ssh vs nrpe
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
https://outsideit.net
Re: ssh vs nrpe
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.
"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.
Re: ssh vs nrpe
I approved the Exchange post... needed some poking. 
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: ssh vs nrpe
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.
The thing we're still working through is how to differentiate between platforms, apps, etc. so they all get the correct checks and libraries.