NRPE deprecated in favour of NCPA

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
danjoh
Posts: 73
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland
Contact:

NRPE deprecated in favour of NCPA

Post by danjoh »

As stated in an other topic https://support.nagios.com/forum/viewto ... =7&t=57960 NRPE is to be deprecated and "replaced" with NCPA.
I now have a question regarding pnp4nagios in this context.
With NRPE the check command mostly looked like this:

Code: Select all

check_command      check_nrpe!check_network!-i enp2s0f0
and then we have the following in /etc/pnp4nagios/check_commands/check_nrpe.cfg:

Code: Select all

#
# Adapt the Template if check_command should not be the PNP Template
#
# check_command check_nrpe!check_network
# ________0__________|             |
# ________1________________________|
#
# User ARG1
CUSTOM_TEMPLATE = 1
(or some variant thereof) which then control which pnp4nagios template get used.
In our case it would be: where

Code: Select all

/usr/share/nagios/html/pnp4nagios/templates/check_network.php
How can we achieve the same thing using NCPA where the same check command would look something like this:

Code: Select all

check_command      check_ncpa!-M interface/enp2s0f0
Any suggestions?

Regards,
--
D/\N
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRPE deprecated in favour of NCPA

Post by Box293 »

There does not seem to be a native way to do that right now. A suggestion is to write wrapper scripts that would execute the check for you. Basically emulate the functionality.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked