[checkmk-commits] Check_MK Git: check_mk: r

Mathias Kettner mk at mathias-kettner.de
Sun Aug 24 17:39:50 CEST 2014


Module: check_mk
Branch: master
Commit: dbc6717d96583e706043842d24c2449725bd005e
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dbc6717d96583e706043842d24c2449725bd005e

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Sun Aug 24 17:39:25 2014 +0200

r

---

 agents/plugins/plesk_backups |   12 ------------
 1 file changed, 12 deletions(-)

diff --git a/agents/plugins/plesk_backups b/agents/plugins/plesk_backups
index 021d85d..b589624 100755
--- a/agents/plugins/plesk_backups
+++ b/agents/plugins/plesk_backups
@@ -30,20 +30,9 @@
 # <<<plesk_backups>>>
 # <domain> <age-of-newest-file> <size-of-newest-file> <total-size>
 
-# Cache the result for 1 hour by default
-cache_seconds = 60 * 60
-# The cache file to use
-cache_file = '/tmp/plesk_backups.cache'
-
 import MySQLdb, sys, datetime, time, os
 from ftplib import FTP
 
-# use the cache?
-if os.path.exists(cache_file) \
-   and os.stat(cache_file).st_mtime > time.time() - cache_seconds:
-    print file(cache_file).read()
-    sys.exit(0)
-
 def connect():
     try:
         return MySQLdb.connect(
@@ -156,5 +145,4 @@ for domain, p in domains.iteritems():
         output.append('%s 2 %s' % (domain, e))
 
 # Write cache and output
-file(cache_file, 'w').write('\n'.join(output))
 print '\n'.join(output)



More information about the checkmk-commits mailing list