Ok, here is a short list of steps to upgrade to Core 4.0.7 on XI 20141.1 before the next XI release, this assumes you have the old installation directory in /tmp/nagiosxi
Code: Select all
cd /tmp/nagiosxi/subcomponents/nagioscore/
wget http://sourceforge.net/projects/nagios/files/nagios-4.x/nagios-4.0.7/nagios-4.0.7.tar.gz/download -O nagios-4.0.7.tar.gz
Then edit line 5 of /tmp/nagiosxi/subcomponents/nagioscore/upgrade to read
Then, edit /tmp/nagiosxi/subcomponents/nagioscore/apply-patches to only contain the following (removing about 5 lines)
Code: Select all
#!/bin/sh -e
pkgname="$1"
# Apply our patches
echo "Applying Nagios XI patches to Nagios Core..."
# Custom CGIs
cp patches/cgi/*.c "$pkgname/cgi"
# Makefile mods for Custom CGIs
patch "$pkgname/cgi/Makefile.in" < patches/cgi-makefile.patch
Then, from in the /tmp/nagiosxi/subcomponents/nagioscore/ directory