NRPE deprecated in favour of NCPA

As stated in a topic in the Nagios forums https://support.nagios.com/forum/viewtopic.php?f=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:

check_command check_nrpe!check_network!-i enp2s0f0

and then we have the following in /etc/pnp4nagios/check_commands/check_nrpe.cfg:

#
# 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:

/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:

check_command check_ncpa!-M interface/enp2s0f0

Any suggestions?

Regards,

D/\N

Looking at the pnp4nagios documentation you’ll see how the arguments can be used to form the template name. I’d expect that “-M interface” is not usable so splitting the argument “-M interface” into two arguments might look like this:
check_command check_ncpa!-M!interface!enp2s0f0
CUSTOM_TEMPLATE = 0,2
resulting in check_ncpa_interface.php.
I haven’t tested the above but the examples from the documentation tend to back my assumptions.

Yes, I have also been thinking along those lines.
I have also tested it and it works as expected.
In 90% of the cases this would work.
For the other 10% I will probably do some “specialized” checks (check_ncpa_xyz).

Thanks for your time & Regards,

Dan