最近我寫了關(guān)于naigos監(jiān)控的安裝與配置的技術(shù)文檔,公司運(yùn)維按照我的文檔部署naigos,發(fā)現(xiàn)不能發(fā)送報(bào)警郵件,經(jīng)過我的檢查,發(fā)現(xiàn)問題如下:
讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對(duì)這個(gè)行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長期合作伙伴,公司提供的服務(wù)項(xiàng)目有:域名注冊(cè)、網(wǎng)頁空間、營銷軟件、網(wǎng)站建設(shè)、鄲城網(wǎng)站維護(hù)、網(wǎng)站推廣。
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 ##一定要有本機(jī)的ip對(duì)應(yīng)
3、去nagios的web里,選擇報(bào)警的服務(wù)(如果httpd),
點(diǎn)擊http旁邊的這個(gè)摁鈕,如果你看到notification狀態(tài)為disabled 那么你可以選擇右側(cè)的,然后選擇commit 。出現(xiàn)下面對(duì)話框
- [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... (NewPID=25399)
- [1326424464] SERVICE NOTIFICATION: nagiosadmin;henan-cunchu;HTTP;CRITICAL;notify-service-by-email;?.?榪..