aAfter configuring nrpe, systemctl status nrpe.service shows disabled

asked 2017-03-21 06:13:52 -0500

Nj gravatar image

This is the first time installing nrpe. I have configured nrpe for nagios in centos 7, my nagios server is working fine; my problem seams to be with installing the nrpe service only.

I have followed the following steps to install nrpe

install from EPEL

[root@node01 ~]# yum --enablerepo=epel -y install nrpe nagios-plugins-{ping,disk,users,procs,load,swap,ssh} [root@node01 ~]# vi /etc/nagios/nrpe.cfg

line 81: add access permission (specify Nagios server)


line 97: permit arguments of commands


line 210: comment out all

# command[checkusers]=/usr/lib64/nagios/plugins/checkusers -w 5 -c 10 # command[checkload]=/usr/lib64/nagios/plugins/checkload -w 15,10,5 -c 30,25,20 # command[checkhda1]=/usr/lib64/nagios/plugins/checkdisk -w 20% -c 10% -p /dev/hda1 # command[checkzombieprocs]=/usr/lib64/nagios/plugins/checkprocs -w 5 -c 10 -sZ # command[checktotalprocs]=/usr/lib64/nagios/plugins/checkprocs -w 150 -c 200

line 223: uncomment all

command[checkusers]=/usr/lib64/nagios/plugins/checkusers -w $ARG1$ -c $ARG2$ command[checkload]=/usr/lib64/nagios/plugins/checkload -w $ARG1$ -c $ARG2$ command[checkdisk]=/usr/lib64/nagios/plugins/checkdisk -w $ARG1$ -c $ARG2$ -p $ARG3$ command[checkprocs]=/usr/lib64/nagios/plugins/checkprocs -w $ARG1$ -c $ARG2$ -s $ARG3$ [root@node01 ~]# systemctl start nrpe [root@node01 ~]# systemctl enable nrpe

systemctl status nrpe.service

gives ● nrpe.service - nrpe Loaded: loaded (/etc/systemd/system/nrpe.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2017-03-21 16:25:52 IST; 4min 18s ago Process: 413 ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg (code=exited, status=3) Main PID: 413 (code=exited, status=3)

Mar 21 16:25:52 gpognagios.gspcgrp.dom systemd[1]: Started nrpe. Mar 21 16:25:52 gpognagios.gspcgrp.dom systemd[1]: Starting nrpe... Mar 21 16:25:52 gpognagios.gspcgrp.dom systemd[1]: nrpe.service: main process exited, code=exited, status=3/NOTIMPLEMENTED Mar 21 16:25:52 gpognagios.gspcgrp.dom systemd[1]: Unit nrpe.service entered failed state. Mar 21 16:25:52 gpognagios.gspcgrp.dom systemd[1]: nrpe.service failed.

edit retag flag offensive close merge delete