CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
来源:互联网 发布:画素描的软件 编辑:程序博客网 时间:2024/06/07 00:05
今天,在用icinga服务器端测试客户端脚本时,报如下错误:
[root@mysql-server1 etc]# /usr/local/icinga/libexec/check_nrpe -H 192.168.244.146 -c check_users -a 10 20
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
查看客户端/var/log/messages日志,有如下信息:
Jan 18 15:50:20 mysql-server2 nrpe[3328]: Error: Request contained command arguments!Jan 18 15:50:20 mysql-server2 nrpe[3328]: Client request was invalid, bailing out...
修改客户端nrpe的配置文件
# vim /usr/local/icinga/etc/nrpe.cfg
dont_blame_nrpe=1
重启客户端程序
[root@mysql-server2 etc]# /etc/init.d/icinga-nrpe restart
但还是无济于事,后来,才发现NRPE插件编译的时候没有指定--enable-command-args选项,导致命令行参数是不可用的。
只得重新编译客户端NRPE插件
# cd /usr/src/icinga-nrpe-2.14/
# ./configure --enable-command-args
# make all
# make install
# make install-plugin
# make install-init
# make install-xinetd
# make install-daemon-config
修改完相关参数后,重新测试,OK
[root@mysql-server1 etc]# /usr/local/icinga/libexec/check_nrpe -H 192.168.244.146 -c check_users -a 10 20
USERS OK - 1 users currently logged in |users=1;10;20;0
0 0
- CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
- nrpe 报错 Received 0 bytes from daemon
- pymodbus client出现Modbus Error: [Input/Output] No Response received from the remote unit错误
- Setup failed to configure the server. Refer to the server error logs and setup error logs for more i
- error Received malformed response from registry for undefined. The registry may be down.
- Android studio3.0 com.android.tools.aapt2.Aapt2Exception: AAPT error:check logs for details
- Remote rsyslog server records the logs of python script
- How to collect TrustZone debug logs and check the meaning of error code in the logs
- <h3>Validation error messages from TagLibraryValidator for c in
- JSTL Validation error messages from TagLibraryValidator for c in
- <h3>Validation error messages from TagLibraryValidator for c in解决办法
- https使用HttpWebRequest出现错误:System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.的解决方法
- #项目导入AS出错:Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
- Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
- Docker Error response from daemon: client is newer than server
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
- com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
- (2)Mysql ----- The last packet successfully received from the server was *** millisecond ago.The
- 如何部署Icinga服务端
- XMPP原理
- 搭建Spark的单机版集群
- MyCAT实现MySQL的读写分离
- NVIDIA Documentation
- CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
- java中equals方法的用法以及==的用法
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- CentOS 7下MySQL服务启动失败的解决思路
- C++运算符重载函数基础及其值返回状态
- MySQL参数
- MyCAT常用分片规则之分片枚举
- Android学习笔记(十三)text 文本输入
- 关于MyCAT字符集的验证