无法停止 nagios nrpe 服务器

无法停止 nagios nrpe 服务器

注意:我指的是旧的 Ubuntu 14.04! :( 别怪我,这不是我的错。

我有这个过程

在此输入图像描述

当我杀死时,某些东西会自动重新启动。

我需要阻止它!

我尝试了以下操作但没有成功

# systemctl disable nrpe.service
# systemctl stop nrpe.service
# systemctl status nrpe.service
nrpe.service - Nagios Remote Plugin Executor
   Loaded: loaded (/etc/systemd/system/nrpe.service; disabled)
   Active: failed (Result: exit-code) since Tue 2021-08-17 09:44:23 CEST; 14min ago
     Docs: http://www.nagios.org/documentation
 Main PID: 21974 (code=exited, status=1/FAILURE)
   CGroup: name=dsystemd:/system/nrpe.service

Aug 17 09:44:23 localhost nrpe[21974]: Starting up daemon
Aug 17 09:44:23 localhost nrpe[21974]: Bind to port 5666 on 0.0.0.0 failed: Address already in use.

我也尝试过

# /etc/init.d/nagios-nrpe-server stop
# /etc/init.d/nagios-nrpe-server status
#

但在htop中该进程仍在运行

我使用旧方式查询服务状态

# service --status-all
[ - ]  nagios-nrpe-server

# service nagios-nrpe-server stop

但进程仍然存在(具有不同的 PID,因此它会自动重启)

# systemctl stop nagios-nrpe-server
Failed to issue method call: Unit nagios-nrpe-server.service not loaded.
# systemctl disable nagios-nrpe-server
Failed to issue method call: No such file or directory

答案1

解决 !

# stop nrpe
# rm -f /etc/init/nrpe.conf

在这里找到说明:https://support.nagios.com/kb/print-741.html

相关内容