Applying Configuration issue when changing httpd under apach

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Applying Configuration issue when changing httpd under a

Post by scottwilkerson »

Did you enable 8085 in the firewall?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
bheden
Product Development Manager
Posts: 179
Joined: Thu Feb 13, 2014 9:50 am
Location: Nagios Enterprises

Re: Applying Configuration issue when changing httpd under a

Post by bheden »

Can we see the output of the following commands, please?

Code: Select all

cat /etc/httpd/conf/httpd.conf

Code: Select all

cat /etc/httpd/conf.d/nagiosxi.conf

Code: Select all

netstat -an | grep tcp
Thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Nagios Enterprises
Senior Developer
xlin125
Posts: 172
Joined: Mon Jan 19, 2015 6:01 pm

Re: Applying Configuration issue when changing httpd under a

Post by xlin125 »

I repeated the same steps to change the apache configuration and directory/file ownership in order to have httpd run by apache on the 2nd Nagios XI server box. After the changes done, I restarted the httpd, I was able to run ./reconfigure_nagios.sh successfully on command line, and also was able to Apply Configuration successfully. I guess something was wrong with the 1st Nagios XI server box, and the 2nd Nagios XI server box is good. What I really missed before was changing the line "$cfg['port_number'] = false;" to "$cfg['port_number'] = 8085;" in the config.inc.php file. Thanks lmiltchev for helping me out here. Also thanks bheden and scottwilkerson (yes, scottwilkerson, I added 8085/tcp to the iptables to take care of the firewall on the Nagios XI server box).
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Applying Configuration issue when changing httpd under a

Post by lmiltchev »

I am glad we were able to figure this out! :) I will be locking this topic now. If you have any more questions/issues, please start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked