This article intends to give the reader a brief introduction on how to install and configure the NRPE agent on SuSE Enterprise Linux (SLES) versions 12 and 15.
Historically, OP5 has compiled and packaged the NRPE agent for a large number of Linux distributions, but as per Q2 2014 we stopped doing this since it required a lot of maintenance and time. More information on this decision can be found here.
1. Only for SLES 15 systems. Add the openSUSE repository.
2. Install NRPE and the plugins that is required to add the services via the function "Add UNIX client services" when adding a new host in the configuration UI in OP5 Monitor
3. Configure the agent to utilize the plugins using commands supported by OP5 Monitor host scan.
Create a new file called /etc/nrpe.d/op5_commands.cfg containing the following information:
These paths to the plugins should match the paths to the installed plugins in step # 2.
4. Now edit /etc/nrpe.cfg and add your Monitor server(s) address(es) to the allowed_hosts parameter as a comma-separated list, example:
5. Start the nrpe agent on the host, and make sure that nrpe is started at boot:
Now you can add the services via the function "Add UNIX client services" when adding a host in OP5 Monitor.
If the host is behind a firewall, or you have enabled firewall software on the host, you need to open for incoming traffic on TCP port 5666.
Example if running SuSEfirewall2:
Linux server monitoring with SNMPv3
Another approach to monitoring servers running SLES is to use the SNMP (v3) protocol. This simplifies security configuration for Linux hosts, though it adds the complexity of MIBs and OIDs. You can find some configuration material here.