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!