当前位置:首页 >探索 >CentOS下Nagios的安装与配置 重启apache和nagios即可

CentOS下Nagios的安装与配置 重启apache和nagios即可

2024-06-29 07:26:39 [百科] 来源:避面尹邢网

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

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

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

  五、配置错误处理

CentOS下Nagios的安装与配置 重启apache和nagios即可

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

CentOS下Nagios的安装与配置 重启apache和nagios即可

  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。

CentOS下Nagios的安装与配置 重启apache和nagios即可

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

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

【编辑推荐】

使用nagios监控oracle

启动Nagios服务

配置Nagios监控服务器(图)

责任编辑:zhaolei 来源: CSDN CentOSNagios安装

(责任编辑:休闲)

    推荐文章
    热点阅读