Page 1 of 1

Log Server not updating

Posted: Sun Aug 18, 2019 7:06 am
by arief
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:3c00::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

Posted: Mon Aug 19, 2019 10:16 am
by mbellerue
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.
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"
What happens if you run this at the command line,

Code: Select all

nslookup mirrorlist.centos.org
Also, let's see what your DNS servers are,

Code: Select all

cat /etc/resolv.conf

Re: Log Server not updating

Posted: Tue Aug 20, 2019 12:42 am
by shiraz1982
[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

Re: Log Server not updating

Posted: Tue Aug 20, 2019 10:00 am
by mbellerue
Alright, DNS verified working. Let's try running yum update, and if that succeeds, run the upgrade shell script immediately after.

Re: Log Server not updating

Posted: Sun Aug 25, 2019 5:02 am
by shiraz1982
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!

Re: Log Server not updating

Posted: Mon Aug 26, 2019 9:35 am
by mbellerue
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!
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?

Re: Log Server not updating

Posted: Tue Aug 27, 2019 3:50 am
by shiraz1982
It is still stuck.

The replaced and complete message prompt after yum update only.

Re: Log Server not updating

Posted: Tue Aug 27, 2019 10:11 am
by mbellerue
There should be an upgrade.log file. Could you PM that to me?

Re: Log Server not updating

Posted: Wed Aug 28, 2019 2:55 pm
by mbellerue
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

Code: Select all

#    $backenddir/logstash/bin/logstash-plugin update logstash-input-tcp
And 262

Code: Select all

#    $backenddir/logstash/bin/logstash-plugin update logstash-filter-geoip
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.

Code: Select all

/usr/local/nagioslogserver/logstash/bin/logstash-plugin list --verbose | grep -E 'input-tcp|filter-geo'
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