2022-08-19 12:23:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
config)
|
|
|
|
cat <<'UNLIKELY_EOF'
|
|
|
|
graph_title bkctld incs
|
|
|
|
graph_vlabel Number of incs
|
|
|
|
graph_args --lower-limit 0
|
|
|
|
|
|
|
|
graph_scale no
|
|
|
|
graph_category bkctld
|
|
|
|
graph_info The total number of available incs on the server
|
|
|
|
|
|
|
|
incs.info Number of backup incs available
|
2022-08-19 14:35:08 +02:00
|
|
|
incs.label Incs available
|
2022-08-19 12:23:53 +02:00
|
|
|
|
2022-09-09 11:33:24 +02:00
|
|
|
incs_expected.info Number of backup incs expected by config
|
|
|
|
incs_expected.label Incs expected by config
|
|
|
|
|
2022-08-19 12:23:53 +02:00
|
|
|
UNLIKELY_EOF
|
|
|
|
exit 0;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
printf "incs.value "
|
|
|
|
ls -ld /backup/incs/*/* | wc -l
|
|
|
|
|
2022-09-09 11:33:24 +02:00
|
|
|
printf "incs_expected.value "
|
|
|
|
cat /etc/evobackup/*.d/incs_policy /etc/evobackup/* 2>/dev/null | wc -l
|