check_mk linux agent安裝

來源:互聯網
上載者:User

和前面的check_mk安裝中的部分差不多。這裡描述一下基本過程。

在要監控的Linux伺服器上,先安裝xinetd

apt-get install xinetd

安裝agent

dpkg -i check-mk-agent_1.2.2p1-2_all.deb

/etc/xinetd/check_mk檔案會自動安裝好。

重新啟動xinetd

service xinetd restart

現在在icinger server上運行命令,測試一下能否聯通:

check_mk -d agent-host-server

通過後在icinga server上/etc/hosts中添加主機名稱和IP

10.112.18. 131 StaticFileServer

然後編輯/etc/check_mk/main.mk檔案

all_hosts = [        "localhost",        "StaticFileServer"]

也可以直接寫IP地址,我有一台伺服器用hostname串連時斷時續, 用IP倒很好。沒有問題。

然後再運行cmk -I 

 cmk -Icpu.loads         1 new checkscpu.threads       1 new checksdf                2 new checksdiskstat          1 new checkskernel            3 new checkskernel.util       1 new checkslnx_if            1 new checksmem.used          1 new checksmounts            2 new checkstcp_conn_stats    1 new checksuptime            1 new checks

運行cmk -O

現在開啟網站看icinga網站,注意不是check_mk網站。看到:

先到這裡。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.