1
0
mirror of https://github.com/opinkerfi/nagios-plugins.git synced 2024-11-05 01:53:44 +01:00

check_rhcs now supports vm's as services

This commit is contained in:
Pall Sigurdsson 2011-10-11 14:46:59 +00:00
parent 2b65fa6aa4
commit 27fb3773fc

View File

@ -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