This site is now 100% read-only, and retired.

XML logo

Replacing NRPE with Saltstack
Posted by medwayman on Thu 27 Jul 2017 at 15:09
Tags: none.

NRPE has worked well over the years, but is getting increasingly difficult to use if you want to pass arguments from the Nagios server. The latest Debian packages, for instance, are compiled without the arguments option.

Enter Saltstack. Although aimed at configuration management, its basis is a secure channel, via ZeroMQ, to execute commands on remote servers, 'minions' in Salt parlance. So it's exactly what is needed, and is simple to install and configure to get the command execution channel up and running.

Salt has Python client API, so a fairly simple script can tell a minion to execute a plugin and send back the output and exit code to Nagios.

One change is that you no longer have nrpe.cfg on the client, so anything you were doing there will have to be done in the config on the Nagios server. Arguably that's not such a bad thing to have all the config in one place?


Comments on this Entry

Re: Replacing NRPE with Saltstack
Posted by Anonymous (31.211.xx.xx) on Tue 22 Aug 2017 at 12:08

I have created own package of nrpe-3.2 with command arguments enabled instead. Of course, I'm using SSL certificates for authorization.

[ Parent ]