Re: Nagios LogServer Offline Instructions
Posted: Tue Feb 11, 2020 3:38 pm
I used these additional commands to make sure I was removing all the files that the installer and upgrade try to install:
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:
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:
Note the above are for Cent/RHEL installs.
Code: Select all
rm /usr/bin/wkhtmlto*
rm /usr/local/ncpa
rm /tmp/nagioslogserver/installed.*
yum remove ncpa
yum remove wkhtmltoxCopy 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 fiCode: 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