How does the nrpe plugin work in Nagios XI?

How does the nrpe plugin work in Nagios XI?

NRPE is installed on the remote host you want to monitor from your Nagios XI server Upon receiving the request, the agent will execute a plugin on the remote host to perform the request and return that result back to Nagios XI

Which is remote plugin agent does Nagios use?

Nagios Remote Plugin Executor (NRPE) is an agent used by Nagios XI for communicating with remote hosts. Remote hosts are operating systems like Linux and Windows. This KB article explains: How Nagios XI sends requests to the NRPE Agent.

How are variables inserted into Nagios XI command?

Here is a screenshot from a service definition in Nagios XI CCM. You can see how the Command view shows the Nagios XI command being used. The variables $USER1$, $HOSTADDRESS$, $ARG1$ and $ARG2$ are dynamically inserted into the command when Nagios XI executes the check.

Which is NRPE service sends requests to the agent?

Nagios XI is what sends requests to the agent so the first step is to look at an NRPE service in Core Configuration Manager (CCM). Here is a screenshot from a service definition in Nagios XI CCM. You can see how the Command view shows the Nagios XI command being used.

Which is the receiving of returns by Nagios from script?

ACTION==”add”, KERNEL==”zfs”, MODE=”0660″, GROUP=”zfs” EOM groupadd zfs gpasswd -a nagios zfs reboot Now all works fine. Thanks for contributing an answer to Unix & Linux Stack Exchange!

How to install Nagios core service on RedHat?

On the basis of return codes, Nagios core service takes decisions and appropriate action for the corresponding host or service. Let’s install the NRPE client on your system using the following commands. The above commands are for Debian based systems. To install NRPE on Redhat based system, visit this tutorial.

What is the status code of Nagios plugin?

Every Nagios plugin must return with a status code which is called return code. On the basis of return codes, Nagios core service takes decisions and appropriate action for the corresponding host or service. Let’s install the NRPE client on your system using the following commands.