########################################################################## # 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 .= <$router_name Battery Capacity & Load
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description:$html_sysdescr
Resource:UPS Capacity & Load
ECHO # # Temperature (celsius) and humidity percentage. # my $target_name = $router_name . "-temp"; $head_lines .= <$router_name Battery Temperature
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description:$html_sysdescr
Resource:UPS Temperature
ECHO # # Input & Output frequency. # my $target_name = $router_name . "-iofreq"; $head_lines .= <$router_name Input & Output Frequency
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description:$html_sysdescr
Resource:UPS Input & Output Frequency
ECHO # # Minimum and Maximum AC line voltage. # my $target_name = $router_name . "-minmaxline"; $head_lines .= <$router_name Minimum & Maximum line voltage
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description:$html_sysdescr
Resource:Minimum & Maximum line voltage
ECHO # # Last-reason-on-battery # my $target_name = $router_name . "-lrob"; $head_lines .= <$router_name Last Reason On Battery
System:$router_name in $html_syslocation
Maintainer:$html_syscontact
Description:LROB Values
1) No Transfer
2) High Line Voltage
3) 40% - 100% Line Power
4) 0% - 40% Line Power
5) <5 Sec Shallow Voltage Sag
6) <5 Sec Deep Voltage Sag
7) <5 Sec Small Voltage Spike
8) <5 Sec Large Voltage Spike
9) UPS Self Test
10) Significant Voltage Delta
Resource:Last Reason On Battery
ECHO