In Zabbix 2 there are added new interface, if you have hosts imported from old Zabbix, they might not to show snmp data because you have to add snmp interface. So the whole point was to add ip adress in interface 2 ASAP to a lot of hosts.
The problem was, on the new Zabbix when smbdy wanted to start snmp management. First on the old Zabbix choose the template with snmp items to monitor in the Configuration>Templates>Items. See the picture below.
Next, add hosts to that template.
All would be ok but we had about 600 routers to monitor. Normal process would be- to take xml file and add some interface type2
<interfaces>
<interface>
<default>1</default>
<type>2</type>
<useip>1</useip>
<ip>172.31.128.181</ip>
<dns/>
<port>161</port>
<interface_ref>if2</interface_ref>
</interface>
<interface>
<default>1</default>
<type>1</type>
<useip>1</useip>
<ip>172.31.128.181</ip>
<dns/>
<port>161</port>
<interface_ref>if1</interface_ref>
</interface>
</interfaces>
Unfortunately you have to change ip address manually by every host, so we needed something faster.The workaround is- add snmp monitoring in old Zabbix server, export hosts and import them to new Zabbix, vuala snmp interface appears magically activated. Configuration>Hosts>Select group>Select hosts>Export hosts. See the picture.
Dont forget to erease hosts from new Zabbix prior to import them again. So the whole process take approximately 40 minutes. I have read rumors about request of new features, hope interface were activated via host group properties.
Nav komentāru:
Ierakstīt komentāru