# rrds/apcupsbatteryreplace - does the battery need replacing?
# CVS $Id: apcupsbatteryreplace,v 1.4 2003/03/20 18:09:45 remstats Exp $
# from remstats version @@VERSION@@
# Copyright 2003 by Thomas Erskine <@@AUTHOR@@>

source	snmp
step	300

data	replace=apcupsadvbatteryreplaceindicator GAUGE:1200:0:2

archives	day-avg week-avg month-avg 3month-avg year-avg
times	day yesterday week month 3month year
alert	replace < 2 2 2
oid APCUpsAdvBatteryReplaceIndicator
currentvalue REPLACEBATTERY &apcups_battery_replace_indicator(replace)

# Yes we have no graphs.  This only triggers an alert.

