## Config for snmpgeneric
#
#  Ed Landa  (elanda@comstar.net)  May 1999
#
###
# HOST IP[:PORT] SNMP-OID  VARNAME COMMUNITY WARN ERROR CRITICAL [COMP]
#
# If OID starts with a plus, then we will walk that OID and add up values that
# are returned from the COMP evalution.
#
# COMP must not have any spaces in it.  Otherwise it is a standard PERL
# expression the result of which is added to the total to compare against
# the threshold.  The character '*' is replaced with the current value coming
# off the tree we are walking.
#
####

## Show Portmasters that have recently rebooted
pm-atl-2 207.15.208.16 system.sysUpTime.0 Uptime mycommunity 240000 120000 60000

## Error when we don't have enough modems available
# This config line will walk the tree on a Livingston Portmaster that holds
# the status of modems. Total up the modems that are in a state of 2/3/4/7
# (note COMP 1< && <5 || ==7). Use this regex value to compare against the
# thresholds.
pm-atl-2 207.15.208.16 +.1.3.6.1.4.1.307.3.2.3.1.1.3  MdmStat  mycommunity  32		31		31 (((1<*)&&(*<5))||(*==7))

# pm-atl-1 10.10.10.10 +.1.3.6.1.4.1.307.3.2.1.1.1.8 PortsSvc public  46 46 46 *!=6
#
# This will walk the Portmaster channel status tree and total all the ports
# that are not out-of-service (6).  If this number of good ports goes below
# the thresholds, then alarm.

# Monitor the number of channels in-service for each Portmaster
#
## Name	Address  		OID										OID-Name		Community	Warning 	Error	Critical [COMP]
##
pm-atl-2 207.15.208.16 +.1.3.6.1.4.1.307.3.2.1.1.1.8 PortsSvc mycommunity 23 22 22 *!=6
pm-atl-2 207.15.208.16 +.1.3.6.1.4.1.307.3.2.3.1.1.3  MdmStat  mycommunity 32		31		31 (((1<*)&&(*<5))||(*==7))



# Monitor the T1 line status on the Portmasters
#
## Name	Address  		OID										OID-Name		Community	Warning 	Error	Critical [COMP]
##

pm-atl-5	207.15.208.23	.1.3.6.1.4.1.307.3.2.2.1.1.4.1	Line0Stat	mycommunity				2		2
pm-atl-5	207.15.208.23	.1.3.6.1.4.1.307.3.2.2.1.1.4.2	Line1Stat	mycommunity				2		2

