Check nagios配置文件报错如下:
[nagios@2 etc]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-29-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Template 'timman' specified in contact definition could not be not found (config file '/usr/local/nagios/etc/objects/contacts.cfg', starting on line 65)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
2 查看报错内容
[nagios@2 etc]$ more /usr/local/nagios/etc/objects/contacts.cfg
......
define contact{
contact_name timman
use timman 这里报错,说无效的。
alias tim man
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-host-by-email
host_notification_commands notify-host-by-email
email mchdba@sohu.com
pager 14782121512
}
define contactgroup{
contactgroup_name ops
alias pl ops team
members timman,nagiosadmin
}
3 将timman换成generic-contact
vi /usr/local/nagios/etc/objects/contacts.cfg
use timman
替换成
use generic-contact
4 重新检测,Check下
[nagios@2 etc]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.6
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 04-29-2014
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 2 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
[nagios@cache-2 etc]$
分享到:
相关推荐
Nagios:System and Network Monitoring
Nagios 4.x Nagios是用C语言编写的主机/服务/网络监视程序,根据GNU通用公共许可证版本2发行。包含CGI程序,以便您根据需要通过Web界面查看当前状态,历史记录等。 请访问Nagios主页,为以获取文档,新版本,错误...
Nagios::插件 适合折叠餐巾纸的 Nagios 插件框架。 介绍 Nagios::Plugin帮助您使用 Ruby 编写插件:它确保您的插件返回退出代码和状态输出。 此外,它并带有自动化测试。 安装 通过 bundler:将其添加到您的 ...
nagios服务器 在类似Debian的系统中(服务器端)设置nagios。 要求 没有任何 变数 nagios_server_private_keys :[默认: [] ]:私钥声明 nagios_server_private_keys.{n}.owner :[可选,默认nagios ]:应该拥有...
码头工人纳吉斯Nagios的Docker映像生成状态: 在带有NagiosGraph和NRPE的Ubuntu 16.04 LTS上运行的Nagios Core 4.4.5构型Nagios配置位于/ opt / nagios / etc中NagiosGraph配置位于/ opt / nagiosgraph / etc中安装...
Nagios人偶模块 可以将hiera变量nagios :: service :: use设置为允许覆盖服务的通知设置。 可以将hiera变量nagios :: host :: use设置为允许覆盖主机的通知设置。
安西布尔·纳吉奥斯(Ansible Nagios) 从源代码安装Nagios的角色。 特征 安装和配置Nagios 4(当前无法通过PPA获得)。 安装 支持通过发送通知 安装NRPE,以执行远程检查。 安装最新版本的nagios-plugins。 安装...
nagios-rb 用于编写插件的紧凑框架。快速开始子类Nagios::Plugin ,并定义三个方法: measure - 返回测量值,并可选择设置@stats以供以后使用。 临界- 对于任何给定的n ,返回是否处于临界状态... Nagios::Plugin def c
Nagios::检查待办事项:写一个宝石描述安装将此行添加到应用程序的 Gemfile 中: gem 'nagios-check'然后执行: $ bundle或者自己安装: $ gem install nagios-check用法TODO:在这里写使用说明贡献分叉吧创建您的...
Nagios网络监控软件是功能强大的企业级主机,服务器,应用程序和网络监控工具。 设计快速,灵活且坚如磐石。 Nagios在* NIX主机上运行,可以监视Windows,Linux / Unix / BSD,Netware和网络设备。
Nagios安装包,httpd,php,DBI,DBD-mysql。。。。。。 Nagios插件: check_mysql check_mysql-replication check_mysql_health check_mysql_connections check_ipconnects ......
hubot-nagios hubot-nagios 为 hubot 添加监控支持描述该插件使 hubot 能够对 nagios 通知做出React以及请求当前服务状态或确认问题。 它还需要自定义通知命令和 nagios 端的联系人。 在通知中 nagios 运行一个简单...
Nagios的-插件 说明: 这使您可以轻松地在 Ruby 中编写 Nagios 插件。实施例 #!/usr/bin/env rubyrequire 'rubygems'require 'nagios-plugin'require 'time'class MyNagiosCheck < Nagios :: Plugin # What ...
CentOS版本:CentOS Linux release 7.x (Core) 64位 Apache版本:Apache/2.4.6 Nagios版本:nagios-4.3.1 Nagios-plugin版本:nagios-plugins-2.2.1
快速开始docker pull lylescott/nagios4docker run -i -t -p 9443:443 lylescott/nagios4 然后,访问 (并接受自签名证书)使用 Dockerfile 进行自定义FROM lylescott/nagios4MAINTAINER Lyle Scott, III < lyle>ENV...
Wirehive Nagios插件该存储库是一组Nagios插件,这些插件是从头开始构建的,或者是由Wirehive改进的。 在Wirehive,我们在监控平台的核心中大量使用了Nagios Core产品。 这绝不代表我们使用的所有插件,但是随着整洁...
nagios 中文帮助文档 nagios插件包:nagios-3.3.2.tar.gz
nagios监控,经常会遇到CHECK_NRPE: Error -Could not complete SSL handshake错误。这可能是因为没有安装openssl的原因。该rpm安装包即可安装openssl,后面还有openssl-devel
NetBox 中的 Nagios 状态 在设备和 VM 页面上的 NetBox 中显示 Nagios 主机和服务状态的插件。 安装 该插件添加到您PLUGINS名单configuration.py和至少配置livestatus_host和nagios_base_url期权PLUGINS_CONFIG : ...
Nagios-Cli 关于 nagios-cli是Nagios命令行界面,它公开了一些可通过基于Web的图形用户界面使用的功能。 要求 必需的: Nagios 2.x或3.x Python 2.4+ 可选的: libreadline 用法 默认配置将在/var/log/nagios/...