New install on RHEL7 has some issues
-
gsl_ops_practice
- Posts: 151
- Joined: Thu Apr 09, 2015 9:14 pm
New install on RHEL7 has some issues
Hello,
We are in the process of installing a NagiosLog 1.4.4 cluster on RHEL7 in an environment that does not have any internet access. I installed the required python packages manually, commented out python installation in fullinstall and then NagiosLog installed properly. Both nodes came up, configured and cluster status shows green.
Seeing some issues that I am not able to resolve, hoping you can provide input:
1. Applying global configuration page does not refresh when clicking Apply and then "Yes Apply Now" but the configuration does get applied
2. "Per Instance (Advanced)" menu does not expand to show anything
3. Logstash does not update its listening ports if the config is changed in Global Configuration, I have to manually edit 000_inputs.
4. Instance status shows elastic and logstash as red on both nodes but they are in fact running
5. System status get spinning circles for Elastic and Logstash and not able to choose anything from the pulldown menu
I tried to remove /etc/sysconfig entries for elastic and logstash, removed /usr/local/nagioslogserver and /var/www/html/* and reinstalled but got the same issue.
Thank you,
Alex
We are in the process of installing a NagiosLog 1.4.4 cluster on RHEL7 in an environment that does not have any internet access. I installed the required python packages manually, commented out python installation in fullinstall and then NagiosLog installed properly. Both nodes came up, configured and cluster status shows green.
Seeing some issues that I am not able to resolve, hoping you can provide input:
1. Applying global configuration page does not refresh when clicking Apply and then "Yes Apply Now" but the configuration does get applied
2. "Per Instance (Advanced)" menu does not expand to show anything
3. Logstash does not update its listening ports if the config is changed in Global Configuration, I have to manually edit 000_inputs.
4. Instance status shows elastic and logstash as red on both nodes but they are in fact running
5. System status get spinning circles for Elastic and Logstash and not able to choose anything from the pulldown menu
I tried to remove /etc/sysconfig entries for elastic and logstash, removed /usr/local/nagioslogserver and /var/www/html/* and reinstalled but got the same issue.
Thank you,
Alex
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: New install on RHEL7 has some issues
Much of this sounds like permissions, can you run the following and report the output
also without knowing exactly what was commented out, it is very difficult to know for sure all of the items and correct versions of each item were installed
Code: Select all
cat /etc/sudoers|grep NAGIOSLOGSERVER-
gsl_ops_practice
- Posts: 151
- Joined: Thu Apr 09, 2015 9:14 pm
Re: New install on RHEL7 has some issues
I ran the install on a CentOS7 box too see what happens with an internet-available install, looked at the actual installed package versions from the install.log and installed those manually:
argparse-1.4.0
click-6.7
elasticsearch-2.0.0
elasticsearch-curator-3.4.0
jsonselect-0.2.3
urllib3-1.22
Please find output of the command you requested:
I commented out the following in the fullinstall script:
argparse-1.4.0
click-6.7
elasticsearch-2.0.0
elasticsearch-curator-3.4.0
jsonselect-0.2.3
urllib3-1.22
Please find output of the command you requested:
Code: Select all
sudo cat /etc/sudoers|grep NAGIOSLOGSERVER
User_Alias NAGIOSLOGSERVER=nagios
User_Alias NAGIOSLOGSERVERWEB=apache
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/logstash start
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/logstash stop
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/logstash restart
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/logstash reload
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/logstash status
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/elasticsearch start
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/elasticsearch stop
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/elasticsearch restart
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/elasticsearch reload
NAGIOSLOGSERVER ALL = NOPASSWD:/etc/init.d/elasticsearch status
NAGIOSLOGSERVER ALL = NOPASSWD:/usr/local/nagioslogserver/scripts/change_timezone.sh
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/logstash start
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/logstash stop
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/logstash restart
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/logstash reload
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/logstash status
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/elasticsearch start
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/elasticsearch stop
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/elasticsearch restart
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/elasticsearch reload
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/etc/init.d/elasticsearch status
NAGIOSLOGSERVERWEB ALL = NOPASSWD:/usr/local/nagioslogserver/scripts/get_logstash_ports.shCode: Select all
# Set date/time because ssl certificates can be in the future... (fix for pypi and get-pip)
#if [ "$distro" == "Ubuntu" ] || [ "$distro" == "Debian" ]; then
# ntpq -p
#else
#ntpdate -u pool.ntp.org
#fi
# install pip
# python get-pip.py
# install ES Curator, argparse and jsonselect
# pip install argparse jsonselect elasticsearch-curator==3.4.0
#special case for el5 -> using PHP 5.1
# if [ "$dist" == "el5" ]; then
# yum install -y php-pecl-zip
# fi
# Make sure they were installed (on RHEL/CentOS since it's easy to check)
# if [ "$distro" != "Ubuntu" ] && [ "$distro" != "Debian" ]; then
# if ! is_installed $pkgs; then
# error "Prerequisites failed to install."
# fi
# fi
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: New install on RHEL7 has some issues
is selinux enabled on this box?
Any errors in /var/log/messages or /var/log/httpd/error_log when you try to do the tasks that are causing errors?getenforce
-
gsl_ops_practice
- Posts: 151
- Joined: Thu Apr 09, 2015 9:14 pm
Re: New install on RHEL7 has some issues
selinux is disabled
output from /var/log/messages:
output from /var/log/httpd/error_log
output from /var/log/messages:
Code: Select all
systemd: Created slice User Slice of root.
systemd: Starting User Slice of root.
systemd: Started Session 1923 of user root.
systemd: Starting Session 1923 of user root.
systemd: Created slice User Slice of nagios.
systemd: Starting User Slice of nagios.
systemd: Started Session 1924 of user nagios.
systemd: Starting Session 1924 of user nagios.
systemd: Started Session 1925 of user nagios.
systemd: Starting Session 1925 of user nagios.
systemd: Removed slice User Slice of nagios.
systemd: Stopping User Slice of nagios.
systemd: Removed slice User Slice of root.
systemd: Stopping User Slice of root.
systemd: Created slice User Slice of nagios.
systemd: Starting User Slice of nagios.
systemd: Started Session 1926 of user nagios.
systemd: Starting Session 1926 of user nagios.
systemd: Started Session 1927 of user nagios.
systemd: Starting Session 1927 of user nagios.
systemd: Removed slice User Slice of nagios.
systemd: Stopping User Slice of nagios.Code: Select all
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to www.nagios.com:443; Connection refused
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to www.nagios.com:443; Connection refused
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed connect to www.nagios.com:443; Connection refused
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: New install on RHEL7 has some issues
I almost certainly think we are going to need a remote session to assist with this, can you email [email protected] to open a ticket and mention this thread.
I do want to mention that we have never supported a fully offline install of Log Server, but that said we will attempt to get this up and running for you.
I do want to mention that we have never supported a fully offline install of Log Server, but that said we will attempt to get this up and running for you.
-
gsl_ops_practice
- Posts: 151
- Joined: Thu Apr 09, 2015 9:14 pm
Re: New install on RHEL7 has some issues
Your assistance is greatly appreciated, email sent.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: New install on RHEL7 has some issues
moved to Ticket. Locking