温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

linux下安装Nagios-check-mk-agent

发布时间:2020-06-14 01:28:10 来源:网络 阅读:803 作者:guestljy 栏目:移动开发

以下方法本人安装了3台服务器,绝对有效
被监控端
1
安装超级守护进程(按需)
[root@rootbug~]#yum install xinetd

2
查看超级守护进程开启情况
[root@rootbug ~]# chkconfig --list |grep xinetd
xinetd
0:off 1:off 2:off 3:on 4:on 5:on 6:off
从中可以查看到xinetd是否为开机启动,如果有其他进程托管到超级守护进程下,此命令也可以列出它们的启动情况。
如果没有可以设置开机启动
[root@rootbug ~]#chkconfig --level 2345 xinetd on

3
安装check_mk-agent插件
centos/redhat下
wget http://mathias-kettner.de/download/check_mk-agent-1.2.2p3-1.noarch.rpm
rpm -ivh check_mk-agent-1.2.2p3-1.noarch.rpm

vim  /etc/xinetd.d/check_mk
service check_mk
{
        type           = UNLISTED
        #flags       = IPv4
        port           = 6556
        socket_type    = stream
        protocol       = tcp
        wait           = no
        user           = root
        server         = /usr/bin/check_mk_agent
        # If you use fully redundant monitoring and poll the client
        # from more then one monitoring servers in parallel you might
        # want to use the agent cache wrapper:
        #server         = /usr/bin/check_mk_caching_agent
        # configure the IP address(es) of your Nagios server here:
        #only_from      = 127.0.0.1 10.0.20.1 10.0.20.2
        # Don't be too verbose. Don't log every check. This might be
        # commented out for debugging. If this option is commented out
        # the default options will be used for this service.
        log_on_success =
        disable        = no
}
#only_from 加入监控端ip,保证监控端可以telnet到被监控端


windows下
http://mathias-kettner.de/download/check-mk-agent-1.2.2p3.exe
下一步下一步就行了
进入安装目录C:\Program Files\check_mk
打开check_mk.example.ini
在only_from后加入监控端地址

4
监控端telnet 被监控端 6556
#telnet 被监控端 6556

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI