Displaying 1 result from an estimated 1 matches for "bvolts".
Did you mean:
volts
2010 Sep 19
0
A logging/graphing UPS client using rrdtool and UPS::Nut
...}
}
else
{
upswatch();
}
}
}
else
{
pod2usage(-message => $desc,
-exitstatus => -1,
-verbose => 0);
}
exit (0);
sub upswatch
{
my ($ups, $date, $vin, $vout, $iin, $iout,
$bcharge, $bvolts, $load, $graphctr,
$uid, $gid);
set_defaults();
open (LOG, ">>$logfile") unless ($opts{foreground});
select((select(LOG), $| = 1)[0]);
(undef,undef,$uid,$gid) = getpwnam($runuser);
create_files($uid,$gid);
POSIX::setgid($gid) || upslog("Coul...