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?
Config error after upgrade XI to 5.2.9
-
[email protected]
- Posts: 13
- Joined: Fri Sep 04, 2015 4:40 pm
-
[email protected]
- Posts: 13
- Joined: Fri Sep 04, 2015 4:40 pm
Re: Config error after upgrade XI to 5.2.9
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)
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
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
- 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
Can you run the following in an ssh session on your Nagios XI host.
Then go into XI and Apply Configuration.
What output is produced in the SSH session?
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.logWhat 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
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
........................................
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
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
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
Re: Config error after upgrade XI to 5.2.9
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.
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
Thanks, that resolved the issue. Please close this.