Mojo::Zabbix is a simple perl wrapper of Zabbix API. we build only authentication and request methods and few helper methods to simplify calling methods such as create/get/update/delete/exists. Mojo::Zabix - ������zabbix api������������������������������������������perl������������ ������������zabbix������������������������������������������������������������create/get /update/delete/exists������������������������������������������Mojo::useragent��������� ���������Mojo:DOM������������������������������ The more details ,please visting the Zabbix API documentation pages . - [Zabbix API Wiki](http://www.zabbix.org/) - [Zabbix 1.8 API](http://www.zabbix.com/documentation/1.8/api) - [Zabbix 2.0 API](http://www.zabbix.com/documentation/2.0/) - [Zabbix 2.2 API](https://www.zabbix.com/documentation/2.2/) - [Zabbix 3.0 API](https://www.zabbix.com/documentation/3.0/) - [Zabbix 3.2 API](https://www.zabbix.com/documentation/3.2/) - [Zabbix 3.4 API](https://www.zabbix.com/documentation/3.4/) ### Test The module is compatible and tested with Zabbix less version 3.0 ���������������������3.0���������������������������3.0��������������������������������������������������������������� ### Example use Mojo::Zabbix; my $z = Net::Zabbix->new( url => "https://server/zabbix/", username => 'user', password => 'pass', verify_ssl => 0, debug => 1, trace => 0, ); my $r = $z->get("host", { filter => undef, search => { host => "test", }, } ); #### A example for print the zabbix api version ������zabbix���������������. print $z->get("apiinfo.version",)->{result},"\n"; #### A example for get the new warn message of triggerid ������������������������. print getTriggers($z); sub getTriggers { my $z=shift; my $ysterday=localtime(time()-24*3600); my $r = $z->get("trigger", { filter => {value => 1, lastChangeSince => "$ysterday", 'withUnacknowledgedEvents'=>1, }, output => ["","triggerid","description","priority"], sortfield =>"priority", sortorder => "DESC", expandData=>"host", }, ); my $result; my $host=$r->{'result'}; for (@$host){ $result.="$_->{'host'}:".$_->{'description'}."\n" ; } return $result; } The result all ������������: xxx.xxx.xx.55: {HOST.CONN}������������84������down xxx.xxx.xx.55: {HOST.CONN}������������81������down xxx.xxx.xx.55: {HOST.CONN}������������82������down xxx.xxx.xx.55.9: {HOST.CONN}������������80������down xxx.xxx.xx.12: {HOST.NAME} ��������������������������������������� xxx.xxx.xx.124: ������sdb���������������95%���������������{ITEM.LASTVALUE} xxx.xxx.xx.44: ������sdb���������������95%���������������{ITEM.LASTVALUE} xxx.xxx.xx.45: ������sdb���������������95%���������������{ITEM.LASTVALUE} xxx.xxx.xx.33: ������sdb���������������95%���������������{ITEM.LASTVALUE} xxx.xxx.xx.56: ������sda���������������95%���������������{ITEM.LASTVALUE} xxx.xxx.xx.57: ������sda���������������95%���������������{ITEM.LASTVALUE} wo can add the program to crontab and gain the result for mail or some Im tool. ������������������cron������������������������������������������������IM���������qq������������ ������������webqq���https://github.com/sjdy521/Mojo-Webqq������������,������ ������������������������ ���������������������������������������Mojo::Zabbix:APP ��������������������������������� ��������������� ### Git repo [github](https://github.com/bollwarm/Mojo-Zabbix) ### AUTHOR [orange] (linzhe@ijz.me),[blog](http://ijz.me) ### License This software is copyright (c) 2016 by oragnge. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself..