Does anyone have a good template file for APC UPS?  I have the below file, however do not know enough about the routers2.cgi options, etc. to make this work properly:
##########################################################################
# host-apc.template v20030106
#
# MRTG template for generating configs from an APC-9606 smartups card.
# Usage: cfgmaker --host-template=host-apc.template community@device
#
# I've walked just about the entire (documented) 9606 mib looking for
# interesting things. However, If you have additional OIDs that you 
# think are worth polling, please send them to me - 
gvolk@gvolk.com - 
# and I'll add them to this template.
#
# An example of what this data looks like is available under the
# APC tree-menu selection at 
http://mrtg.gvolk.com #
# Known caveats:
#
# The humidity variable is only valid for the MeasureUPS so I didn't
# bother with it.
#
# The Output Current (amperes) variable does not work on the 9606, it
# always returns zero, so I omitted the config for it.
# 
# The 'Directory[targetname]: $router_name' appears in every target
# whether or not you specify --subdirs=HOSTNAME on the cfgmaker 
# command line. This is because of my lack of perl knowledge. I needed
# the Directory directive, but couldn't figure out how to get it to
# obey the --subdirs command line option so I hard-coded it into each
# target template.
#
#
# This template is available under the GNU GPL. For more information, please
# see 
http://www.gnu.org/copyleft/gpl.html.
#
#
# Version History:
# 20020724 - Initial Release
# 20030106 - Added GPL Licensing Note
#
#
# Battery charge capacity percentage, and ups load percentage.
#
my $target_name = $router_name . "-capload";
$head_lines .= <<ECHO;
ECHO
$target_lines .= <<ECHO;
YLegend[$router_name-capload]: Percent
ShortLegend[$target_name]: %
Legend1[$router_name-capload]: Battery Capacity
Legend2[$router_name-capload]: Load
Legend3[$router_name-capload]: Max Capacity
Legend4[$router_name-capload]: Max Load
LegendI[$router_name-capload]: Battery Capacity
LegendO[$router_name-capload]: Load
WithPeak[$router_name-capload]: ywm
Unscaled[$router_name-capload]: dwmy
MaxBytes[$router_name-capload]: 110
Options[$router_name-capload]: growright, gauge, nopercent
Title[$router_name-capload]: $router_name Battery Capacity & Load
Target[$router_name-capload]: 1.3.6.1.4.1.318.1.1.1.2.2.1.0&1.3.6.1.4.1.318.1.1.1.4.2.3.0:$router_connect
PageTop[$router_name-capload]: <H1>$router_name Battery Capacity & Load</H1>
  <TABLE>
    <TR><TD>System:</TD><TD>$router_name in $html_syslocation</TD></TR>
    <TR><TD>Maintainer:</TD><TD>$html_syscontact</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>$html_sysdescr</TD></TR>
    <TR><TD>Resource:</TD><TD>UPS Capacity & Load</TD></TR>
  </TABLE>
ECHO
#
# Temperature (celsius) and humidity percentage.
#
my $target_name = $router_name . "-temp";
$head_lines .= <<ECHO;
ECHO
$target_lines .= <<ECHO;
YLegend[$router_name-temp]: deg C
ShortLegend[$router_name-temp]: deg C
Legend1[$router_name-temp]: Battery Temperature (celsius)
Legend2[$router_name-temp]: Battery Temperature (celsius)
Legend3[$router_name-temp]: Max Battery Temperature
Legend4[$router_name-temp]: Max Battery Temperature
LegendI[$router_name-temp]: Temperature
LegendO[$router_name-temp]: Temperature
WithPeak[$router_name-temp]: ywm
MaxBytes[$router_name-temp]: 150
Options[$router_name-temp]: growright, gauge, nopercent
Title[$router_name-temp]: $router_name Battery Temperature
Target[$router_name-temp]: 1.3.6.1.4.1.318.1.1.1.2.2.2.0&1.3.6.1.4.1.318.1.1.1.2.2.2.0:$router_connect
PageTop[$router_name-temp]: <H1>$router_name Battery Temperature</H1>
  <TABLE>
    <TR><TD>System:</TD><TD>$router_name in $html_syslocation</TD></TR>
    <TR><TD>Maintainer:</TD><TD>$html_syscontact</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>$html_sysdescr</TD></TR>
    <TR><TD>Resource:</TD><TD>UPS Temperature</TD></TR>
  </TABLE>
ECHO
#
# Input & Output frequency.
#
my $target_name = $router_name . "-iofreq";
$head_lines .= <<ECHO;
ECHO
$target_lines .= <<ECHO;
YLegend[$router_name-iofreq]: Hertz
ShortLegend[$router_name-iofreq]: Hz
Legend1[$router_name-iofreq]: Input Frequency
Legend2[$router_name-iofreq]: Output Frequency
Legend3[$router_name-iofreq]: Max Input Frequency
Legend4[$router_name-iofreq]: Max Output Frequency
LegendI[$router_name-iofreq]: Input Hz
LegendO[$router_name-iofreq]: Output Hz
WithPeak[$router_name-iofreq]: ywm
MaxBytes[$router_name-iofreq]: 100
Unscaled[$router_name-iofreq]: dwmy
Options[$router_name-iofreq]: growright, gauge, nopercent
Title[$router_name-iofreq]: $router_name Input & Output Frequency
Target[$router_name-iofreq]: 1.3.6.1.4.1.318.1.1.1.3.2.4.0&1.3.6.1.4.1.318.1.1.1.4.2.2.0:$router_connect
PageTop[$router_name-iofreq]: <H1>$router_name Input & Output Frequency</H1>
  <TABLE>
    <TR><TD>System:</TD><TD>$router_name in $html_syslocation</TD></TR>
    <TR><TD>Maintainer:</TD><TD>$html_syscontact</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>$html_sysdescr</TD></TR>
    <TR><TD>Resource:</TD><TD>UPS Input & Output Frequency</TD></TR>
  </TABLE>
ECHO
#
# Minimum and Maximum AC line voltage.
#
my $target_name = $router_name . "-minmaxline";
$head_lines .= <<ECHO;
ECHO
$target_lines .= <<ECHO;
YLegend[$router_name-minmaxline]: Volts AC
ShortLegend[$router_name-minmaxline]: VAC
Legend1[$router_name-minmaxline]: Minimum Line Voltage
Legend2[$router_name-minmaxline]: Maximum Line Voltage
Legend3[$router_name-minmaxline]: Minimum Line Voltage
Legend4[$router_name-minmaxline]: Maximum Line Voltage
LegendI[$router_name-minmaxline]: Min VAC
LegendO[$router_name-minmaxline]: Max VAC
WithPeak[$router_name-minmaxline]: ywm
MaxBytes[$router_name-minmaxline]: 500
Options[$router_name-minmaxline]: growright, gauge, nopercent
Title[$router_name-minmaxline]: $router_name Minimum & Maximum line voltage
Target[$router_name-minmaxline]: 1.3.6.1.4.1.318.1.1.1.3.2.3.0&1.3.6.1.4.1.318.1.1.1.3.2.2.0:$router_connect
PageTop[$router_name-minmaxline]: <H1>$router_name Minimum & Maximum line voltage</H1>
  <TABLE>
    <TR><TD>System:</TD><TD>$router_name in $html_syslocation</TD></TR>
    <TR><TD>Maintainer:</TD><TD>$html_syscontact</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>$html_sysdescr</TD></TR>
    <TR><TD>Resource:</TD><TD>Minimum & Maximum line voltage</TD></TR>
  </TABLE>
ECHO
#
# Last-reason-on-battery
#
my $target_name = $router_name . "-lrob";
$head_lines .= <<ECHO;
ECHO
$target_lines .= <<ECHO;
YLegend[$router_name-lrob]: Reason
ShortLegend[$router_name-lrob]:
Legend1[$router_name-lrob]: Last-Reason-On-Battery
Legend2[$router_name-lrob]: Last-Reason-On-Battery
Legend3[$router_name-lrob]: Last-Reason-On-Battery
Legend4[$router_name-lrob]: Last-Reason-On-Battery
LegendI[$router_name-lrob]: LROB
LegendO[$router_name-lrob]: LROB
WithPeak[$router_name-lrob]: ywm
MaxBytes[$router_name-lrob]: 11
Unscaled[$router_name-lrob]: dwmy
Options[$router_name-lrob]: growright, gauge, nopercent
Title[$router_name-lrob]: $router_name Last Reason On Battery
Target[$router_name-lrob]: 1.3.6.1.4.1.318.1.1.1.3.2.5.0&1.3.6.1.4.1.318.1.1.1.3.2.5.0:$router_connect
PageTop[$router_name-lrob]: <H1>$router_name Last Reason On Battery</H1>
  <TABLE>
    <TR><TD>System:</TD><TD>$router_name in $html_syslocation</TD></TR>
    <TR><TD>Maintainer:</TD><TD>$html_syscontact</TD></TR>
    <TR><TD VALIGN="top">Description:</TD><TD>LROB Values<BR>
				 	1) No Transfer<BR>
					2) High Line Voltage<BR>
					3) 40% - 100% Line Power<BR>
					4) 0% - 40% Line Power<BR>
					5) <5 Sec Shallow Voltage Sag<BR>
					6) <5 Sec Deep Voltage Sag<BR>
					7) <5 Sec Small Voltage Spike<BR>
					8) <5 Sec Large Voltage Spike<BR>
					9) UPS Self Test<BR>
				   10) Significant Voltage Delta</TD></TR>
    <TR><TD>Resource:</TD><TD>Last Reason On Battery</TD></TR>
  </TABLE>
ECHO
Any help would be greatly appreciated.