On my monitoring server is running Nagios XI 5.8.8.
I'm trying to add some hosts to any service, but I get this error:
Error: Service has no hosts and/or service_description
Looking at the original service config file through CCM, I cannot see the host_name entry.
For example:
Code: Select all
define service {
service_description Port 1 Bandwidth
use xiwizard_switch_port_bandwidth_service
check_command check_xi_service_mrtgtraf!192.168.2.1_1.rrd!500,500!800,800!M
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 0
_xiwizard switch
register 1
}Anyway, if I try to add/remove some hosts and then click on "Save", nothing changes, the config file is still whitout the host_name entry.
In addittion, I saw and followed this thread:
https://support.nagios.com/forum/viewto ... 7&start=10
But my sqlmode is configured well:
+-------------------+
| @@GLOBAL.sql_mode |
+-------------------+
| |
+-------------------+
and when I run /usr/local/nagiosxi/scripts/repair_databases.sh no error is displayed (everything looks ok).
Please help.
Thanks.