Can't Apply Configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ronnyFEAR
Posts: 2
Joined: Fri May 25, 2018 3:20 am

Can't Apply Configuration

Post by ronnyFEAR »

Hi,

I am unable to Apply any configuration. I always get stuck in "Waiting for configuration verification..." -screen. I have already done everything stated in this KB: https://support.nagios.com/kb/article.php?id=34 . The problem still persists. I am using Nagios XI 5.4.13 installed on CentOS 7 1804 64 Bit. I've installed it manually since there is no Internet connection on the server. Can anyone help me?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Can't Apply Configuration

Post by mcapra »

Can you share the output of the following commands executed from the CLI of your Nagios XI machine:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
su nagios
/usr/local/nagiosxi/scripts/reconfigure_nagios.sh
exit
Former Nagios employee
https://www.mcapra.com/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Can't Apply Configuration

Post by scottwilkerson »

thanks @mcapra
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ronnyFEAR
Posts: 2
Joined: Fri May 25, 2018 3:20 am

Re: Can't Apply Configuration

Post by ronnyFEAR »

Yes I can,

[root@nagios tmp]# /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=HKlXQiLGDEke' -O nagiosql.login--2018-05-26 19:58:46-- http://localhost/nagiosxi/includes/components/ccm/
Auflösen des Hostnamen »localhost (localhost)«... ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: nicht spezifiziert [text/html]
In »»nagiosql.login«« speichern.

[ <=> ] 29.726 --.-K/s in 0,02s

2018-05-26 19:58:47 (1,22 MB/s) - »nagiosql.login« gespeichert [29726]

LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosxi/includes/components/ccm/
Array
(
[0] => 192.168.2.107.cfg
[1] => BFjO9jif.tmp.cfg
)
IMPORTING /usr/local/nagios/etc/import/192.168.2.107.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/192.168.2.107.cfg' -O nagiosql.import.monitoring
--2018-05-26 19:58:47-- http://localhost/nagiosxi/includes/components/ccm/
Auflösen des Hostnamen »localhost (localhost)«... ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: nicht spezifiziert [text/html]
In »»nagiosql.import.monitoring«« speichern.

[ <=> ] 26.373 --.-K/s in 0,02s

2018-05-26 19:58:47 (1,16 MB/s) - »nagiosql.import.monitoring« gespeichert [26373]

IMPORTING /usr/local/nagios/etc/import/BFjO9jif.tmp.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=admin&type=import&importsubmitted=true&chbOverwrite=1&subForm=Import&selImportFile[]=/usr/local/nagios/etc/import/BFjO9jif.tmp.cfg' -O nagiosql.import.monitoring
--2018-05-26 19:58:48-- http://localhost/nagiosxi/includes/components/ccm/
Auflösen des Hostnamen »localhost (localhost)«... ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: nicht spezifiziert [text/html]
In »»nagiosql.import.monitoring«« speichern.

[ <=> ] 26.224 --.-K/s in 0,02s

2018-05-26 19:58:48 (1,07 MB/s) - »nagiosql.import.monitoring« gespeichert [26224]

RESETTING PERMS
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=HKlXQiLGDEke' -O nagiosql.login--2018-05-26 19:58:48-- http://localhost/nagiosxi/includes/components/ccm/
Auflösen des Hostnamen »localhost (localhost)«... ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: nicht spezifiziert [text/html]
In »»nagiosql.login«« speichern.

[ <=> ] 29.809 --.-K/s in 0,02s

2018-05-26 19:58:49 (1,35 MB/s) - »nagiosql.login« gespeichert [29809]

LOGIN SUCCESSFUL!
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'backend=1&cmd=apply&type=writeConfig' -O nagiosql.export.monitoring
--2018-05-26 19:58:49-- http://localhost/nagiosxi/includes/components/ccm/
Auflösen des Hostnamen »localhost (localhost)«... ::1, 127.0.0.1
Verbindungsaufbau zu localhost (localhost)|::1|:80... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: nicht spezifiziert [text/html]
In »»nagiosql.export.monitoring«« speichern.

[ <=> ] 21.966 --.-K/s in 0,01s

2018-05-26 19:58:50 (1,98 MB/s) - »nagiosql.export.monitoring« gespeichert [21966]

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.2.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 12-07-2016
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 44 services.
Checked 5 hosts.
Checked 1 host groups.
Checked 0 service groups.
Error: Contact 'Amelie Franz' has no service notification commands defined!
Error: Contact 'Amelie Franz' has no host notification commands defined!
Warning: Contact 'Amelie Franz' has no service notification time period defined!
Warning: Contact 'Amelie Franz' has no host notification time period defined!
Error: Contact 'Ashley Clancy' has no service notification commands defined!
Error: Contact 'Ashley Clancy' has no host notification commands defined!
Warning: Contact 'Ashley Clancy' has no service notification time period defined!
Warning: Contact 'Ashley Clancy' has no host notification time period defined!
Error: Contact 'Christian Plesser' has no service notification commands defined!
Error: Contact 'Christian Plesser' has no host notification commands defined!
Warning: Contact 'Christian Plesser' has no service notification time period defined!
Warning: Contact 'Christian Plesser' has no host notification time period defined!
Error: Contact 'Eugen Gärtner' has no service notification commands defined!
Error: Contact 'Eugen Gärtner' has no host notification commands defined!
Warning: Contact 'Eugen Gärtner' has no service notification time period defined!
Warning: Contact 'Eugen Gärtner' has no host notification time period defined!
Error: Contact 'Holger Einheuser' has no service notification commands defined!
Error: Contact 'Holger Einheuser' has no host notification commands defined!
Warning: Contact 'Holger Einheuser' has no service notification time period defined!
Warning: Contact 'Holger Einheuser' has no host notification time period defined!
Error: Contact 'Ronan Moeller' has no service notification commands defined!
Error: Contact 'Ronan Moeller' has no host notification commands defined!
Warning: Contact 'Ronan Moeller' has no service notification time period defined!
Warning: Contact 'Ronan Moeller' has no host notification time period defined!
Checked 8 contacts.
Checked 2 contact groups.
Checked 124 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 5 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 12
Total Errors: 12

***> One or more problems was encountered while running the pre-flight check...

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.
RET: 1
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /tmp
tar: Entferne führende „/“ von Elementnamen
/tmp
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1527147203.tar.gz
/ /tmp
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1527147203.tar.gz
/tmp
RESETTING PERMS

[root@nagios tmp]# su nagios

bash-4.2$ /usr/local/nagiosxi/scripts/reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://loca lhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'subm it=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=H KlXQiLGDEke' -O nagiosql.loginnagiosql.login: Keine Berechtigung
LOGIN SUCCESSFUL!
NAGIOSQL LOGIN FAILED!
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Can't Apply Configuration

Post by cdienger »

Try updating the credentials under Admin > System Config > Reset Security Credentials, by clicking "Update Credentials" under Sub-System Credentials and run the reconfigure_nagios script as the nagios user. If it still fails, try entering in new XI subsystem ticket, Config Manager Backend Password, and Nagios Core Backend Password, values and then "Update Credentials" and test again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked