Nagios-报错:UNKNOWN Can't connect to the JVM:
Posted ygbh
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nagios-报错:UNKNOWN Can't connect to the JVM:相关的知识,希望对你有一定的参考价值。
原因:
由于手动开启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:的主要内容,如果未能解决你的问题,请参考以下文章
Nagios监控Oracle表空间出现Cannot determine ORACLE_HOME报错
nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
Unknown column 'xxx' in 'field list' 报错原因
jmeter------reponse报错”Unknown column 'XXXXX' in 'where clause'“
activiti 报错 unknown version from database: '7.0.0.0'
navicat报错2005 - Unknown MySQL server host 'localhost' 原因及解决方法