# # Mon configuration file # Written by Felix Enescu # # History: # # 14-01-2001 FE First draft # 16-01-2001 FE Added upalerts, reorder watches, added some comments # 31-01-2001 FE Added defines, moved defines into defs.m4 # # dnl dnl ######################################################################## dnl # This file is meant to be processed with m4 # dnl ######################################################################## dnl dnl # dnl # m4 macro definitions dnl # dnl define(_DIR_, `/usr/local/mon')dnl define(_FILE_LOG_DIR_, `_DIR_/file-log.d')dnl dnl dnl # dnl # useful time periods dnl # dnl define(_FILE_, `_TST_/log.d')dnl define(_WEEKDAY_, `wd {Mon-Fri}')dnl define(_WEEKEND_, `wd {Sat-Sun}')dnl define(_ANYTIME_, `wd {Sun-Sat}')dnl define(_OFF_HOURS_, `wd {Mon-Fri} hr {10pm-7am}, wd {Sat Sun}')dnl define(_WORK_HOURS_, `wd {Mon-Fri} hr {7am-10pm}')dnl define(_PAGING_HOURS_, `_WORK_HOURS_')dnl dnl dnl # dnl # useful pager aliases dnl # dnl define(_MIS_PAGER_, `joe bob zoomzip')dnl dnl dnl # dnl # useful mail aliases dnl # dnl define(_NOC_EMAIL_, `noc@rpb.com')dnl define(_LAN_EMAIL_, `lan@rpb.com')dnl define(_MIS_EMAIL_, `mis@rpb.com')dnl define(_PRINTER_EMAIL_, `printer@rpb.com')dnl dnl dnl dnl # dnl # -------------------------actual config begins here------------------------- dnl # # # "mon.cf" configuration for "mon". # # # # # # global options # alertdir = _DIR_/alert.d mondir = _DIR_/mon.d statedir = _DIR_/state.d logdir = _DIR_/log.d cfbasedir = _DIR_/etc dtlogfile = _DIR_/log.d/dtlog.log historicfile = _DIR_/state.d/hist.log historictime = 30d dtlogging = yes maxprocs = 20 histlength = 100 randstart = 60s # # define groups of hosts to monitor # Don't forget the blank lines between them or you lose. # hostgroup hgRPB_Core_Switch RPB_SW_802_201 hostgroup hgRPB_Cisco RPB_Cisco hostgroup hgVGA_Cisco VGA_cisco hostgroup hgPEM_Cisco PEM_Cisco hostgroup hgRPB_Switches RPB_SW_802_200 RPB_SW_8thFloor_202 RPB_SW_8thFloor_203 RPB_SW_8thFloor_204 RPB_SW_5thFloor_205 RPB_SW_5thFloor_207 RPB_SW_5thFloor_210 RPB_SW_2ndFloor_206 RPB_SW_2ndFloor_208 RPB_SW_2ndFloor_209 hostgroup hgRompetrol1 Rompetrol1 hostgroup hgRompetrol2 Rompetrol2 hostgroup hgVega3 Vega3 hostgroup hgPetromidia1 Petromidia1 include(_DIR_/etc/defs.m4) # ============================== # # RPB Entries # define(`_LOCATION_', `RPB')dnl # # This is core switch - connects servers and router # _SWITCH_(_LOCATION_, hgRPB_Core_Switch, N) # # RPB Router # _ROUTER_(_LOCATION_, hgRPB_Cisco, hgRPB_Core_Switch:ping) # # RPB LAN Switches # _SWITCH_(_LOCATION_, hgRPB_Switches, hgRPB_Core_Switch:ping) # # RPB Rompetrol1 server # _EXCHANGE_(_LOCATION_, hgRompetrol1, hgRPB_Core_Switch:ping, Y, Y) # # RPB Rompetrol2 server # watch hgRompetrol2 service ping description RPB Rompetrol2 Server interval 3m monitor fping.monitor depend hgRPB_Core_Switch:ping period _ANYTIME_ alert mail.alert _NOC_EMAIL_ alertevery 45m upalert mail.alert _NOC_EMAIL_ period LOGFILE: _ANYTIME_ alert file.alert -d _FILE_LOG_DIR_ rompetrol2.log ;; upalert file.alert -d _FILE_LOG_DIR_ rompetrol2.log ;; # ============================== # # VGA Entries # define(`_LOCATION_', `VGA')dnl # # VGA Router # _ROUTER_(_LOCATION_, hgVGA_Cisco, hgRPB_Cisco:ping) # # VGA Vega3 server # _EXCHANGE_(_LOCATION_, hgVega3, hgVGA_Cisco:ping, N, N) # ============================== # # PEM Entries # define(`_LOCATION_', `PEM')dnl # # PEM Router # _ROUTER_(_LOCATION_, hgPEM_Cisco, hgRPB_Cisco:ping) # # PEM Petromdia1 server # _EXCHANGE_(_LOCATION_, hgPetromidia1, hgPEM_Cisco:ping, Y, Y)