CentOS下Nagios的安装与配置-错误处理

运维 系统运维
CentOS下Nagios的安装与配置:Nagios的功能是监控服务和主机,根据配置在服务器异常的时候提供报警功能,并提供友好的WEB界面查看当前的网络状态、通知和故障历史、日志文件…但是他自身并不包括这部分功能的代码,所有的监控、检测功能都是有插件来完成的。本文讲述的是Nagios错误处理部分

CentOSNagios安装与配置:准备工作安装登录错误处理

  五、错误处理

  1、本机监控HTTP SSH的Notifications显示警告错误,解决方法:

  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显示类似错误:HTTP WARNING: HTTP/1.1 403 Forbidden - 5240 bytes in 0.002 second response time。

  该错误表明在apache web根目录没有index.html文件。解决方法:在web根目录(如:/var/www/html/目录)建立index.html文件,重启apache和nagios即可。

  上一节:安装登录    CentOS下Nagios的安装与配置就讲到这里啦。

【编辑推荐】

使用nagios监控oracle

启动Nagios服务

配置Nagios监控服务器(图)

责任编辑:zhaolei 来源: CSDN
相关推荐

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错误处理

2024-03-27 08:18:02

Spring映射HTML

2021-09-27 23:28:29

Go多协程并发

2013-04-11 13:32:06

CentOS 6.3Nagios

2021-04-29 09:02:44

语言Go 处理

2014-11-17 10:05:12

Go语言

2011-03-22 14:20:30

Nagios安装

2017-05-10 21:28:00

Java异常与错误处理

2023-12-26 22:05:53

并发代码goroutines

2011-03-22 15:17:19

Nagios监控

2011-03-22 13:28:00

Nagios安装

2011-03-21 13:01:56

LinuxNagios安装

2009-08-05 16:04:50

2023-10-28 16:30:19

Golang开发
点赞
收藏

51CTO技术栈公众号