Module: check_mk
Branch: master
Commit: 02bb96592f8e71db43e06a63671d23fbce8da008
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02bb96592f8e71…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 3 10:43:15 2016 +0100
Remove bogus unused debug function in prediction.py
---
modules/prediction.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/prediction.py b/modules/prediction.py
index 0101b99..80b84fa 100644
--- a/modules/prediction.py
+++ b/modules/prediction.py
@@ -29,9 +29,6 @@
# Export data from an RRD file. This requires an up-to-date
# version of the rrdtools.
-def debug(x):
- import pprint ; pprint.pprint(x)
-
def rrd_export(filename, ds, cf, fromtime, untiltime, rrdcached=None):
# rrdtool xport --json -s 1361554418 -e 1361640814 --step 60
DEF:x=/omd/sites/heute/X.rrd:1:AVERAGE XPORT:x:HIRNI
cmd = "rrdtool xport --json -s %d -e %d --step 60 " % (fromtime,
untiltime)
@@ -64,6 +61,7 @@ def rrd_export(filename, ds, cf, fromtime, untiltime, rrdcached=None):
return data["meta"]["step"], [ x[0] for x in
data["data"] ]
+
def find_ds_in_pnp_xmlfile(xml_file, varname):
ds = None
name = None
@@ -83,6 +81,7 @@ def find_ds_in_pnp_xmlfile(xml_file, varname):
ds = None
name = None
+
def get_rrd_data(hostname, service_description, varname, cf, fromtime, untiltime):
global rrdcached_socket
rrd_base = "%s/%s/%s" % (rrd_path, pnp_cleanup(hostname),
@@ -110,6 +109,7 @@ def get_rrd_data(hostname, service_description, varname, cf, fromtime,
untiltime
rrdcached_socket = omd_root + "/tmp/run/rrdcached.sock"
return rrd_export(rrd_file, ds, cf, fromtime, untiltime, rrdcached_socket)
+
daynames = [ "monday", "tuesday", "wednesday",
"thursday",
"friday", "saturday", "sunday"]