I have installed nrpe and it works fine for load / user / disk / etc
I added a script for checking specific services (check_service) :
https://exchange.nagios.org/directory/P ... ce/details
on the client, under
/usr/lib64/nagios/plugins/check_service (with permissions)
in the file /etc/nagios/nrpe.cfg :
### GENERIC SERVICES ###
command[check_service]=/usr/lib64/nagios/plugins/check_service -s $ARG1$
On the server
For checking purpose
Code: Select all
define service {
use local-service ; Name of service template to use
host_name CentOS8-vm
service_description Service status
check_command check_nrpe!check_service!firewalld
}
(when the service is up or down)
if i run on the client
./check_service -s firewalld
It works
Any idea ?
Thanks