Hello everyone!
I need help from you guys! I would like to have some simple script (python like...) which i can put on my server and which would be used to add hosts into zabbix.
For example, i would like to have script which would gather data from local page with simple HTML boxes for hostname (which is same as dns name) and ip address. This script would based on first 3 letters of hostname create HOST in zabbix with hostname, dns name, ip address and would put that host to specific host group and template (groups and theri matching templates have same names also).
So let me give you example.
Hostname: BDRTEST.dns.com
IP address: 10.10.1.1
When I click submit script creates host with SNMP enabled, and host/dns name BDRTEST.dns.com, ip add 10.10.1.1, and puts host in HOST group and template "1. Border Routers"
Another host:
Hostname: PERTEST.dns.com
IP address: 172.27.11.1
When I click submit script creates host with SNMP enabled, and host/dns name PERTEST.dns.com, ip add 172.27.11.1, and puts host in HOST group and template "2. PE Routers"
I am very weak with scripting languages and with zabbix API, so it would be great if any1 already made something similar and share that with us!
I need help from you guys! I would like to have some simple script (python like...) which i can put on my server and which would be used to add hosts into zabbix.
For example, i would like to have script which would gather data from local page with simple HTML boxes for hostname (which is same as dns name) and ip address. This script would based on first 3 letters of hostname create HOST in zabbix with hostname, dns name, ip address and would put that host to specific host group and template (groups and theri matching templates have same names also).
So let me give you example.
Hostname: BDRTEST.dns.com
IP address: 10.10.1.1
When I click submit script creates host with SNMP enabled, and host/dns name BDRTEST.dns.com, ip add 10.10.1.1, and puts host in HOST group and template "1. Border Routers"
Another host:
Hostname: PERTEST.dns.com
IP address: 172.27.11.1
When I click submit script creates host with SNMP enabled, and host/dns name PERTEST.dns.com, ip add 172.27.11.1, and puts host in HOST group and template "2. PE Routers"
I am very weak with scripting languages and with zabbix API, so it would be great if any1 already made something similar and share that with us!