Fix disco_nu_ups when there's no upsd daemon running

This commit is contained in:
Daniel Berteaud 2016-11-24 16:25:49 +01:00
parent c99874dd2d
commit 6416d60cab

View File

@ -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 {