check_nrpe!check service -> CRITICAL: Service is not runnin

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
nitesupp
Posts: 1
Joined: Tue Nov 24, 2020 8:06 am

check_nrpe!check service -> CRITICAL: Service is not runnin

Post by nitesupp »

Hello

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
}
And i get CRITICAL: Service is not running!
(when the service is up or down)

if i run on the client
./check_service -s firewalld
It works

Any idea ?
Thanks
Locked