Hi all,
I've a problem I cannot find the solution :
Server A make SQL dumps at night and store them in a folder.
Server B rsync the folder from remote to local, to keep a copy of the dumps.
Dumps are in the given format :
db-DDMMYY_HHMM.sql.bz2
So each day, a new file is created.
I've made a script that return the file size of the last dump and I'm monitoring this value with zabbix on server B.
Then I setup a trigger to alert me if the size of the dump change for more than xMo (absolute change) when comparing to the previous value.
I add a Flexible intervals :
Interval : 3600
Period : 1-7,06:00-24:00
The main problem is that at midnight (00 AM) zabbix store a value of 0, so it run the trigger.
The backups runs in the period of 0AM to 6AM, so I was thinking to not monitor this interval of time.
My questions are :
1) How can I say zabbix to stop saving value from 0AM to 6AM, not to store a 0 an run the trigger ?
2) Do you see a better way to monitor SQL dumps with zabbix ?
Any good ressources to read will be very appreciated.
3) Is there a way in the trigger to say "difference of x% of the last value" and not "difference of x" ?
Thanks you very much !
I've a problem I cannot find the solution :
Server A make SQL dumps at night and store them in a folder.
Server B rsync the folder from remote to local, to keep a copy of the dumps.
Dumps are in the given format :
db-DDMMYY_HHMM.sql.bz2
So each day, a new file is created.
I've made a script that return the file size of the last dump and I'm monitoring this value with zabbix on server B.
Then I setup a trigger to alert me if the size of the dump change for more than xMo (absolute change) when comparing to the previous value.
I add a Flexible intervals :
Interval : 3600
Period : 1-7,06:00-24:00
The main problem is that at midnight (00 AM) zabbix store a value of 0, so it run the trigger.
The backups runs in the period of 0AM to 6AM, so I was thinking to not monitor this interval of time.
My questions are :
1) How can I say zabbix to stop saving value from 0AM to 6AM, not to store a 0 an run the trigger ?
2) Do you see a better way to monitor SQL dumps with zabbix ?
Any good ressources to read will be very appreciated.
3) Is there a way in the trigger to say "difference of x% of the last value" and not "difference of x" ?
Thanks you very much !

Comment