CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
server Error for The from check Remote bytes
2023-09-27 14:22:16 时间
今天,在用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
相关文章
- Mysql远程连接报错:SQL Error (1130): Host '192.168.61.128' is not allowed to connect to this MySQL server
- HTTP Error 500.22 - Internal Server Error 错误解决方案
- MYSQL导入CSV格式文件数据执行提示错误(ERROR 1290): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement.
- phpstudy 500 Internal Server Error 解决办法
- 下载 SQL Server Data Tools (SSDT) for Visual Studio 2019
- seata启动失败 nettyServer init error:ErrCode:500, ErrMsg:failed to req API:/nacos/v1/ns/instance after all servers([127.0.0.1:30099]) tried: ErrCode:503, ErrMsg:server is DOWN now, please try again later!
- CI当开启URL重写的时候,报错500 Internal Server Error
- SSTP:windows server 2008+ 配置关键点
- SharePoint Server 2016功能包即将推出
- Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19
- http 500 Internal Server Error的错误 ajax请求SpringMVC后台中返回500 Internal Server Error
- Windows Server 2016:腾飞助力还是锁定客户?
- ubuntu 12.04 rails server 时候报错 execjs
- Unity http Get失败:Curl error 52: Empty reply from server
- linux杂谈(十三):代理server
- C++ websocket client/server library
- python flask Internal Server Error 解决
- 收缩SQL Server日志不是那么简单的(翻译)
- SQL Server 2005:一个使用新创建的User的问题和解决方法
- Sql Server系列:索引维护
- Debian上安装TightVNC Server
- 在k8s中安装flannel的故障解决: Failed to create SubnetManager: error retrieving pod spec for : the server does not allow access to the requested resource
- [mysq]ERROR 2006 (HY000) at line xx: MySQL server has gone away 解决方法
- Artifact xxx:war exploded: Error during artifact deployment.See server log for details.