Backup Errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Backup Errors

Post by rajasegar »

XI 2012R2.9 Ent. Edition
RHEL 6.5
Offloaded DB

I am getting the following errors from the backup log
ERRORS_10.17.19.237-658962937.log

-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.

Does this mean, the event data is not backed up?
Please advice where to add the --events option.

Thanks.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Backup Errors

Post by abrist »

It is not a nagios events table, as all the nagios db names start with "nagios", "nagiosxi", or "nagiosql".
mysql.event is for built-in mysql scheduled events. I presume this "warning" is benign.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Backup Errors

Post by rajasegar »

abrist wrote:It is not a nagios events table, as all the nagios db names start with "nagios", "nagiosxi", or "nagiosql".
mysql.event is for built-in mysql scheduled events. I presume this "warning" is benign.
Ok. The backup should backup everything and I don't want to see the error log file everyday.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Backup Errors

Post by scottwilkerson »

Then you can make the following adjustment... In /root/scripts/automysqlbackup change the following line
change

Code: Select all

DBNAMES="all"
to

Code: Select all

DBNAMES="nagios nagiosql"
this will no longer backup the mysql base db, and stop giving you this error....
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Backup Errors

Post by rajasegar »

scottwilkerson wrote:Then you can make the following adjustment... In /root/scripts/automysqlbackup change the following line
change

Code: Select all

DBNAMES="all"
to

Code: Select all

DBNAMES="nagios nagiosql"
this will no longer backup the mysql base db, and stop giving you this error....
It does not give the error anymore but the error file still created with size 0.
27-06-2014 07-23-29 AM.png
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Backup Errors

Post by tmcdonald »

That is created by the following line (~395):

Code: Select all

touch $LOGFILE
You can probably comment out this line to stop the error log from being created.
Former Nagios employee
Locked