:Cli::Monitor;
use strict;
use warnings;
use v5.10;
our $VERSION = '0.01';
use Zabbix::API;
use JSON;
use Term::ANSIColor;
use MooseX::App::Simple qw(Color ConfigHome);
use Data::Dumper;
$Data::Du
;
say <<EOF;
~/.zabmon/config.yaml
---
user: api_user
api_url: http://your.zabbix.url/api_jsonrpc.php
password: imal33thaxx0r
EOF
exit 1;
}
my $zabbix = Zabbix::API->new(
}
}
);
# Returns the data as a JSON string in _content,
# get it into a useful data structure:
my $content = from_json($resp->{_content});
return $content->{result};