Is NRPE still supported?

Hi, I have had NRPE running on monitored linux servers which runs checks (obviously known as nagios-plugins) and returns values and exit code back to Icinga2 core.

I read about this possibility somewhere in Icinga2 documentation few months ago, but now I am not able to find the article… Was it marked as obsolete and removed? Or something like that?

I would like to set an automation process for providing certificates for these NRPE clients, but now I am not sure, if it still good way how to handling the monitoring checks…

Should I migrate the solution to Icinga agent based monitoring instead? Or is there a documented way how to set the providing process for NRPE clients?

Thanks a lot for your answer in advance.

Hi,

you can use NRPE, although we generally discourage its usage due to known security problems. With the general overhaul of the “agent based monitoring” chapter, I have removed the NRPE parts from the documentation in 2.11 only showing the agent methods we do support.

That being said, you can find the old documentation inside the 2.10.x branch on GitHub, but there won’t be any effort to document its usage nor encourage users to actually use it.

In terms of the configuration, the Icinga agent with the command_endpoint mode is easier to configure than the nrpe_arguments syntax, and in addition, you can sync commands if not already there on the agent. No extra config format to learn and adopt, like nrpe.cfg. Security is ensured with TLS and the zone/endpoint hierarchy - this adds a complexity layer, but once learned, it becomes a breeze.

https://icinga.com/docs/icinga2/latest/doc/07-agent-based-monitoring/#icinga-agent

Especially if you consider using the Icinga Director, you can hide the setup and configuration parts from your users and focus on the important bits. Mark a host as agent, and the underlaying rendered configuration does the same as known from the distributed monitoring docs for the agent command_endpoint configuration.

AFAIK @lbetz invested some time into moving along from NRPE to the Icinga agent, maybe he can share his wisdom here too :kissing_heart:

Cheers,
Michael

Hi Michael,
thanks a lot for your really quick answer and the explanation.

I am thinking about changing the solution right now. It seems that it could bring a lot of advantages. Before I deeply fall into documentation, I would like to ask you about few things, if you will agree :slight_smile:

I made a quick overview about the installation process and I am not sure about this: Currently our Icinga looks regurely into our AD and when new machine appears there, it put the host into Icinga Director, we just run Render config. And that’s all from Icinga side. (Sorry if I wasn’t exact in some terms - I didn’t setting that.)

It is still possible to hold the (or similar) way? Instead of sending generated tickets from Node Wizard?

The second question is related to plugins. I hope, that I understood it correctly that nothing will change for us if decide to switch to Icinga agent.? We still can use them, right?

Thanks a lot again for your time. You do really good support here. :slight_smile:
Regards

I made a quick overview about the installation process and I am not sure about this: Currently our Icinga looks regurely into our AD and when new machine appears there, it put the host into Icinga Director, we just run Render config. And that’s all from Icinga side. (Sorry if I wasn’t exact in some terms - I didn’t setting that.)

It is still possible to hold the (or similar) way? Instead of sending generated tickets from Node Wizard?

So, the answer is probably here :slight_smile:
https://icinga.com/docs/icinga2/latest/doc/06-distributed-monitoring/#top-down-command-endpoint

The automation in your current infrastructure also needs to setup “nrpe” as daemon on the remote host, also configure it for remote access.

With regard to the Director, you need to consider the following:

  • The agent setup can be automated with proposed scripts and tickets generated by the Director
  • The Director also offers a Self-Service-Api
  • Within the host configuration, you just enable “host as agent”, the command_endpoint parts are hidden away.

https://icinga.com/docs/director/latest/doc/24-Working-with-agents/
https://icinga.com/docs/director/latest/doc/74-Self-Service-API/

Cheers,
Michael