Nagios-报错:UNKNOWN Can't connect to the JVM:

前端之家收集整理的这篇文章主要介绍了Nagios-报错:UNKNOWN Can't connect to the JVM:前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

原因:

  由于手动开启nrpe程序,产生临时文件,需要把产生的多余文件删除

[[email protected] ~]# 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

猜你在找的JVM相关文章