nagios 安装配置(5)——check_nrpe传参
来源:互联网 发布:100以内的质数java 编辑:程序博客网 时间:2024/06/04 17:47
现象:
监控主机:
[root@xxx ~]# /usr/local/nagios/libexec/check_nrpe -H 2.xx.xx.xx -c check_pingtest -a " -H 1.2.3.4 -w 150,30% -c 200,50% -p 5"
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
被监控主机:
tail -f /var/log/messages
Jun 5 07:41:31 xxx nrpe[10807]: Error: Request contained command arguments!
Jun 5 07:41:31 xxx nrpe[10807]: Client request was invalid, bailing out...
解决:
被监控主机:
- 重新编译安装nrpe 带这个参数 --enable-command-args ; make all ;make install #####allows clients to specify command arguments. *** THIS IS A SECURITY RISK! *** Read the SECURITY file before using this option!
- /usr/local/nagios/etc/nrpe.cfg : dont_blame_nrpe=1 #打开参数传递
- 编辑 /usr/local/nagios/etc/nrpe.cfg : command[check_pingtest]=/usr/local/nagios/libexec/check_ping -H $ARG1$ -w 1500,100% -c 2000,100% -p $ARG2$ -t 10
监控主机:
- 测试:[root@xxx ~]# /usr/local/nagios/libexec/check_nrpe -H 2.xx.xx.xx -c "check_pingtest" -a 1.2.3.4 10
- 结果:PING OK - Packet loss = 0%, RTA = 53.43 ms|rta=53.426998ms;1500.000000;2000.000000;0.000000 pl=0%;100;100;0
0 0
- nagios 安装配置(5)——check_nrpe传参
- centos nagios CHECK_NRPE: Error
- nagios 安装配置——安装
- nagios 安装配置(2)——中文乱码
- nagios 安装配置(3)——事件处理
- Nagios+pnp4nagios+rrdtool 安装配置nagios(一)
- Nagios CHECK_NRPE: Socket timeout after 10 seconds
- Nagios 探索之九 —— NRPE的安装配置
- CentOS6.5下的Nagios安装配置详解(图文)
- nagios安装和配置(1)
- Nagios太阳(pnp)安装配置
- nagios安装与配置
- nagios安装与配置
- nagios简易安装配置
- nagios+nrpe安装配置
- nagios配置安装笔记
- 【应用软件】nagios安装配置
- nagios简易安装配置
- Linux用户密码策略
- java基础--笔记16
- android ImageView android:adjustViewBounds属性的作用
- DataTable转泛型
- Go学习资料
- nagios 安装配置(5)——check_nrpe传参
- oracle job 定时执行 存储过程
- java基础--笔记17
- 开通CSDN,记录学习的点滴
- Tomcat中两个不同项目共享Session
- 推荐微信公众号“敏捷那些事儿(AgilePlus)”
- 基于visual Studio2013解决算法导论之015第二小元素
- js无缝滚动
- PKIX path validation failed 以及Unsupported major.minor version 51.0问题