nrpe 报错 Received 0 bytes from daemon
来源:互联网 发布:gltools王者荣耀优化 编辑:程序博客网 时间:2024/06/01 16:32
Verify the check_nrpe error message
Just for testing purpose, let us assume that you are execuing the following check_nrpe command that displays the “CHECK_NRPE: Received 0 bytes from daemon.” error message.
执行这个命令报错
Received 0 bytes from daemon. Check the remote server logs for error messages.
$ /usr/local/nagios/libexec/check_nrpe -H 192.168.1.20 -c check_disk -a 60 80 /dev/sdb1CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
If you view the /var/log/messages on the remote host, (in the above example, that is 192.168.1.20), you’ll see the nrpe error “Error: Request contained command arguments!” as shown below, indicating that check_nrpe is not enabled to take the command arguments.
到目标机器上查看
/var/log/messages
$ tail -f /var/log/messagesDec 5 11:11:52 dev-db xinetd[2536]: START: nrpe pid=24187 from=192.168.101.108Dec 5 11:11:52 dev-db nrpe[24187]: Error: Request contained command arguments!Dec 5 11:11:52 dev-db nrpe[24187]: Client request was invalid, bailing out...Dec 5 11:11:52 dev-db xinetd[2536]: EXIT: nrpe status=0 pid=24187 duration=0(sec)
Enable check_nrpe command arguments
To enable command arguments in NRPE, you should do the following two things.
1. Configure NRPE with –enable-command-args
Typically when you install NRPE on the remote host, you’ll do ./configure without any arguments. To enable support for command arguments in the NRPE daemon, you should install it with –enable-command-args as shown below.
[remotehost]# tar xvfz nrpe-2.12.tar.gz[remotehost]# cd nrpe-2.12[remotehost]# ./configure --enable-command-args[remotehost]# make all[remotehost]# make install-plugin[remotehost]# make install-daemon[remotehost]# make install-daemon-config[remotehost]# make install-xinetd
2. Modify nrpe.cfg and set dont_blame_nrpe
Modify the /usr/local/nagios/etc/nrpe.cfg on the remote server and set the dont_blame_nrpe directive to 1 as shown below.
- nrpe 报错 Received 0 bytes from daemon
- CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
- php 使用curl 代理访问报错:Operation timed out after 0 milliseconds with 0 out of 0 bytes received
- web服务连接mysql报错 解析:Can not read response from server. Expected to read 4 bytes, read 0 bytes before c
- max_allowed_packet' bytes报错
- 【java报错】Unknown character set index for field '224' received from server.
- mysql 报错Communications link failure,The last packet successfully received from the server was × mill
- https使用HttpWebRequest出现错误:System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.的解决方法
- Spring连接mysql长时间空闲报错:The last packet successfully received from the server was xx millisecond ago...
- C/C++调试笔记:空指针报错The inferior stopped because it received a signal from the operating system.
- 解决使用gradle打包报错“The first result from the daemon was empty. ”
- Docker:删除images报错(Error response from daemon: conflict: unable to remove repository reference)
- AndroidStudio Gradle构建项目报错:Error:The first result from the daemon was empty
- docker报错-->Error response from daemon: Get xxx: unauthorized: incorrect username or password
- 报错:memory violation : Exception ACCESS_VIOLATION received
- 安装nrpe报错Cannot find ssl libraries
- nagios报错NRPE: Command 'check_heartbeat' not defined
- Storm_Storm报错 Received invalid messages for unknown tasks. Dropping...
- 体验三元运算O(∩_∩)O哈!
- linux__framebuffer__认识
- 1-1000的回文数
- 阿姆斯特朗数
- 我的第二十五个C++上机任务(判断是否是素数!)
- nrpe 报错 Received 0 bytes from daemon
- android sqlite3详解
- 吃饭 睡觉 打豆豆!!!
- 句柄
- java高新技术
- linux下vi命令大全
- SQL Server XML基础学习<3>之--FOR XML EXPLICIT
- 第十一周任务大奖赛2
- 编译错误build error