CentOS下Nagios的安裝與配置-錯(cuò)誤處理
CentOS下Nagios的安裝與配置:準(zhǔn)備工作、安裝登錄、錯(cuò)誤處理
五、錯(cuò)誤處理
1、本機(jī)監(jiān)控HTTP SSH的Notifications顯示警告錯(cuò)誤,解決方法:
- #vim /usr/local/nagios/etc/objects/localhost.cfg
- define service{
- use local-service ; Name of service template to use
- host_name localhost
- service_description SSH
- check_command check_ssh
- notifications_enabled 1 #改為1,即可
- }
- # Define a service to check HTTP on the local machine.
- # Disable notifications for this service by default, as not all users may have HTTP enabled.
- define service{
- use local-service ; Name of service template to use
- host_name localhost
- service_description HTTP
- check_command check_http
- notifications_enabled 1 #改為1,即可
- }
2、Nagios顯示類似錯(cuò)誤:HTTP WARNING: HTTP/1.1 403 Forbidden - 5240 bytes in 0.002 second response time。
該錯(cuò)誤表明在apache web根目錄沒有index.html文件。解決方法:在web根目錄(如:/var/www/html/目錄)建立index.html文件,重啟apache和nagios即可。
上一節(jié):安裝登錄 CentOS下Nagios的安裝與配置就講到這里啦。
【編輯推薦】