Simple perl script to access the JSON API Zabbix, use the methods of access and register, designed to deploy via puppet and register each server without monkey assistence ;D, the requirements are perl-JSON-XS on Fedora/RHEL5+ or install via CPAN: cpan JSON::XS
The Output :
Connecting Sucessfull to http://192.168.xxx.xx/zabbix/api_jsonrpc.php
Login Zabbix JSON API...
id session: 6a7b4582b9e35c1bbc81f02544bd0db1
Creating host on Zabbix...
Download it in github repository: https://github.com/k0k/Zabbix/blob/m...gister-host.pl
Review are welcome.
The Output :
Connecting Sucessfull to http://192.168.xxx.xx/zabbix/api_jsonrpc.php
Login Zabbix JSON API...
id session: 6a7b4582b9e35c1bbc81f02544bd0db1
Creating host on Zabbix...
Download it in github repository: https://github.com/k0k/Zabbix/blob/m...gister-host.pl
Review are welcome.
Comment