evobackup/server/misc/munin-plugin/bkctld_jails
Ludovic Poujol cff9d7382f
All checks were successful
continuous-integration/drone/push Build is passing
gitea/evobackup/pipeline/head This commit looks good
WIP > Working on some possible munin plugins
2022-08-19 12:23:53 +02:00

29 lines
558 B
Bash

#!/bin/bash
#
#
case $1 in
config)
cat <<'UNLIKELY_EOF'
graph_title bkctld jails
graph_vlabel Number of jails
graph_args --lower-limit 0
graph_scale no
graph_category bkctld
graph_info The total number of configured jails on the server
jails.info Number of backup jails configured
jails.label Jails Configured
jails_active.info Number of backup jails active (running)
jails_active.label Jails active
UNLIKELY_EOF
exit 0;;
esac
printf "jails.value "
bkctld list | wc -l
printf "jails_active.value "
bkctld status all | grep ON | wc -l