Cover V07, I09
Article
Listing 1
Sidebar 1

sep98.tar


Listing 1: bbwarn.cfg


# bbwarn.cfg configuration matrix
#
# format:
#       hosts,exhosts,services,exservices,day,time,recipients
#
# hosts: match on these hosts (* is wildcard for all hosts)
# exhosts: exclude these hosts
# services: match on these services (* is wildcard for all hosts)
# exservices: exclude these services
# day: 0-6 (sunday-saturday)
# time: 0000-2359
# recipients: email address, numeric pager, sms number
#
# e.g.
# host1 host2,,conn disk,,2,0600-2000,mailuser@mailhost 999-9999
# Check for host1 and host2 for conn and disk services on tuesday
#        between 6am-8pm and notify by mail only to mailuser and
#        page 999-9999
#
# *,exhost3,*,disk,0-6,0000-2359,999-9999
# for all hosts except exhost3 check all services but disk all
#        week and all day, no mail but page 999-9999
#
# *,exhost3,*,disk,0-3 4 5-6,0000-1159 1200-2359,sms-999-9999
# Same as previous one but with different format (date,time) and
#       SMS message
#
# The ignforall token is used to discard all hosts.service that
#       matches the egrep regexp.
# N.B. it looks for exact matches
# e.g.
# ignforall: .*.cpu|.*.msgs|host11.*
# Skip if host.service matches *cpu or *msgs or host11*
#
*,,*,disk cpu,*,*,boss@localhost
nyc*,,disk cpu,,1-5,0600-1800,robert@localhost
*,nyc*,disk cpu,,1-5,0600-1800,andre@localhost
# EOF