标签:ecs false col lse user emd star nagios code
原因:
由于手动开启nrpe程序,产生临时文件,需要把产生的多余文件删除。
[root@nagios ~]# ll /tmp/
drwx------ 3 root root 17 Aug 12 13:47 systemd-private-e9aa9379cce548dab04aa0ab896def51-ntpd.service-mJrIFY <<产生的多余文件,导致远程调用程序不成功的原因
解决方法:
1、删除systemd-private-e9aa9379cce548dab04aa0ab896def51-ntpd.service-mJrIFY文件
rm -fr /tmp/systemd-private-e9aa9379cce548dab04aa0ab896def51-ntpd.service-mJrIFY
#重启服务
systemctl restart nrped
或修改系统服务
[Unit] Description=NRPE server daemon Documentation=/data/nrpe-2.15/ After=network.target [Service] Type=forking ExecStart=/etc/init.d/nrped start ExecStop=/etc/init.d/nrped stop Restart=/etc/init.d/nrped restart #原来是True修改为False PrivateTmp=False [Install] WantedBy=multi-user.target
#重启服务
systemctl daemon-reload
systemctl restart nrped
Nagios-报错:UNKNOWN Can't connect to the JVM:
标签:ecs false col lse user emd star nagios code
原文地址:https://www.cnblogs.com/ygbh/p/11366874.html