Additional scripts for Zabbix agent on Linux to discover and monitor several services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
237 B

#!/usr/bin/perl -w
use JSON;
use Zabbix::Agent::Addons::UPS;
my $json;
@{$json->{data}} = ();
foreach my $ups (Zabbix::Agent::Addons::UPS::list_ups()){
push @{$json->{data}}, {"{#UPSNAME}" => $ups};
}
print to_json($json);
exit(0);