Add Supercheck
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1679 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2
check
2
check
@@ -32,6 +32,8 @@ if [ -f "/tmp/check-bloque" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
touch /tmp/check.heartbeat
|
||||
|
||||
function checklog()
|
||||
{
|
||||
# Loggue dans /var/log/check.log tous les arguments passes a la fonction
|
||||
|
||||
1
debian/domcheck.supercheck.cron.d
vendored
Normal file
1
debian/domcheck.supercheck.cron.d
vendored
Normal file
@@ -0,0 +1 @@
|
||||
45 20 * * * root /usr/sbin/supercheck
|
||||
1
debian/install
vendored
1
debian/install
vendored
@@ -1,2 +1,3 @@
|
||||
supercheck /usr/sbin
|
||||
check /usr/sbin
|
||||
check.conf /etc
|
||||
|
||||
7
supercheck
Executable file
7
supercheck
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f "/tmp/check.heartbeat" ] || [ `stat -c "%Y" "/tmp/check.heartbeat"` -lt `date -d '12 hours ago' '+%s'` ]; then
|
||||
echo "### Check est désactivé ! ###"
|
||||
echo "Pour supprimer cet avertissement, commenter la ligne dans le fichier "
|
||||
echo "/etc/cron.d/supercheck"
|
||||
fi
|
||||
Reference in New Issue
Block a user