Scheduled backup failed unexpectedly as password of nagios and nagiosql is verified to be valid to connect to remote mysql server. Log file contains password invalid entries is attached. All databases including nagios pass mysqlcheck as shown below. What possible reasons cause it failed to complete?
mysql.columns_priv OK
mysql.db OK
mysql.engine_cost OK
mysql.event OK
mysql.func OK
mysql.general_log OK
mysql.gtid_executed OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.innodb_index_stats OK
mysql.innodb_table_stats OK
mysql.ndb_binlog_index OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.server_cost OK
mysql.servers OK
mysql.slave_master_info OK
mysql.slave_relay_log_info OK
mysql.slave_worker_info OK
mysql.slow_log OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
nagios.nagios_acknowledgements OK
nagios.nagios_commands OK
nagios.nagios_commenthistory OK
nagios.nagios_comments OK
nagios.nagios_configfiles OK
nagios.nagios_configfilevariables OK
nagios.nagios_conninfo OK
nagios.nagios_contact_addresses OK
nagios.nagios_contact_notificationcommands OK
nagios.nagios_contactgroup_members OK
nagios.nagios_contactgroups OK
nagios.nagios_contactnotificationmethods OK
nagios.nagios_contactnotifications OK
nagios.nagios_contacts OK
nagios.nagios_contactstatus OK
nagios.nagios_customvariables OK
nagios.nagios_customvariablestatus OK
nagios.nagios_dbversion OK
nagios.nagios_downtimehistory OK
nagios.nagios_eventhandlers OK
nagios.nagios_externalcommands OK
nagios.nagios_flappinghistory OK
nagios.nagios_host_contactgroups OK
nagios.nagios_host_contacts OK
nagios.nagios_host_parenthosts OK
nagios.nagios_hostchecks OK
nagios.nagios_hostdependencies OK
nagios.nagios_hostescalation_contactgroups OK
nagios.nagios_hostescalation_contacts OK
nagios.nagios_hostescalations OK
nagios.nagios_hostgroup_members OK
nagios.nagios_hostgroups OK
nagios.nagios_hosts OK
nagios.nagios_hoststatus OK
nagios.nagios_instances OK
nagios.nagios_logentries OK
nagios.nagios_notifications OK
nagios.nagios_objects OK
nagios.nagios_processevents OK
nagios.nagios_programstatus OK
nagios.nagios_runtimevariables OK
nagios.nagios_scheduleddowntime OK
nagios.nagios_service_contactgroups OK
nagios.nagios_service_contacts OK
nagios.nagios_service_parentservices OK
nagios.nagios_servicechecks OK
nagios.nagios_servicedependencies OK
nagios.nagios_serviceescalation_contactgroups OK
nagios.nagios_serviceescalation_contacts OK
nagios.nagios_serviceescalations OK
nagios.nagios_servicegroup_members OK
nagios.nagios_servicegroups OK
nagios.nagios_services OK
nagios.nagios_servicestatus OK
nagios.nagios_statehistory OK
nagios.nagios_systemcommands OK
nagios.nagios_timedeventqueue OK
nagios.nagios_timedevents OK
nagios.nagios_timeperiod_timeranges OK
nagios.nagios_timeperiods OK
nagios.tbl_command OK
nagios.tbl_contact OK
nagios.tbl_contactgroup OK
nagios.tbl_contacttemplate OK
nagios.tbl_domain OK
nagios.tbl_host OK
nagios.tbl_hostdependency OK
nagios.tbl_hostescalation OK
nagios.tbl_hostextinfo OK
nagios.tbl_hostgroup OK
nagios.tbl_hosttemplate OK
nagios.tbl_info OK
nagios.tbl_lnkContactToCommandHost OK
nagios.tbl_lnkContactToCommandService OK
nagios.tbl_lnkContactToContactgroup OK
nagios.tbl_lnkContactToContacttemplate OK
nagios.tbl_lnkContactToVariabledefinition OK
nagios.tbl_lnkContactgroupToContact OK
nagios.tbl_lnkContactgroupToContactgroup OK
nagios.tbl_lnkContacttemplateToCommandHost OK
nagios.tbl_lnkContacttemplateToCommandService OK
nagios.tbl_lnkContacttemplateToContactgroup OK
nagios.tbl_lnkContacttemplateToContacttemplate OK
nagios.tbl_lnkContacttemplateToVariabledefinition OK
nagios.tbl_lnkHostToContact OK
nagios.tbl_lnkHostToContactgroup OK
nagios.tbl_lnkHostToHost OK
nagios.tbl_lnkHostToHostgroup OK
nagios.tbl_lnkHostToHosttemplate OK
nagios.tbl_lnkHostToVariabledefinition OK
nagios.tbl_lnkHostdependencyToHost_DH OK
nagios.tbl_lnkHostdependencyToHost_H OK
nagios.tbl_lnkHostdependencyToHostgroup_DH OK
nagios.tbl_lnkHostdependencyToHostgroup_H OK
nagios.tbl_lnkHostescalationToContact OK
nagios.tbl_lnkHostescalationToContactgroup OK
nagios.tbl_lnkHostescalationToHost OK
nagios.tbl_lnkHostescalationToHostgroup OK
nagios.tbl_lnkHostgroupToHost OK
nagios.tbl_lnkHostgroupToHostgroup OK
nagios.tbl_lnkHosttemplateToContact OK
nagios.tbl_lnkHosttemplateToContactgroup OK
nagios.tbl_lnkHosttemplateToHost OK
nagios.tbl_lnkHosttemplateToHostgroup OK
nagios.tbl_lnkHosttemplateToHosttemplate OK
nagios.tbl_lnkHosttemplateToVariabledefinition OK
nagios.tbl_lnkServiceToContact OK
nagios.tbl_lnkServiceToContactgroup OK
nagios.tbl_lnkServiceToHost OK
nagios.tbl_lnkServiceToHostgroup OK
nagios.tbl_lnkServiceToServicegroup OK
nagios.tbl_lnkServiceToServicetemplate OK
nagios.tbl_lnkServiceToVariabledefinition OK
nagios.tbl_lnkServicedependencyToHost_DH OK
nagios.tbl_lnkServicedependencyToHost_H OK
nagios.tbl_lnkServicedependencyToHostgroup_DH OK
nagios.tbl_lnkServicedependencyToHostgroup_H OK
nagios.tbl_lnkServicedependencyToService_DS OK
nagios.tbl_lnkServicedependencyToService_S OK
nagios.tbl_lnkServiceescalationToContact OK
nagios.tbl_lnkServiceescalationToContactgroup OK
nagios.tbl_lnkServiceescalationToHost OK
nagios.tbl_lnkServiceescalationToHostgroup OK
nagios.tbl_lnkServiceescalationToService OK
nagios.tbl_lnkServicegroupToService OK
nagios.tbl_lnkServicegroupToServicegroup OK
nagios.tbl_lnkServicetemplateToContact OK
nagios.tbl_lnkServicetemplateToContactgroup OK
nagios.tbl_lnkServicetemplateToHost OK
nagios.tbl_lnkServicetemplateToHostgroup OK
nagios.tbl_lnkServicetemplateToServicegroup OK
nagios.tbl_lnkServicetemplateToServicetemplate OK
nagios.tbl_lnkServicetemplateToVariabledefinition OK
nagios.tbl_lnkTimeperiodToTimeperiod OK
nagios.tbl_logbook OK
nagios.tbl_mainmenu OK
nagios.tbl_service OK
nagios.tbl_servicedependency OK
nagios.tbl_serviceescalation OK
nagios.tbl_serviceextinfo OK
nagios.tbl_servicegroup OK
nagios.tbl_servicetemplate OK
nagios.tbl_session OK
nagios.tbl_session_locks OK
nagios.tbl_settings OK
nagios.tbl_submenu OK
nagios.tbl_timedefinition OK
nagios.tbl_timeperiod OK
nagios.tbl_user OK
nagios.tbl_variabledefinition OK
nagios.xi_auditlog OK
nagios.xi_commands OK
nagios.xi_eventqueue OK
nagios.xi_events OK
nagios.xi_incidents OK
nagios.xi_meta OK
nagios.xi_options OK
nagios.xi_sysstat OK
nagios.xi_usermeta OK
nagios.xi_users OK
nagiosql.tbl_command OK
nagiosql.tbl_contact OK
nagiosql.tbl_contactgroup OK
nagiosql.tbl_contacttemplate OK
nagiosql.tbl_domain OK
nagiosql.tbl_host OK
nagiosql.tbl_hostdependency OK
nagiosql.tbl_hostescalation OK
nagiosql.tbl_hostextinfo OK
nagiosql.tbl_hostgroup OK
nagiosql.tbl_hosttemplate OK
nagiosql.tbl_info OK
nagiosql.tbl_lnkContactToCommandHost OK
nagiosql.tbl_lnkContactToCommandService OK
nagiosql.tbl_lnkContactToContactgroup OK
nagiosql.tbl_lnkContactToContacttemplate OK
nagiosql.tbl_lnkContactToVariabledefinition OK
nagiosql.tbl_lnkContactgroupToContact OK
nagiosql.tbl_lnkContactgroupToContactgroup OK
nagiosql.tbl_lnkContacttemplateToCommandHost OK
nagiosql.tbl_lnkContacttemplateToCommandService OK
nagiosql.tbl_lnkContacttemplateToContactgroup OK
nagiosql.tbl_lnkContacttemplateToContacttemplate OK
nagiosql.tbl_lnkContacttemplateToVariabledefinition OK
nagiosql.tbl_lnkHostToContact OK
nagiosql.tbl_lnkHostToContactgroup OK
nagiosql.tbl_lnkHostToHost OK
nagiosql.tbl_lnkHostToHostgroup OK
nagiosql.tbl_lnkHostToHosttemplate OK
nagiosql.tbl_lnkHostToVariabledefinition OK
nagiosql.tbl_lnkHostdependencyToHost_DH OK
nagiosql.tbl_lnkHostdependencyToHost_H OK
nagiosql.tbl_lnkHostdependencyToHostgroup_DH OK
nagiosql.tbl_lnkHostdependencyToHostgroup_H OK
nagiosql.tbl_lnkHostescalationToContact OK
nagiosql.tbl_lnkHostescalationToContactgroup OK
nagiosql.tbl_lnkHostescalationToHost OK
nagiosql.tbl_lnkHostescalationToHostgroup OK
nagiosql.tbl_lnkHostgroupToHost OK
nagiosql.tbl_lnkHostgroupToHostgroup OK
nagiosql.tbl_lnkHosttemplateToContact OK
nagiosql.tbl_lnkHosttemplateToContactgroup OK
nagiosql.tbl_lnkHosttemplateToHost OK
nagiosql.tbl_lnkHosttemplateToHostgroup OK
nagiosql.tbl_lnkHosttemplateToHosttemplate OK
nagiosql.tbl_lnkHosttemplateToVariabledefinition OK
nagiosql.tbl_lnkServiceToContact OK
nagiosql.tbl_lnkServiceToContactgroup OK
nagiosql.tbl_lnkServiceToHost OK
nagiosql.tbl_lnkServiceToHostgroup OK
nagiosql.tbl_lnkServiceToServicegroup OK
nagiosql.tbl_lnkServiceToServicetemplate OK
nagiosql.tbl_lnkServiceToVariabledefinition OK
nagiosql.tbl_lnkServicedependencyToHost_DH OK
nagiosql.tbl_lnkServicedependencyToHost_H OK
nagiosql.tbl_lnkServicedependencyToHostgroup_DH OK
nagiosql.tbl_lnkServicedependencyToHostgroup_H OK
nagiosql.tbl_lnkServicedependencyToService_DS OK
nagiosql.tbl_lnkServicedependencyToService_S OK
nagiosql.tbl_lnkServiceescalationToContact OK
nagiosql.tbl_lnkServiceescalationToContactgroup OK
nagiosql.tbl_lnkServiceescalationToHost OK
nagiosql.tbl_lnkServiceescalationToHostgroup OK
nagiosql.tbl_lnkServiceescalationToService OK
nagiosql.tbl_lnkServicegroupToService OK
nagiosql.tbl_lnkServicegroupToServicegroup OK
nagiosql.tbl_lnkServicetemplateToContact OK
nagiosql.tbl_lnkServicetemplateToContactgroup OK
nagiosql.tbl_lnkServicetemplateToHost OK
nagiosql.tbl_lnkServicetemplateToHostgroup OK
nagiosql.tbl_lnkServicetemplateToServicegroup OK
nagiosql.tbl_lnkServicetemplateToServicetemplate OK
nagiosql.tbl_lnkServicetemplateToVariabledefinition OK
nagiosql.tbl_lnkTimeperiodToTimeperiod OK
nagiosql.tbl_logbook OK
nagiosql.tbl_mainmenu OK
nagiosql.tbl_service OK
nagiosql.tbl_servicedependency OK
nagiosql.tbl_serviceescalation OK
nagiosql.tbl_serviceextinfo OK
nagiosql.tbl_servicegroup OK
nagiosql.tbl_servicetemplate OK
nagiosql.tbl_session OK
nagiosql.tbl_session_locks OK
nagiosql.tbl_settings OK
nagiosql.tbl_submenu OK
nagiosql.tbl_timedefinition OK
nagiosql.tbl_timeperiod OK
nagiosql.tbl_user OK
nagiosql.tbl_variabledefinition OK
nagiosxi.xi_auditlog OK
nagiosxi.xi_commands OK
nagiosxi.xi_eventqueue OK
nagiosxi.xi_events OK
nagiosxi.xi_incidents OK
nagiosxi.xi_meta OK
nagiosxi.xi_options OK
nagiosxi.xi_sysstat OK
nagiosxi.xi_usermeta OK
nagiosxi.xi_users OK
sys.sys_config OK
test.cats OK
Scheduled backup failed
Scheduled backup failed
You do not have the required permissions to view the files attached to this post.
Re: Scheduled backup failed
Can you run the following and post the output? It will just run a manual backup, but will include more output than just what the log provides.
Code: Select all
/usr/local/nagiosxi/scripts/backup_xi.sh -n test-backupIf you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Scheduled backup failed
Finally backup archive can be created. Is /usr/local/nagiosxi/var/components/scheduledbackups.log the only log file of scheduled backup?
-rw-r--r-- 1 nagios nagios 5.0G Nov 23 22:52 test-backup.tar.gz
Warning: nagios.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/share/perfdata/DR_idx45: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCHK08SWI008/Ping.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCHK08SWI008: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCSG08RTR008: file changed as we read it
tar: /usr/local/nagios/share/perfdata/RGWIRMSWAFIDP1/_HOST_.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/RGWIRMSWAFIDP1: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCJP07RTR009: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCJP08SWI001: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/ndo.sock.bak: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
===============
BACKUP COMPLETE
===============
-rw-r--r-- 1 nagios nagios 5.0G Nov 23 22:52 test-backup.tar.gz
Warning: nagios.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Backing up Core Config Manager (NagiosQL)...
tar: Removing leading `/' from member names
tar: Removing leading `/' from member names
Backing up Nagios Core...
tar: Removing leading `/' from member names
tar: /usr/local/nagios/share/perfdata/DR_idx45: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCHK08SWI008/Ping.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCHK08SWI008: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCSG08RTR008: file changed as we read it
tar: /usr/local/nagios/share/perfdata/RGWIRMSWAFIDP1/_HOST_.rrd: file changed as we read it
tar: /usr/local/nagios/share/perfdata/RGWIRMSWAFIDP1: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCJP07RTR009: file changed as we read it
tar: /usr/local/nagios/share/perfdata/MFCJP08SWI001: file changed as we read it
tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored
tar: /usr/local/nagios/var/ndo.sock: socket ignored
tar: /usr/local/nagios/var/ndo.sock.bak: socket ignored
tar: /usr/local/nagios/var: file changed as we read it
Backing up Nagios XI...
tar: Removing leading `/' from member names
Backing up MRTG...
tar: Removing leading `/' from member names
Backing up NRDP...
tar: Removing leading `/' from member names
Backing up Nagvis...
tar: Removing leading `/' from member names
Backing up MySQL databases...
Backing up cronjobs for Apache...
Backing up logrotate config files...
Backing up Apache config files...
Compressing backup...
===============
BACKUP COMPLETE
===============
Re: Scheduled backup failed
So does that mean you got the scheduled backup working?
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Re: Scheduled backup failed
Yes backup archives can be created in last few days as below. But no idea why it can be completed again after failure previously.
-rw-r--r-- 1 nagios nagios 5.0G Nov 19 02:18 nagiosxi.1605722401.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 20 02:18 nagiosxi.1605808801.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 21 02:19 nagiosxi.1605895202.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 22 02:19 nagiosxi.1605981601.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 23 02:18 nagiosxi.1606068001.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 24 02:18 nagiosxi.1606154402.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 25 02:18 nagiosxi.1606240801.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 19 02:18 nagiosxi.1605722401.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 20 02:18 nagiosxi.1605808801.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 21 02:19 nagiosxi.1605895202.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 22 02:19 nagiosxi.1605981601.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 23 02:18 nagiosxi.1606068001.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 24 02:18 nagiosxi.1606154402.tar.gz
-rw-r--r-- 1 nagios nagios 5.0G Nov 25 02:18 nagiosxi.1606240801.tar.gz