2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Merge pull request #704 from ka7/backuppc_warn_crit

backuppc: add CRITICAL and WARNING (backup age) variables.
This commit is contained in:
Stig Sandbeck Mathisen 2016-03-23 19:45:31 +01:00
commit 8ab524b3d6

View File

@ -4,6 +4,10 @@
# [backuppc] # [backuppc]
# user backuppc # user backuppc
# env.pcdir /var/lib/BackupPC/pc # env.pcdir /var/lib/BackupPC/pc
# env.full_warning 10 # warn if FULL backup older than N days
# env.full_critical 20 # critical if FULL backup older than N days
# env.incr_warning 1 # warn if INCR backup older than N days
# env.incr_critical 3 # critical if INCR backup older than N days
# #
#%# family=backuppc #%# family=backuppc
#%# capabilities=autoconf #%# capabilities=autoconf
@ -42,6 +46,18 @@ if [ "$1" = "config" ]; then
do do
echo "$(clean_fieldname ${h})_full.label $(clean_fieldname ${h}) Full" echo "$(clean_fieldname ${h})_full.label $(clean_fieldname ${h}) Full"
echo "$(clean_fieldname ${h})_incr.label $(clean_fieldname ${h}) Incr" echo "$(clean_fieldname ${h})_incr.label $(clean_fieldname ${h}) Incr"
if [ -n "$full_warning" ]; then
echo "$(clean_fieldname ${h})_full.warning $full_warning"
fi
if [ -n "$incr_warning" ]; then
echo "$(clean_fieldname ${h})_incr.warning $incr_warning"
fi
if [ -n "$full_critical" ]; then
echo "$(clean_fieldname ${h})_full.critical $full_critical"
fi
if [ -n "$incr_critical" ]; then
echo "$(clean_fieldname ${h})_incr.critical $incr_critical"
fi
done done
exit 0 exit 0
@ -150,3 +166,5 @@ one per row. The columns are:
mangle mangle
Set if this backup has mangled file names and attributes. Always true Set if this backup has mangled file names and attributes. Always true
for backups in v1.4.0 and above. False for all backups prior to v1.4.0. for backups in v1.4.0 and above. False for all backups prior to v1.4.0.
__END__