From 27fb3773fc53e38505ad0461cde9f4b7e927be39 Mon Sep 17 00:00:00 2001 From: Pall Sigurdsson Date: Tue, 11 Oct 2011 14:46:59 +0000 Subject: [PATCH] check_rhcs now supports vm's as services --- check_rhcs/trunk/check_rhcs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/check_rhcs/trunk/check_rhcs b/check_rhcs/trunk/check_rhcs index 71e6498..dd29676 100644 --- a/check_rhcs/trunk/check_rhcs +++ b/check_rhcs/trunk/check_rhcs @@ -95,9 +95,8 @@ def getServiceState(dom, service): groupList = dom.getElementsByTagName('group') hostname = socket.gethostname() serviceState = {} - for group in groupList: - if group.attributes['name'].value == "service:"+service: + if group.attributes['name'].value in (service,"service:"+service,"vm:"+service): serviceState['owner'] = group.attributes['owner'].value serviceState['state'] = group.attributes['state_str'].value