We have problems to apply config in NagiosXI 5.5.7.
Code: Select all
! Nagios restart command failed.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
Error: Host escalation host name is NULL
Error: Could not register host escalation (config file '/usr/local/nagios/etc/hostescalations.cfg', starting on line 26)Code: Select all
define hostescalation {
# config_name lvl1
hostgroup_name Hosts_SMS
contacts contact3
contact_groups contact1
first_notification 1
last_notification 3
notification_interval 15
escalation_period 24x7
}
define hostescalation {
# config_name lvl2
hostgroup_name Hosts_SMS
contact_groups contact2,contact1
first_notification 4
last_notification 0
notification_interval 15
escalation_period 24x7
}
define hostescalation {
# config_name Host_Dummy
host_name host_dummy
contacts contact3
contact_groups contact1
first_notification 1
last_notification 3
notification_interval 15
escalation_period 24x7
}Also, an interesting thing is that the same config works in another nagiosxi.
Going to Admin --> System information --> System Status, I noticed that monitoring engine is failed and don't become start.
Check config manually
Code: Select all
Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
License: GPL
Website: https://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 903 services.
Checked 113 hosts.
Checked 17 host groups.
Checked 0 service groups.
Checked 14 contacts.
Checked 5 contact groups.
Checked 194 commands.
Checked 16 time periods.
Checked 37 host escalations.
Checked 74 service escalations.
Checking for circular paths...
Checked 113 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 16 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 checkCode: Select all
Jan 4 10:12:34 nagios4 systemd: nagios.service: main process exited, code=killed, status=6/ABRT
Jan 4 10:12:34 nagios4 kill: kill: cannot find process ""
Jan 4 10:12:34 nagios4 systemd: nagios.service: control process exited, code=exited status=1
Jan 4 10:12:36 nagios4 xinetd[14614]: START: nsca pid=7184 from=::ffff:127.0.0.1
Jan 4 10:12:36 nagios4 systemd: Unit nagios.service entered failed state.
Jan 4 10:12:36 nagios4 systemd: nagios.service failed.
Jan 4 10:12:37 nagios4 xinetd[14614]: EXIT: nsca status=0 pid=7184 duration=1(sec)Code: Select all
Job for nagios.service failed because the control process exited with error code. See "systemctl status nagios.service" and "journalctl -xe" for details.
Code: Select all
● nagios.service - Nagios Core 4.4.2
Loaded: loaded (/usr/lib/systemd/system/nagios.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-01-04 10:17:11 CET; 22s ago
Docs: https://www.nagios.org/documentation
Process: 8161 ExecStopPost=/usr/bin/rm -f /usr/local/nagios/var/rw/nagios.cmd (code=exited, status=0/SUCCESS)
Process: 8152 ExecStop=/usr/bin/kill -s TERM ${MAINPID} (code=exited, status=1/FAILURE)
Process: 9585 ExecStart=/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg (code=exited, status=254)
Process: 9583 ExecStartPre=/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg (code=exited, status=0/SUCCESS)
Main PID: 8109 (code=killed, signal=ABRT)Code: Select all
Jan 04 10:17:11 nagios4 nagios[9583]: Checking global event handlers...
Jan 04 10:17:11 nagios4 nagios[9583]: Checking obsessive compulsive processor commands...
Jan 04 10:17:11 nagios4 nagios[9583]: Checking misc settings...
Jan 04 10:17:11 nagios4 nagios[9583]: Total Warnings: 0
Jan 04 10:17:11 nagios4 nagios[9583]: Total Errors: 0
Jan 04 10:17:11 nagios4 nagios[9583]: Things look okay - No serious problems were detected during the pre-fl...check
Jan 04 10:17:11 nagios4 systemd[1]: nagios.service: control process exited, code=exited status=254
Jan 04 10:17:11 nagios4 systemd[1]: Failed to start Nagios Core 4.4.2.
Jan 04 10:17:11 nagios4 systemd[1]: Unit nagios.service entered failed state.
Jan 04 10:17:11 nagios4 systemd[1]: nagios.service failed.
Hint: Some lines were ellipsized, use -l to show in full.Any idea ?
Thanks in advance