Showing
1 changed file
with
5 additions
and
0 deletions
@@ -115,6 +115,11 @@ public class ZabbixIpTask implements Callable { | @@ -115,6 +115,11 @@ public class ZabbixIpTask implements Callable { | ||
115 | 115 | ||
116 | Integer id = Constants.HOSTIP_TO_IDS.get(ip); | 116 | Integer id = Constants.HOSTIP_TO_IDS.get(ip); |
117 | 117 | ||
118 | + //未配置zabbix,则放过 | ||
119 | + if (null == id) { | ||
120 | + continue; | ||
121 | + } | ||
122 | + | ||
118 | if (Constants.HOSTID_TO_ITEMS.containsKey(id)) { | 123 | if (Constants.HOSTID_TO_ITEMS.containsKey(id)) { |
119 | continue; | 124 | continue; |
120 | } | 125 | } |
-
Please register or login to post a comment