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.