Add debian common role
This commit is contained in:
11
common-debian/files/usr/lib/check_mk_agent/plugins/backup
Executable file
11
common-debian/files/usr/lib/check_mk_agent/plugins/backup
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Backup check for Check_MK
|
||||
# Installed by BLSE 2.x ansible
|
||||
|
||||
SHARELIST=( $( cat /var/backups/shares ) )
|
||||
|
||||
echo "<<<backup>>>"
|
||||
for SHARE in ${SHARELIST[@]}; do
|
||||
echo "${SHARE} $( cat ${SHARE}/.backup )"
|
||||
done
|
Reference in New Issue
Block a user