Skip to main content
Question

Service template OS-Linux-File-Date-Generic-NRPE4-custom unusable

  • September 26, 2025
  • 3 replies
  • 22 views

Forum|alt.badge.img+5

Apologies if this is a duplicate. I could not find an existing similar issue.

centreon V24.10

plugin nrpe4 for linux 25.09.0

After installing NRPE plugin I tried to use the provided template OS-Linux-File-Date-Generic-NRPE4-custom.
I added the service to an existing host and the resulting check command produced was

/usr/lib64/nagios/plugins/ -H my_monitored_host -p  -t   -c check_centreon_plugins -a 'os::linux::local::plugin' 'files-date'  '  --files="my_monitored_file" --warning="172800"  --critical="259200" --filter-plugin="" --verbose'

 

Which obviously failed for 3 reasons:

  • path to the executable was missing
  • option -t was empty
  • option -p was empty

I created my own check command and service template to have the following check command: 

/usr/lib64/nagios/plugins/check_nrpe -H my_monitored_host -c check_centreon_plugins -a 'os::linux::local::plugin' 'files-date'  '  --files="my_monitored_file" --warning="172800"  --critical="259200" --filter-plugin="" --verbose'

My monitoring was then OK.

Is it just me missusing the template or is it broken?
Is it because the plugin is in version 25.09?
Hope that might help others.
 

3 replies

vcoum
Centreon Lord Commander
Forum|alt.badge.img+13
  • Centreon Lord Commander
  • 137 replies
  • September 26, 2025

Hello,

I may be wrong, but did you also applied the Host Template for NRPE4 ?

If you only created the service with the service template, it may explain why there is missing value

 

This values are fetched from the HOST Macros, set at the host level, from the NRPE4 Host template

Can you try, on your host, to add the NRPE4 Template, and check if there is some macros which could match with the missing value?


Forum|alt.badge.img+5
  • Author
  • Steward **
  • 5 replies
  • September 26, 2025

Thanks for your reply.
As I used the template at the service level not the host that would indeed explain the missing values. I will test and let you know.


Forum|alt.badge.img+5
  • Author
  • Steward **
  • 5 replies
  • September 26, 2025

I confirm I missused the template. I have to add the NRPE template to the host before adding the service template to the host.
Rereading the documentation it is explained as such but I did not grasp it the first time.
Sorry.