Skip to content

Commit

Permalink
zabbix-vsphere-import: Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Aug 21, 2014
1 parent 59d9542 commit 5e5c7cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/zabbix/zabbix-vsphere-import
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class ZabbixConnector(object):

# Create Zabbix host groups for each vSphere cluster
for group in missing_groups:
logging.info("[vSphere ClusterComputeResource] Creating Zabbix hostgroup '%s'", group)
logging.info("[vSphere ClusterComputeResource] Creating Zabbix host group '%s'", group)
self.create_host_group(name=group)

logging.info('[vSphere ClusterComputeResource] Import of objects completed')
Expand Down Expand Up @@ -512,7 +512,8 @@ class ZabbixConnector(object):
for group in self.options['zabbix'][name]['groups']:
group_id = self.get_host_group_by_name(group)
if not group_id:
logging.warning("Unable to find Zabbix group '%s'", group)
logging.warning("Unable to find Zabbix host group '%s'", group)
logging.info("Creating Zabbix host group '%s'", group)
result = self.create_host_group(name=group)
group_id = result[0]
groups.append({ 'groupid': group_id })
Expand Down

0 comments on commit 5e5c7cd

Please sign in to comment.