nagios連絡人郵箱錯誤導致nagios無法啟動

來源:互聯網
上載者:User

標籤:nagios   連絡人   郵箱錯誤   

Whoops!

Error: Could not read host and service status information!

The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you‘ve just installed things, make sure you read the documentation on starting Nagios.

Some other things you should check in order to resolve this error include:


  1. Check the Nagios log file for messages relating to startup or status data errors.

  2. Always verify configuration options using the -v command-line option before starting or restarting Nagios!


Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.


如上錯誤。


執行檢查命令

此命令在nagios安裝目錄/bin目錄中
./nagios -v ../etc/nagios.cfg

Error: Could not find any contact matching ‘cookie‘ (config file ‘/usr/local/nagios/etc/objects/contacts.cfg‘, starting on line 97)

Error: Could not expand member contacts specified in contactgroup (config file ‘/usr/local/nagios/etc/objects/contacts.cfg‘, starting on line 97)

   Error processing object config files!

顯示連絡人設定檔出錯

開啟contacts.cfg

檢查第97行:

97define contactgroup{

98         contactgroup_name       admins

99         alias                   Nagios Administrators

100        members                 xx,yy,cookie,zz

101         }

發現連絡人群組中有個成員名叫cookie,而在上面定義的連絡人中並沒有cookie這個成員,所以在組中將cookie成員刪除

再次運行檢查命令

./nagios -v ../etc/nagios.cfg

Total Warnings: 0

Total Errors:   0


Things look okay - No serious problems were detected during the pre-flight check

已無報錯資訊

service nagios start    正常啟動

開啟nagios網站,監控已正常

nagios連絡人郵箱錯誤導致nagios無法啟動

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.