Permalink
Browse files

Trivial fixes for check_apcupsd_ups graph template

  • Loading branch information...
1 parent 78f9a5d commit c3e8212910d26b09258d49db438609ee07c9f819 @atj atj committed May 25, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 pnptemplates/check_apcupsd_ups.php.in
@@ -64,11 +64,11 @@ foreach (array_values($this->DS) as $value) {
$i++;
break;
case 'timeleft':
- $opt[$i] = "--vertical-label 'Minutes' --slope-mode --type 'UPS Battery Time for $hostname'";
+ $opt[$i] = "--vertical-label 'Minutes' --slope-mode --title 'UPS Battery Time for $hostname'";
$def[$i] = rrd::def('timeleft', $value['RRDFILE'], $value['DS'], 'AVERAGE');
- $def[$i] = rrd::area('timeleft', '#3F0', 'Battery Remaining');
- $def[$i] = rrd::gprint('timeleft', array('LAST', 'AVERAGE', 'MAX'), '%6.1lfmins');
- $def[$i] = rrd::line1('timeleft', '#000#');
+ $def[$i] .= rrd::area('timeleft', '#3F0', 'Battery Remaining');
+ $def[$i] .= rrd::gprint('timeleft', array('LAST', 'AVERAGE', 'MAX'), '%6.1lfmins');
+ $def[$i] .= rrd::line1('timeleft', '#000');
$i++;
break;
}

0 comments on commit c3e8212

Please sign in to comment.