Nagios log server upgrade fails with website doesn't work
Posted: Wed Feb 21, 2018 3:34 pm
We are trying to upgrade nagios log server from 1.4.4 to 2.0.4, but after the upgrade all services like logstash. elasticsearch and httpd started. however, web page is not working. Also, not able to provide you profile since website not working. so kindly guide us to fix this.
[root@usa0300lv6332 nagioslogserver]# bash upgrade
ERROR: unable to read system id.
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Loaded plugins: product-id, search-disabled-repos
Nothing to do
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
===========================
Nagios Log Server 2 Upgrade
===========================
Upgrading to version 2 requires active maintenance on your license. Please double check before upgrading.
Once upgraded, the Log Server interface will not be usable until you have activated. You can activate do this directly in the interface after upgrade.
You will need the following information to activate:
- Log Server license key
- Account ID or Token
Do you want to continue? [Y/n] y
Proceeding with upgrade...
Upgrading Elasticsearch...
Stopping elasticsearch (via systemctl): [ OK ]
Starting elasticsearch (via systemctl): [ OK ]
Elasticsearch upgraded OK
Upgrading Logstash...
Applying Nagios patches to Logstash...
Logstash upgraded OK
Upgrading Kibana...
Kibana upgraded OK
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Re-applying logstash configuration...
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Restarting elasticsearch (via systemctl): [ OK ]
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Nagios Log Server Upgrade Complete!
You can access the Nagios Log Server web interface by visiting:
http://10.15.17.27/nagioslogserver/
[root@usa0300lv6332 nagioslogserver]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-02-21 08:13:35 EST; 5min ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 6945 (httpd)
Status: "Total requests: 30; Current requests/sec: 0.4; Current traffic: 1.2KB/sec"
CGroup: /system.slice/httpd.service
├─6945 /usr/sbin/httpd -DFOREGROUND
├─6946 /usr/sbin/httpd -DFOREGROUND
├─6947 /usr/sbin/httpd -DFOREGROUND
├─6948 /usr/sbin/httpd -DFOREGROUND
├─6950 /usr/sbin/httpd -DFOREGROUND
├─6951 /usr/sbin/httpd -DFOREGROUND
├─7288 /usr/sbin/httpd -DFOREGROUND
├─7289 /usr/sbin/httpd -DFOREGROUND
├─7290 /usr/sbin/httpd -DFOREGROUND
├─9049 /usr/sbin/httpd -DFOREGROUND
├─9059 /usr/sbin/httpd -DFOREGROUND
└─9060 /usr/sbin/httpd -DFOREGROUND
Feb 21 08:13:35 usa0300lv6332 systemd[1]: Starting The Apache HTTP Server...
Feb 21 08:13:35 usa0300lv6332 httpd[6945]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.15.17.27. Set the 'ServerName' directive globally to suppress this message
Feb 21 08:13:35 usa0300lv6332 systemd[1]: Started The Apache HTTP Server.
Feb 21 08:14:28 usa0300lv6332 sudo[7261]: apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/elasticsearch status
Feb 21 08:14:28 usa0300lv6332 sudo[7260]: apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/logstash status
[root@usa0300lv6332 logs]# wget https://usa0300lv6332.sdsp.mc.xerox.com ... logserver/
--2018-02-21 11:03:23-- https://usa0300lv6332.sdsp.mc.xerox.com ... logserver/
Resolving www2.mc.xerox.com (www2.mc.xerox.com)... 13.131.1.242
Connecting to www2.mc.xerox.com (www2.mc.xerox.com)|13.131.1.242|:8000... connected.
Proxy request sent, awaiting response... 500 Internal Server Error
2018-02-21 11:03:23 ERROR 500: Internal Server Error.
[root@usa0300lv6332 logs]# service elasticsearch status
● elasticsearch.service - LSB: This service manages the elasticsearch daemon
Loaded: loaded (/etc/rc.d/init.d/elasticsearch; bad; vendor preset: disabled)
Active: active (running) since Wed 2018-02-21 08:16:15 EST; 2h 51min ago
Docs: man:systemd-sysv-generator(8)
Process: 7536 ExecStop=/etc/rc.d/init.d/elasticsearch stop (code=exited, status=0/SUCCESS)
Process: 7570 ExecStart=/etc/rc.d/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/elasticsearch.service
└─7597 java -Xms6926m -Xmx6926m -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicit...
Feb 21 08:16:15 usa0300lv6332 systemd[1]: Starting LSB: This service manages the elasticsearch daemon...
Feb 21 08:16:15 usa0300lv6332 elasticsearch[7570]: PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Feb 21 08:16:15 usa0300lv6332 runuser[7588]: pam_unix(runuser:session): session opened for user nagios by (uid=0)
Feb 21 08:16:15 usa0300lv6332 runuser[7588]: pam_unix(runuser:session): session closed for user nagios
Feb 21 08:16:15 usa0300lv6332 elasticsearch[7570]: Starting elasticsearch: [ OK ]
Feb 21 08:16:15 usa0300lv6332 systemd[1]: Started LSB: This service manages the elasticsearch daemon.
[root@usa0300lv6332 logs]#
[root@usa0300lv6332 logs]#
[root@usa0300lv6332 nagioslogserver]# bash upgrade
ERROR: unable to read system id.
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Loaded plugins: product-id, search-disabled-repos
Nothing to do
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
===========================
Nagios Log Server 2 Upgrade
===========================
Upgrading to version 2 requires active maintenance on your license. Please double check before upgrading.
Once upgraded, the Log Server interface will not be usable until you have activated. You can activate do this directly in the interface after upgrade.
You will need the following information to activate:
- Log Server license key
- Account ID or Token
Do you want to continue? [Y/n] y
Proceeding with upgrade...
Upgrading Elasticsearch...
Stopping elasticsearch (via systemctl): [ OK ]
Starting elasticsearch (via systemctl): [ OK ]
Elasticsearch upgraded OK
Upgrading Logstash...
Applying Nagios patches to Logstash...
Logstash upgraded OK
Upgrading Kibana...
Kibana upgraded OK
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Re-applying logstash configuration...
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Restarting elasticsearch (via systemctl): [ OK ]
PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Nagios Log Server Upgrade Complete!
You can access the Nagios Log Server web interface by visiting:
http://10.15.17.27/nagioslogserver/
[root@usa0300lv6332 nagioslogserver]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-02-21 08:13:35 EST; 5min ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 6945 (httpd)
Status: "Total requests: 30; Current requests/sec: 0.4; Current traffic: 1.2KB/sec"
CGroup: /system.slice/httpd.service
├─6945 /usr/sbin/httpd -DFOREGROUND
├─6946 /usr/sbin/httpd -DFOREGROUND
├─6947 /usr/sbin/httpd -DFOREGROUND
├─6948 /usr/sbin/httpd -DFOREGROUND
├─6950 /usr/sbin/httpd -DFOREGROUND
├─6951 /usr/sbin/httpd -DFOREGROUND
├─7288 /usr/sbin/httpd -DFOREGROUND
├─7289 /usr/sbin/httpd -DFOREGROUND
├─7290 /usr/sbin/httpd -DFOREGROUND
├─9049 /usr/sbin/httpd -DFOREGROUND
├─9059 /usr/sbin/httpd -DFOREGROUND
└─9060 /usr/sbin/httpd -DFOREGROUND
Feb 21 08:13:35 usa0300lv6332 systemd[1]: Starting The Apache HTTP Server...
Feb 21 08:13:35 usa0300lv6332 httpd[6945]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 10.15.17.27. Set the 'ServerName' directive globally to suppress this message
Feb 21 08:13:35 usa0300lv6332 systemd[1]: Started The Apache HTTP Server.
Feb 21 08:14:28 usa0300lv6332 sudo[7261]: apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/elasticsearch status
Feb 21 08:14:28 usa0300lv6332 sudo[7260]: apache : TTY=unknown ; PWD=/var/www/html/nagioslogserver/www ; USER=root ; COMMAND=/etc/init.d/logstash status
[root@usa0300lv6332 logs]# wget https://usa0300lv6332.sdsp.mc.xerox.com ... logserver/
--2018-02-21 11:03:23-- https://usa0300lv6332.sdsp.mc.xerox.com ... logserver/
Resolving www2.mc.xerox.com (www2.mc.xerox.com)... 13.131.1.242
Connecting to www2.mc.xerox.com (www2.mc.xerox.com)|13.131.1.242|:8000... connected.
Proxy request sent, awaiting response... 500 Internal Server Error
2018-02-21 11:03:23 ERROR 500: Internal Server Error.
[root@usa0300lv6332 logs]# service elasticsearch status
● elasticsearch.service - LSB: This service manages the elasticsearch daemon
Loaded: loaded (/etc/rc.d/init.d/elasticsearch; bad; vendor preset: disabled)
Active: active (running) since Wed 2018-02-21 08:16:15 EST; 2h 51min ago
Docs: man:systemd-sysv-generator(8)
Process: 7536 ExecStop=/etc/rc.d/init.d/elasticsearch stop (code=exited, status=0/SUCCESS)
Process: 7570 ExecStart=/etc/rc.d/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/elasticsearch.service
└─7597 java -Xms6926m -Xmx6926m -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicit...
Feb 21 08:16:15 usa0300lv6332 systemd[1]: Starting LSB: This service manages the elasticsearch daemon...
Feb 21 08:16:15 usa0300lv6332 elasticsearch[7570]: PHP Warning: Module 'SourceGuardian' already loaded in Unknown on line 0
Feb 21 08:16:15 usa0300lv6332 runuser[7588]: pam_unix(runuser:session): session opened for user nagios by (uid=0)
Feb 21 08:16:15 usa0300lv6332 runuser[7588]: pam_unix(runuser:session): session closed for user nagios
Feb 21 08:16:15 usa0300lv6332 elasticsearch[7570]: Starting elasticsearch: [ OK ]
Feb 21 08:16:15 usa0300lv6332 systemd[1]: Started LSB: This service manages the elasticsearch daemon.
[root@usa0300lv6332 logs]#
[root@usa0300lv6332 logs]#