Can not apply config through nagiosxi. Also no failed snapshots (or errors) in snapshots collection. Any ideas?
tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt
[code]
RETURNS
PROCESSED 0 COMMANDS
ATA=
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosql/index.php
CMDLINE
--2012-01-18 14:19:28-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://localhost/nagiosql/admin.php [following]
--2012-01-18 14:19:28-- https://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:443... connected.
WARNING: cannot verify localhost's certificate, issued by `/C=/ST=/L=/O=/OU=/CN=nagios/emailAddress=':
Self-signed certificate encountered.
WARNING: certificate common name `nagios' doesn't match requested host name `localhost'.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'
0K ..... 100% 67.0M=0s
2012-01-18 14:19:28 (67.0 MB/s) - `nagiosql.login' saved [5286/5286]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=8dpcmf' -O nagiosql.log
inLOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
)
RESETTING PERMS
SETUID ROOT OK
URL: http://localhost/nagiosql/index.php
CMDLINE
--2012-01-18 14:19:29-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://localhost/nagiosql/admin.php [following]
--2012-01-18 14:19:29-- https://localhost/nagiosql/admin.php
Connecting to localhost|127.0.0.1|:443... connected.
WARNING: cannot verify localhost's certificate, issued by `/C=/ST=/L=/O=/OU=/CN=nagios/emailAddress=':
Self-signed certificate encountered.
WARNING: certificate common name `nagios' doesn't match requested host name `localhost'.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: `nagiosql.login'
0K ..... 100% 55.5M=0s
2012-01-18 14:19:29 (55.5 MB/s) - `nagiosql.login' saved [5286/5286]
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=8dpcmf' -O nagiosql.log
inLOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2012-01-18 14:19:29-- http://localhost/nagiosql/admin/verify.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
........................................
Length: 4788 (4.7K) [text/html]
Saving to: `nagiosql.export.monitoring'
0K .... 100% 605M=0s
2012-01-18 14:20:44 (605 MB/s) - `nagiosql.export.monitoring' saved [4788/4788]
NAGIOSQL WRITE CONFIGS FAILED!\n
OUTPUT=NAGIOSQL WRITE CONFIGS FAILED!\n
RETURNCODE=5
PROCESSED 1 COMMANDS
[/code]
Configuration Verification Failed
Re: Configuration Verification Failed
What is the version of the Nagios XI that you are using? Distro?
Please, run the Write Config Tool (Core Config Manager->Tools->Write Config Files) and post the output.
Please, run the Write Config Tool (Core Config Manager->Tools->Write Config Files) and post the output.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Configuration Verification Failed
The problem is fixed after a host with its service definitions were deleted. Thank you for checking.