您好,登錄后才能下訂單哦!
最近我寫了關于naigos監控的安裝與配置的技術文檔,公司運維按照我的文檔部署naigos,發現不能發送報警郵件,經過我的檢查,發現問題如下:
1、hosts里的配置
- [root@nagios ~]# cat /etc/hosts
- # Do not remove the following line, or various programs
- # that require network functionality will fail.
- 127.0.0.1 localhost.localdomain localhost
- ::1 localhost6.localdomain6 localhost6
- 172.16.4.3 nagios.com nagios ##一定要有本機的ip對應
3、去nagios的web里,選擇報警的服務(如果httpd),
點擊http旁邊的這個摁鈕,如果你看到notification狀態為disabled 那么你可以選擇右側的,然后選擇commit 。出現下面對話框
- [root@nagios var]# tail -f nagios.log
- [1326419317] Auto-save of retention data completed successfully.
- [1326422917] Auto-save of retention data completed successfully.
- [1326424408] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;henan-cunchu;HTTP
- [1326424434] Caught SIGTERM, shutting down...
- [1326424434] Successfully shutdown... (PID=6823)
- [1326424434] Nagios 3.3.1 starting... (PID=25398)
- [1326424434] Local time is Fri Jan 13 11:13:54 CST 2012
- [1326424434] LOG VERSION: 2.0
- [1326424434] Finished daemonizing... (New PID=25399)
- [1326424464] SERVICE NOTIFICATION: nagiosadmin;henan-cunchu;HTTP;CRITICAL;notify-service-by-email;?.?榪..
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。