Page 2 of 2

Re: Nagios LogServer Offline Instructions

Posted: Tue Feb 11, 2020 3:38 pm
by cdienger
I used these additional commands to make sure I was removing all the files that the installer and upgrade try to install:

Code: Select all

rm /usr/bin/wkhtmlto*
rm /usr/local/ncpa
rm /tmp/nagioslogserver/installed.*
yum remove ncpa
yum remove wkhtmltox
These steps in addition to https://support.nagios.com/kb/article/n ... e-496.html and https://support.nagios.com/kb/article/n ... n-495.html should allow you to do both the install and upgrade. The NCPA and wkhtmltox packages should be downloaded on an internet facing machine, and then copied over to the offline machine.

Copy the ncpa rpm to /tmp/nagioslogserver/subcomponents/ncpa/ and edit /tmp/nagioslogserver/subcomponents/install. Comment out line 41 and change line 46:

Code: Select all

40 # Download a new package
41 #wget "$assets$pkgname"
42
43 if [ "$distro" == "Debian" ] || [ "$distro" == "Ubuntu" ]; then
44 dpkg --force-confnew -i "$pkgname"
45 else
46 yum localinstall -y *.rpm
47 fi
Then copy the wkhtmltox rpm to /tmp/nagioslogserver/subcomponents/wkhtmltox/, edit /tmp/nagioslogserver/subcomponents/wkhtmltox/install, comment out line 38, 41 and change line 46:

Code: Select all

     38     #rm -rf wkhtmlto*
     39
     40     # Download a new package
     41     assets="https://assets.nagios.com/downloads/nagiosxi/packages/"
     42     #wget "$assets$pkgname"
     43
     44     if [ "$distro" == "Debian" ] || [ "$distro" == "Ubuntu" ]; then
     45         dpkg -i "$pkgname"
     46     else
     47         yum localinstall -y *.rpm
     48     fi
Note the above are for Cent/RHEL installs.

Re: Nagios LogServer Offline Instructions

Posted: Fri Feb 14, 2020 10:22 am
by scott.brown8
Any luck with getting that finished?

Re: Nagios LogServer Offline Instructions

Posted: Fri Feb 14, 2020 5:10 pm
by cdienger
Not yet, but the previous post should do the trick. Have you gone through them?