Fix disco_nu_ups when there's no upsd daemon running

tags/zabbix-agent-addons-0.2.20-1 0.2.15_el5
Daniel Berteaud 8 years ago
parent c99874dd2d
commit 6416d60cab
  1. 2
      lib/Zabbix/Agent/Addons/UPS.pm

@ -3,6 +3,8 @@ package Zabbix::Agent::Addons::UPS;
use warnings;
use strict;
use File::Which;
use File::Spec;
open STDERR, '>', File::Spec->devnull() or die "could not open STDERR: $!\n";
# List configured UPS (only nut is supported)
sub list_ups {

Loading…
Cancel
Save