projects
/
mirror
/
dsa-nagios.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
retire smetana
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
dsa-check-dchroots-current
1
#!/bin/bash
2
3
oldtars=$(find /srv/chroot -mindepth 1 -maxdepth 1 -name '*.tar.gz' -mtime +14 -printf "%f ")
4
5
if [ -z "$oldtars" ]; then
6
echo "OK: All tarballs in /srv/chroot are recent"
7
exit 0
8
else
9
echo "Warning: Some tarballs are old: $oldtars"
10
exit 1
11
fi