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

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

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

  五、错误处理

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

  #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,即可  
 
  }  
 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 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多协程并发

2021-04-29 09:02:44

语言Go 处理

2013-04-11 13:32:06

CentOS 6.3Nagios

2014-11-17 10:05:12

Go语言

2011-03-22 14:20:30

Nagios安装

2017-05-10 21:28:00

Java异常与错误处理

2011-03-22 13:28:00

Nagios安装

2023-12-26 22:05:53

并发代码goroutines

2011-03-21 13:01:56

LinuxNagios安装

2011-03-22 15:17:19

Nagios监控

2010-06-01 16:14:04

2023-10-28 16:30:19

Golang开发
点赞
收藏

51CTO技术栈公众号