Commit 3b0c79df authored by Justin's avatar Justin

promise/plugin: Updated config parameter for check_server_cpu_load

parent d7a428c7
...@@ -12,7 +12,7 @@ class RunPromise(GenericPromise): ...@@ -12,7 +12,7 @@ class RunPromise(GenericPromise):
def __init__(self, config): def __init__(self, config):
super(RunPromise, self).__init__(config) super(RunPromise, self).__init__(config)
# test load every 3 minutes # test load every 3 minutes
self.setPeriodicity(minute=3) self.setPeriodicity(float(self.getConfig('frequency', 3)))
def checkCPULoad(self, tolerance=2.2): def checkCPULoad(self, tolerance=2.2):
# tolerance=1.5 => accept CPU load up to 1.5 =150% # tolerance=1.5 => accept CPU load up to 1.5 =150%
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment