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)