Log Server not updating
Log Server not updating
Hi,
I am trying to update log server its starts and run for some time but after a while it just became silent no progress showing and also update didnt happen.
refer below:after [WARNING: SSLSocket#session= is not supported] message noting happens
# sh ./upgrade.sh
check if /tmp/nagioslogserver exists
--2019-08-18 12:00:25-- https://assets.nagios.com/downloads/nagios-log-server/n agioslogserver-latest.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:f03c :91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connect ed.
HTTP request sent, awaiting response... 200 OK
Length: 193202428 (184M) [application/x-gzip]
Saving to: ‘/tmp/nagioslogserver-latest.tar.gz’
100%[======================================>] 193,202,428 578KB/s in 4m 57s
2019-08-18 12:05:23 (636 KB/s) - ‘/tmp/nagioslogserver-latest.tar.gz’ saved [193 202428/193202428]
Running upgrade
Your system $PATH does not include /sbin and /usr/sbin. This is usually the resu lt of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
Nagios Log Server Upgrade Log
==========================
DATE: Sun Aug 18 12:05:39 +04 2019
DISTRO INFO:
CentOS
7.5.1804
x86_64
Old Version: 2006
New Version: 2008
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... =os&infra= stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
* base: centos.kw.zain.com
* epel: fedora.cs.nctu.edu.tw
* extras: centos.kw.zain.com
* updates: centos.kw.zain.com
No Match for argument: nagios-repo
No package nagios-repo available.
No packages marked for update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.kw.zain.com
* epel: mirror2.totbb.net
* extras: centos.kw.zain.com
* updates: centos.kw.zain.com
Package php-devel-5.4.16-46.el7.x86_64 already installed and latest version
Nothing to do
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
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCTh reads=N
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
I am trying to update log server its starts and run for some time but after a while it just became silent no progress showing and also update didnt happen.
refer below:after [WARNING: SSLSocket#session= is not supported] message noting happens
# sh ./upgrade.sh
check if /tmp/nagioslogserver exists
--2019-08-18 12:00:25-- https://assets.nagios.com/downloads/nagios-log-server/n agioslogserver-latest.tar.gz
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:f03c :91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connect ed.
HTTP request sent, awaiting response... 200 OK
Length: 193202428 (184M) [application/x-gzip]
Saving to: ‘/tmp/nagioslogserver-latest.tar.gz’
100%[======================================>] 193,202,428 578KB/s in 4m 57s
2019-08-18 12:05:23 (636 KB/s) - ‘/tmp/nagioslogserver-latest.tar.gz’ saved [193 202428/193202428]
Running upgrade
Your system $PATH does not include /sbin and /usr/sbin. This is usually the resu lt of installing GNOME rather than creating a clean system.
Adding /sbin and /usr/sbin to $PATH.
Nagios Log Server Upgrade Log
==========================
DATE: Sun Aug 18 12:05:39 +04 2019
DISTRO INFO:
CentOS
7.5.1804
x86_64
Old Version: 2006
New Version: 2008
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... =os&infra= stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
* base: centos.kw.zain.com
* epel: fedora.cs.nctu.edu.tw
* extras: centos.kw.zain.com
* updates: centos.kw.zain.com
No Match for argument: nagios-repo
No package nagios-repo available.
No packages marked for update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.kw.zain.com
* epel: mirror2.totbb.net
* extras: centos.kw.zain.com
* updates: centos.kw.zain.com
Package php-devel-5.4.16-46.el7.x86_64 already installed and latest version
Nothing to do
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
OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCTh reads=N
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
WARNING: SSLSocket#session= is not supported
Re: Log Server not updating
Is DNS working properly on that server? It's strange that you would be able to hit assets.nagios.com, but not mirrorlist.centos.org.
Also, let's see what your DNS servers are,
What happens if you run this at the command line,Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... =os&infra= stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Code: Select all
nslookup mirrorlist.centos.org
Code: Select all
cat /etc/resolv.conf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 5
- Joined: Sun Sep 30, 2018 1:44 am
Re: Log Server not updating
[root@nagioslog ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 10.240.10.28
[root@nagioslog ~]#
DNS seems to be working fine.
[root@nagioslog ~]# nslookup mirrorlist.centos.org
Server: 10.240.10.28
Address: 10.240.10.28#53
Non-authoritative answer:
Name: mirrorlist.centos.org
Address: 212.69.166.138
Name: mirrorlist.centos.org
Address: 85.236.43.108
Name: mirrorlist.centos.org
Address: 216.176.179.218
Name: mirrorlist.centos.org
Address: 67.219.148.138
# Generated by NetworkManager
nameserver 10.240.10.28
[root@nagioslog ~]#
DNS seems to be working fine.
[root@nagioslog ~]# nslookup mirrorlist.centos.org
Server: 10.240.10.28
Address: 10.240.10.28#53
Non-authoritative answer:
Name: mirrorlist.centos.org
Address: 212.69.166.138
Name: mirrorlist.centos.org
Address: 85.236.43.108
Name: mirrorlist.centos.org
Address: 216.176.179.218
Name: mirrorlist.centos.org
Address: 67.219.148.138
Re: Log Server not updating
Alright, DNS verified working. Let's try running yum update, and if that succeeds, run the upgrade shell script immediately after.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 5
- Joined: Sun Sep 30, 2018 1:44 am
Re: Log Server not updating
After yum update,I ran the script but its stuck at the same place.
Replaced:
grub2.x86_64 1:2.02-0.65.el7.centos.2
grub2-tools.x86_64 1:2.02-0.65.el7.centos.2
Complete!
Replaced:
grub2.x86_64 1:2.02-0.65.el7.centos.2
grub2-tools.x86_64 1:2.02-0.65.el7.centos.2
Complete!
Re: Log Server not updating
I'm sorry, I may be misreading this. Are you saying you replaced those lines, and then the script was able to complete? Or is it still stuck?shiraz1982 wrote:After yum update,I ran the script but its stuck at the same place.
Replaced:
grub2.x86_64 1:2.02-0.65.el7.centos.2
grub2-tools.x86_64 1:2.02-0.65.el7.centos.2
Complete!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 5
- Joined: Sun Sep 30, 2018 1:44 am
Re: Log Server not updating
It is still stuck.
The replaced and complete message prompt after yum update only.
The replaced and complete message prompt after yum update only.
Re: Log Server not updating
There should be an upgrade.log file. Could you PM that to me?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Log Server not updating
It may be getting hung up on updating Logstash. Let's comment out those two lines and try the upgrade again. We can circle back and upgrade Logstash manually afterwards.
In the upgrade script, comment out lines 244
And 262
If you're using the vi editor you can just type :244 to jump to line 244, and :262 for line 262.
That should allow the rest of the script to complete. Assuming it does, let's check the Logstash geoip and input tcp versions.
If it is less than 4.0.4 for geoip, and 4.2.4 for input tcp, we'll need to upgrade those. There is a section in this document for downloading those components and installing them.
https://support.nagios.com/kb/article/n ... n-495.html
In the upgrade script, comment out lines 244
Code: Select all
# $backenddir/logstash/bin/logstash-plugin update logstash-input-tcp
Code: Select all
# $backenddir/logstash/bin/logstash-plugin update logstash-filter-geoip
That should allow the rest of the script to complete. Assuming it does, let's check the Logstash geoip and input tcp versions.
Code: Select all
/usr/local/nagioslogserver/logstash/bin/logstash-plugin list --verbose | grep -E 'input-tcp|filter-geo'
https://support.nagios.com/kb/article/n ... n-495.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!