mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
check_rhcs now supports vm's as services
This commit is contained in:
parent
2b65fa6aa4
commit
27fb3773fc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user