问题描述
我们已经使用 nagios XI 几年了,没有问题,但最近应用配置按钮显示 max_check_attempts 的值无效
配置中的值很好,通过阅读这个,人们说它可能是没有填充必填字段的父模板之一。
Error: Invalid max_check_attempts value for host 'neptune.adz.media'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/neptune.adz.media.cfg',starting on line 16)
我尝试删除配置文件并重写它们,手动编辑它们(只是为了尝试查看它是否是这个文件),并且我已经浏览了所有我能看到的模板并确保填充了该值。
>我觉得这个错误实际上是一个红鲱鱼,错误可能在以前的配置文件中,但我现在很挣扎。
目前在 CentOS 和 Apache 上使用 Nagios XI 5,因此需要升级。
###############################################################################
#
# Hosts configuration file
#
# Created by: Nagios CCM 2.7.3
# Date: 2021-02-24 19:13:11
# Version: Nagios Core 4.x
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually,place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define host {
host_name neptune.adz.media
use xiwizard_linuxserver_host
address 139.59.203.148
hostgroups linux-servers
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts nagiosadmin
contact_groups admins
notification_interval 60
notification_period xi_timeperiod_24x7
first_notification_delay 0
notifications_enabled 1
register 1
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)