From 0f4502982728af13e5b1ba12b470d2c76d776972 Mon Sep 17 00:00:00 2001 From: Rob White Date: Thu, 22 Jan 2015 11:01:33 +1100 Subject: [PATCH] Changed status() to be case-sensitive of process --- monitoring/monit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/monit.py b/monitoring/monit.py index 558f1e696f2..b1c1b9453cd 100644 --- a/monitoring/monit.py +++ b/monitoring/monit.py @@ -75,8 +75,8 @@ def main(): # Sample output lines: # Process 'name' Running # Process 'name' Running - restart pending - parts = line.lower().split() - if len(parts) > 2 and parts[0] == 'process' and parts[1] == "'%s'" % name: + parts = line.split() + if len(parts) > 2 and parts[0] == 'Process' and parts[1] == "'%s'" % name: return ' '.join(parts[2:]) else: return ''