-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make status monitor report 'out of date'. #151
Comments
At the moment I do something like this in a cron to see backups older than yesterday:
It needs better date/time parsing (this one doesn't take the overnight "day change" into account for nightly backups) but it's the same idea. |
Thanks, this command is very useful. burp -a S -c /etc/burp/burp-server.conf | grep -v -e "$(date -d '8 days ago' +%F)" -e "$(date +%F)" -e "^[[:space:]]*$" I have found more useful information in: |
After some testing, that line didn't help. Its behaviour was a little bit strange, so I have been working with a friend on it: Changing comment because I have added a pull request with improvements: It works to generate the correct list of "Out of date" or "outdated" backups. Also you can pipe it to send email example: Also sends email, change the variables to your own email addresses |
Hello, |
Pleased to help! The script doesn't creates: /var/log/burp-custom folder. 2015-04-12 8:23 GMT-03:00 grke notifications@github.com:
Pablo Estigarribia. |
Just added some changes in #283 |
I have this on a cron job:
0 6 * * * root /etc/burp/summary_script /etc/burp/burp-server.conf
keeling@spamcop.net 'burp summary' >/dev/null 2>&1
summary_script runs this and puts it in an email:
burp -c /etc/burp/burp-server.conf -a S
The output looks like this:
burp status 2013-04-26 20:52:33
windows idle last backup: 0000008 2013-04-09 01:54:41
grke.net idle last backup: 0000076 2013-04-26 00:02:31
space idle last backup: 0000011 2013-04-22 20:35:10
studio idle last backup: 0000002 2012-05-18 22:31:14
(etc)
All that needs to be added is an option in the conf file to tell it when a
client is to be considered out of date (overridable per client). It could then
put 'out of date' where 'idle' currently is, and summary_script could filter on
those lines.
The text was updated successfully, but these errors were encountered: