Config error after upgrade XI to 5.2.9

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
[email protected]
Posts: 13
Joined: Fri Sep 04, 2015 4:40 pm

Config error after upgrade XI to 5.2.9

Post by [email protected] »

Cannot apply config after upgrade to 5.2.9
Error: Could not find any host matching '<servername>'(config file '/usr/local/nagios/etc/services/<servername>.cfg', starting on line 159)
Error: Failed to expand host list '<servername>' for service 'Uptime' (/usr/local/nagios/etc/services/<servername>..cfg:159)

What is the best way to resolve this?
[email protected]
Posts: 13
Joined: Fri Sep 04, 2015 4:40 pm

Re: Config error after upgrade XI to 5.2.9

Post by [email protected] »

The Nagios XI is running in a VMware 5.5.0 environment imported from an ova.
CentOS release 6.5 (Final)
Kernel 2.6.32-358.2.1.e16.x86_64 on an x86_64, (64 bit)
[email protected]
Posts: 13
Joined: Fri Sep 04, 2015 4:40 pm

Re: Config error after upgrade XI to 5.2.9

Post by [email protected] »

The server is online and is PINGable. But services are not working and they cannot be deleted. This server is running a NS client that was working before the upgrade
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Config error after upgrade XI to 5.2.9

Post by Box293 »

Can you run the following in an ssh session on your Nagios XI host.

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Then go into XI and Apply Configuration.

What output is produced in the SSH session?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
[email protected]
Posts: 13
Joined: Fri Sep 04, 2015 4:40 pm

Re: Config error after upgrade XI to 5.2.9

Post by [email protected] »

PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
............................................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated

PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
............................................................
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
............................................................tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
..
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
.
PROCESSED 0 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
APPLYING NAGIOSCORE CONFIG...
CMDLINE=cd /usr/local/nagiosxi/scripts && ./reconfigure_nagios.sh
URL: http://localhost/nagiosxi/includes/components/ccm/
CMDLINE
--2016-08-09 08:50:22-- http://localhost/nagiosxi/includes/components/ccm/
Connecting to 172.16.2.203:80... connected.
Proxy request sent, awaiting response... 504 Gateway Timeout
2016-08-09 08:50:22 ERROR 504: Gateway Timeout.

/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&username=nagiosxi&password=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
OUTPUT=/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&username=nagiosxi&password=n@gweb' -O nagiosql.loginNAGIOSQL LOGIN FAILED!
RETURNCODE=2
......................................
PROCESSED 1 COMMANDS
tail: /usr/local/nagiosxi/var/cmdsubsys.log: file truncated
........................................
[email protected]
Posts: 13
Joined: Fri Sep 04, 2015 4:40 pm

Re: Config error after upgrade XI to 5.2.9

Post by [email protected] »

I made sure that the host is PINGable and Tested the client install.
The NSClinet++ (x64) Stable version is installed and working properly on the host
Line 159 in the host config file matches the entries for other similar hosts
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Config error after upgrade XI to 5.2.9

Post by tgriep »

It looks like your system is setup to use a proxy server and that is causing the issue.
Here is a link for you to look at for the changes to the XI server to function behind a proxy.
https://support.nagios.com/kb/article.php?id=147
Adding the no_proxy setting to the /etc/wgetrc file should work for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
[email protected]
Posts: 13
Joined: Fri Sep 04, 2015 4:40 pm

Re: Config error after upgrade XI to 5.2.9

Post by [email protected] »

Thanks, that resolved the issue. Please close this.
Locked