From d2c7f3004822f16578fdd6a5693b93fb970fc6b0 Mon Sep 17 00:00:00 2001 From: Cristobal Rosa Date: Fri, 5 Jul 2013 05:49:07 +0200 Subject: [PATCH 1/2] Fixed monit module. Ignore uppercase letters --- monitoring/monit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/monit b/monitoring/monit index 1219186d502..dc50ecbef48 100644 --- a/monitoring/monit +++ b/monitoring/monit @@ -87,7 +87,7 @@ def main(): module.exit_json(changed=False, name=name, state=state) rc, out, err = module.run_command('%s summary | grep %s' % (MONIT, name)) - running = 'Running' in out + running = 'Running'.lower() in out.lower() if running and (state == 'started' or state == 'monitored'): module.exit_json(changed=False, name=name, state=state) From 8304d5d060c9fcbaaffafbde2de3b27ba9837e0c Mon Sep 17 00:00:00 2001 From: Cristobal Rosa Date: Sat, 6 Jul 2013 22:12:30 +0200 Subject: [PATCH 2/2] Remove unnecesary call --- monitoring/monit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/monit b/monitoring/monit index dc50ecbef48..46cd2830e08 100644 --- a/monitoring/monit +++ b/monitoring/monit @@ -87,7 +87,7 @@ def main(): module.exit_json(changed=False, name=name, state=state) rc, out, err = module.run_command('%s summary | grep %s' % (MONIT, name)) - running = 'Running'.lower() in out.lower() + running = 'running' in out.lower() if running and (state == 'started' or state == 'monitored'): module.exit_json(changed=False, name=name, state=state)