Skip to content

Commit

Permalink
Merge pull request #4 from h4ck3rm1k3/master
Browse files Browse the repository at this point in the history
format error
  • Loading branch information
pengyao committed Jan 8, 2015
2 parents 6b71578 + 360f673 commit cb4cf2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion salt/zabbix/files/etc/zabbix/api/add_monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import yaml

from zabbix.zapi import *
from zabbix.zapi import ZabbixAPI

def _config(config_file):
'''get config'''
Expand Down Expand Up @@ -80,7 +81,7 @@ def _create_host(api_obj, hostname, hostip, group_id):
print "Host(%s) create success" %(hostname)
hostid = host_status["hostids"][0]
else:
sys.stderr.write("Hostgroup(%s) create failed, please connect administrator\n" %(group_name))
sys.stderr.write("Host(%s) create failed, please connect administrator\n" %(hostname))
exit(3)

return hostid
Expand Down

0 comments on commit cb4cf2f

Please sign in to comment.