
Zabbix-api problem
By:
Hertell on
Jul 10th, 2012 | syntax:
Perl | size: 1.09 KB | hits: 22 | expires: Never
my $appid = $zabbix->query(method => 'application.get',
params => {
filter => {
name => $appname,
hosts => [ 10096 ],
},
output => 'extend',
}
);
print Dumper $appid;
$VAR1 = [
{
'hosts' => [
{
'hostid' => '10096'
}
],
'templateid' => '0',
'name' => 'App Foo Live',
'applicationid' => '706'
},
{
'hosts' => [
{
'hostid' => '10095'
}
],
'templateid' => '0',
'name' => 'App Foo Live',
'applicationid' => '713'
}
];