X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=nagios%2Fplc_to_nagios.py;h=edc4b965b18292eabafb26c36ed94b9587864bb4;hb=976e2654ef6da1dff75c0216338d4c9863e42a73;hp=2613e88c4f522004cc07de1fdd3d9ba50302d3e8;hpb=b409ce051ff5a7180f50bd1f359107acfebd5671;p=monitor.git diff --git a/nagios/plc_to_nagios.py b/nagios/plc_to_nagios.py index 2613e88..edc4b96 100755 --- a/nagios/plc_to_nagios.py +++ b/nagios/plc_to_nagios.py @@ -65,7 +65,7 @@ for obj in globalhost + globalservices: #plc_hosts = [ PLC_MONITOR_HOST, PLC_WWW_HOST, PLC_BOOT_HOST, PLC_PLANETFLOW_HOST, ] plc_hosts = [ PLC_WWW_HOST, PLC_BOOT_HOST, ] -print HostGroup(hostgroup_name="plcservers", alias="plcservers").toString() +print HostGroup(hostgroup_name="allplcservers", alias="allplcservers").toString() hostname_list = [] for host in plc_hosts: @@ -76,7 +76,7 @@ for host in plc_hosts: host_name="%s" % host, alias=host, address=ip, - hostgroups="plcservers") + hostgroups="allplcservers") print h.toString()