自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

CentOS下Nagios的安裝與配置-錯(cuò)誤處理

運(yùn)維 系統(tǒng)運(yùn)維
CentOS下Nagios的安裝與配置:Nagios的功能是監(jiān)控服務(wù)和主機(jī),根據(jù)配置在服務(wù)器異常的時(shí)候提供報(bào)警功能,并提供友好的WEB界面查看當(dāng)前的網(wǎng)絡(luò)狀態(tài)、通知和故障歷史、日志文件…但是他自身并不包括這部分功能的代碼,所有的監(jiān)控、檢測功能都是有插件來完成的。本文講述的是Nagios錯(cuò)誤處理部分

CentOSNagios安裝與配置:準(zhǔn)備工作、安裝登錄、錯(cuò)誤處理

  五、錯(cuò)誤處理

  1、本機(jī)監(jiān)控HTTP SSH的Notifications顯示警告錯(cuò)誤,解決方法:

  1.   #vim /usr/local/nagios/etc/objects/localhost.cfg  
  2.  
  3.   define service{  
  4.  
  5.   use local-service ; Name of service template to use  
  6.  
  7.   host_name localhost  
  8.  
  9.   service_description SSH  
  10.  
  11.   check_command check_ssh  
  12.  
  13.   notifications_enabled 1 #改為1,即可  
  14.  
  15.   }  
  16.  
  17.   # Define a service to check HTTP on the local machine.  
  18.  
  19.   # Disable notifications for this service by default, as not all users may have HTTP enabled.  
  20.  
  21.   define service{  
  22.  
  23.   use local-service ; Name of service template to use  
  24.  
  25.   host_name localhost  
  26.  
  27.   service_description HTTP  
  28.  
  29.   check_command check_http  
  30.  
  31.   notifications_enabled 1 #改為1,即可  
  32.  
  33.   }  
  34.  

  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的安裝與配置就講到這里啦。

【編輯推薦】

使用nagios監(jiān)控oracle

啟動(dòng)Nagios服務(wù)

配置Nagios監(jiān)控服務(wù)器(圖)

責(zé)任編輯:zhaolei 來源: CSDN
相關(guān)推薦

2011-03-22 10:10:18

CentOSNagios安裝

2011-03-22 10:10:16

CentOSNagios安裝

2011-03-25 16:23:43

CentOSNagios

2014-08-06 15:25:36

LinuxNagios

2011-03-24 13:00:22

CentOSNagios安裝

2011-03-22 13:37:29

Nagios安裝

2021-04-14 07:08:14

Nodejs錯(cuò)誤處理

2024-03-27 08:18:02

Spring映射HTML

2025-03-31 00:29:44

2021-09-27 23:28:29

Go多協(xié)程并發(fā)

2013-04-11 13:32:06

CentOS 6.3Nagios

2014-11-17 10:05:12

Go語言

2021-04-29 09:02:44

語言Go 處理

2011-03-22 14:20:30

Nagios安裝

2017-05-10 21:28:00

Java異常與錯(cuò)誤處理

2011-03-22 13:28:00

Nagios安裝

2023-12-26 22:05:53

并發(fā)代碼goroutines

2011-03-22 15:17:19

Nagios監(jiān)控

2011-03-21 13:01:56

LinuxNagios安裝

2022-11-16 08:41:43

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)