***VERSION BEFORE UPGRADE***
[root@NAGIOSXI-SERVER nagiosxi]# /usr/local/nagios/bin/nagios -V
Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL
***RESULT OF PRE UPGRADE CHECK***
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 1127 services.
Checking hosts...
Checked 245 hosts.
Checking host groups...
Checked 14 host groups.
Checking service groups...
Checked 1 service groups.
Checking contacts...
Checked 5 contacts.
Checking contact groups...
Checked 3 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 111 commands.
Checking time periods...
Checked 11 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
***START UPGRADE***
[root@NAGIOSXI-SERVER nagiosxi]# ./upgrade
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 946 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/mcrypt.ini on line 2 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 946 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.d/mcrypt.ini on line 2 in Unknown on line 0
Checking required prereqs...
Please wait...
OLD VERSION: 320
===================
2014 Updates
===================
*** Exfoliation theme installed ***
NOTE: Use 'make install-classicui' to revert to classic Nagios theme
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.8'
make install-basic
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.8'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/archives
/usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/spool/checkresults
chmod g+s /usr/local/nagios/var/spool/checkresults
*** Main program, CGIs and HTML files installed ***
You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):
make install-init
- This installs the init script in /etc/rc.d/init.d
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
make install-config
- This installs sample config files in /usr/local/nagios/etc
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.8'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
Repeat tmcdonald's steps again to find if there any any more files it has issues with.
Once you've done this attempt the upgrade again.
Thanks for the reply. Once I've remove the first (internet-diensten) template it starts about the default templates, such as hosttemplates and servciestemplates, which shouldn't be removed, I think. I have just rolled back my VMware snapshot to go back to a working system.
Just to be clear, when I check on the system before the upgrade, (Configure/Core Config Manager/Write Config Files/Write-Verify) there are no errors.
No errors before an upgrade usually means no errors after an upgrade. This is assuming you have applied config and all of the files have been written to disk, meaning there are no changes in the CCM that have not been committed.
Before you attempt your next upgrade, I would do the following:
Go into CCM
Tools > Write Config Files
Click the Delete button
It will say "Successfully deleted all Host / Service Config Files"
Click the Write Button
It will show an output of all the files it creates
Click the Verify button
The output should end with "Total Errors: 0"
Quick Tools > Apply Configuration
Click the Apply Configuration button
Then perform the upgrade.
Let us know how you go.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Box293 wrote:Before you attempt your next upgrade, I would do the following:
Go into CCM
Tools > Write Config Files
Click the Delete button
It will say "Successfully deleted all Host / Service Config Files"
Click the Write Button
It will show an output of all the files it creates
Click the Verify button
The output should end with "Total Errors: 0"
Quick Tools > Apply Configuration
Click the Apply Configuration button
Then perform the upgrade.
Let us know how you go.
Thanks for your reply. Can you please tell me where the "Delete" button is? (Please see my screenshot)
You do not have the required permissions to view the files attached to this post.
*** Main program, CGIs and HTML files installed ***
You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):
make install-init
- This installs the init script in /etc/rc.d/init.d
make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file
make install-config
- This installs sample config files in /usr/local/nagios/etc
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.8'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
You do not have the required permissions to view the files attached to this post.