免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 9453 | 回复: 3
打印 上一主题 下一主题

问一下,nrpe不能启动是为什么?(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-26 17:29 |只看该作者 |倒序浏览
tar xzf nrpe-2.8tar.gz

cd nrpe-2.8

./configure

make all

make install-plugin

make install-daemon

make install-daemon-config

vi /etc/xinetd.d/nrpe
vi /etc/services
service xinetd restart
netstat -at | grep nrpe
netstat -at | grep 5666

然而看不到nrpe启动啊——listen里没有……如果手动启动会报告
Error: NRPE daemon cannot be run as user/group root!
请指教下如何让nrpe启来呢?


最后发现是安装的时候忘记了make install-daemon,所以没起来……惭愧

[ 本帖最后由 iamshiyu 于 2009-3-23 14:41 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-02-27 12:29 |只看该作者

回复 #1 iamshiyu 的帖子

修改nrpe的配置文件,user和group别用root

论坛徽章:
0
3 [报告]
发表于 2009-02-27 15:09 |只看该作者
原帖由 exp07 于 2009-2-27 12:29 发表
修改nrpe的配置文件,user和group别用root

# more /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
        port            = 5666
        wait            = no
        user            = nagios
        group           = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
        only_from       = 127.0.0.1 192.168.1.6
}
# grep -v "[!^#]" /usr/local/nagios/etc/nrpe.cfg
pid_file=/var/run/nrpe.pid
server_port=5666
server_address=127.0.0.1
nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=127.0.0.1
dont_blame_nrpe=0
debug=0
command_timeout=60
connection_timeout=300
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
# service xinetd restart
然后看5666端口还是没有监听……

论坛徽章:
0
4 [报告]
发表于 2009-03-02 11:21 |只看该作者
vi /etc/services
加入
nrpe            5666/tcp                        # nrpe
service xinetd restart
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP