I'm trying to update our 2012R.1.3 to 2012R1.6 but upgrade script failed...
Here the code...
Code: Select all
[root@snagxi01 nagiosxi]# ./upgrade
OLD VERSION: 303
NagiosQL user table updated successfully!
Saving old crontab to /tmp/nagios.crontab.orig.5...
Removing XI cron jobs...
Saving old crontab to /tmp/root.crontab.orig.5...
Removing XI cron jobs...
Copying over new XI directory...
Updating NagiosQL...
NAGIOSQL-POST
Building latest perms binary...
Patching NDOUtils...
NDOUtils already patched at level 103
Updating sequences...
Nagios XI Postgres Database Sequence Information
OLD VALUES
--------------
xi_commands_command_id_seq = 6347
xi_events_event_id_seq = 677500
xi_meta_meta_id_seq = 677585
xi_options_option_id_seq = 127
xi_sysstat_sysstat_id_seq = 99
xi_usermeta_usermeta_id_seq = 2004
xi_users_user_id_seq = 93
NEW VALUES
--------------
xi_commands_command_id_seq = 6347
xi_events_event_id_seq = 677500
xi_meta_meta_id_seq = 677585
xi_options_option_id_seq = 127
xi_sysstat_sysstat_id_seq = 99
xi_usermeta_usermeta_id_seq = 2004
xi_users_user_id_seq = 93
Installing new PNP templates...
Updating init script...
Enabling large install tweaks...
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=6i95te' -O nagiosql.login--2013-03-21 19:55:41-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-21 19:55:41-- http://localhost/nagiosql/admin.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: ânagiosql.loginâ
100%[============================================================================>] 5,286 --.-K/s in 0s
2013-03-21 19:55:41 (546 MB/s) - ânagiosql.loginâ
LOGIN SUCCESSFUL!
IMPORTING CONFIG FILES...URL: http://localhost/nagiosql/admin/import.php
Array
(
[0] => xi_timeperiod_24x7.cfg
)
IMPORTING /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/import.php --no-check-certificate --post-data 'chbOverwrite=1&selImportFile[]=/usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg' -O nagiosql.import.monitoring
--2013-03-21 19:55:41-- http://localhost/nagiosql/admin/import.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ânagiosql.import.monitoringâ
[ <=> ] 731,730 --.-K/s in 0.003s
2013-03-21 19:55:41 (263 MB/s) - ânagiosql.import.monitoringâ
SETUID ROOT OK
RESETTING PERMS
URL: http://localhost/nagiosql/index.php
CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosql/index.php --no-check-certificate --post-data 'Submit=Login&tfUsername=nagiosxi&tfPassword=6i95te' -O nagiosql.login--2013-03-21 19:55:41-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://localhost/nagiosql/admin.php [following]
--2013-03-21 19:55:41-- http://localhost/nagiosql/admin.php
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5286 (5.2K) [text/html]
Saving to: ânagiosql.loginâ
100%[============================================================================>] 5,286 --.-K/s in 0s
2013-03-21 19:55:41 (550 MB/s) - ânagiosql.loginâ
LOGIN SUCCESSFUL!
URL: http://localhost/nagiosql/admin/verify.php
CMDLINE:
/usr/bin/wget --load-cookies=nagiosql.cookies http://localhost/nagiosql/admin/verify.php --no-check-certificate --post-data 'writeMonitoring=Go' -O nagiosql.export.monitoring
--2013-03-21 19:55:42-- http://localhost/nagiosql/admin/verify.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4788 (4.7K) [text/html]
Saving to: ânagiosql.export.monitoringâ
100%[============================================================================>] 4,788 --.-K/s in 0s
2013-03-21 19:56:34 (487 MB/s) - ânagiosql.export.monitoringâ
NAGIOSQL WRITE CONFIGS FAILED!\nThanks in advance!