Do you use let's encrypt?





9580 votes ~ 32 comments

 

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?