找回密碼
 註冊
搜索
查看: 3957|回復: 0

Nagios Ping被擋掉出現Host down怎麼辦?

[複製鏈接]
發表於 2010-3-30 18:02:40 | 顯示全部樓層 |閱讀模式
commands.cfg 加入
define command {
    command_name check-host-alive-by-http
    command_line $USER1$/check_http -H $HOSTADDRESS
}

hosts.cfg (自行定義的檔案) 加入加粗部份
define host{
    use                     generic-host
    host_name         a-host-behind-a-firewall.mydomain.de
    alias                   a-host-behind-a-firewall.mydomain.de
    address              a-host-behind-a-firewall.mydomain.de
    check_command check-host-alive-by-http
}

Reference: http://lena.franken.de/nagios/hosts_without_ping.html
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-4-29 23:54 , Processed in 0.016288 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表