# pretty-printed mon config file

This report was generated at Tue Jan 23 16:49:19 2001.

Summary stats for this mon configuration file (global settings summary):

- Total hostgroups defined: 12
- Total unique services defined: 12, 22 services total
- Total alert scripts defined: 4, 35 alerts total (alert summary)
- Total monitor scripts defined: 11, 22 monitors total (monitor summary)
- Total unique hosts monitored: 26, 26 hosts total
- Average hosts per hostgroup: 2.2
- Average monitored services per hostgroup: 1.8

Brief Introduction to Time Period Syntax As Used By mon

Jump directly to hostgroups:

1. dialin <no hosts in group>
2. ftp (ftp)
3. hubs (cisco316t, hp800t, ssii10)
4. mailhost <no hosts in group>
5. netapps (f330, f540)
6. news <no hosts in group>
7. printers (hp5si, hp5c, hp750c)
8. routers (cisco7000, linuxrouter, agsplus)
9. serversbd1 (dns-yp1, foo1, bar1)
10. serversbd2 (dns-yp2, foo2, bar2, ola3)
11. workstations (blue, yellow, red, green, cornflower, violet)
12. wwwservers (www)

dialin Hostgroup [back to top]
Members: | <no hosts in group>
Monitored Services: | 555-1212 555-1213
Service details for service 555-1212: [back to dialin top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 60 minutes
| Monitor invoked: | `dialin.monitor.wrap -n 555-1212 -t 80 ;;`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 8 hours
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Upalert script 1 called: | mail.alert mis@domain.com
Service details for service 555-1213: [back to dialin top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 33 minutes
| Monitor invoked: | `dialin.monitor.wrap -n 555-1213 -t 80 ;;`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 8 hours
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Upalert script 1 called: | mail.alert mis@domain.com

ftp Hostgroup [back to top]
Members: | ftp
Monitored Services: | ftp
Service details for service ftp: [back to ftp top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 5 minutes
| Monitor invoked: | `ftp.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert

hubs Hostgroup [back to top]
Members: | cisco316t, hp800t, ssii10
Monitored Services: | ping
Service details for service ping: [back to hubs top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 1 minute
| Monitor invoked: | `fping.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 45 minutes
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: qpage.alert

mailhost Hostgroup [back to top]
Members: | <no hosts in group>
Monitored Services: | imap pop smtp telnet
Service details for service imap: [back to mailhost top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 10 minutes
| Monitor invoked: | `imap.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertafter: | 2 or more failures in 30 minutes
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: page.alert
Service details for service pop: [back to mailhost top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 10 minutes
| Monitor invoked: | `pop3.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertafter: | 2 or more failures in 30 minutes
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: page.alert
Service details for service smtp: [back to mailhost top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 10 minutes
| Monitor invoked: | `smtp.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertafter: | 2 or more failures in 30 minutes
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: page.alert
Service details for service telnet: [back to mailhost top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 10 minutes
| Monitor invoked: | `telnet.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertafter: | 2 or more failures in 30 minutes
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert

netapps Hostgroup [back to top]
Members: | f330, f540
Monitored Services: | freespace
Service details for service freespace: [back to netapps top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 15 minutes
| Monitor invoked: | `freespace.monitor /f330:5000 /f540:5000 ;;`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert

news Hostgroup [back to top]
Members: | <no hosts in group>
Monitored Services: | nntp ping
Service details for service nntp: [back to news top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 5 minutes
| Monitor invoked: | `nntp.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
Service details for service ping: [back to news top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 5 minutes
| Monitor invoked: | `fping.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert

printers Hostgroup [back to top]
Members: | hp5si, hp5c, hp750c
Monitored Services: | hpnp ping
Service details for service hpnp: [back to printers top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 5 minutes
| Monitor invoked: | `hpnp.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
Service details for service ping: [back to printers top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 5 minutes
| Monitor invoked: | `fping.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert

routers Hostgroup [back to top]
Members: | cisco7000, linuxrouter, agsplus
Monitored Services: | ping
Service details for service ping: [back to routers top] | Description: | routers which connect bd1 and bd2
| Dependencies: | <no dependencies>
| Test interval: | 1 minute
| Monitor invoked: | `fping.monitor`
| Period: | LOGFILE: wd {Sun-Sat}
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: file.alert
| Period: | wd {Sun-Sat}
|  | Alertevery: | 45 minutes
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: qpage.alert

serversbd1 Hostgroup [back to top]
Members: | dns-yp1, foo1, bar1
Monitored Services: | ping telnet
Service details for service ping: [back to serversbd1 top] | Description: | ping servers in bd1
| Dependencies: | <no dependencies>
| Test interval: | 5 minutes
| Monitor invoked: | `fping.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert
| Period: | wd {Sat-Sun}
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert
| Period: | NOALERTEVERY: wd {Mon-Fri} hr {7am-10pm}
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert
Service details for service telnet: [back to serversbd1 top] | Description: | telnet to servers in bd1
| Dependencies: | serversbd1:ping (suppress alerts if dependencies fail)
| Test interval: | 10 minutes
| Monitor invoked: | `telnet.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertafter: | 2 or more failures in 30 minutes
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert

serversbd2 Hostgroup [back to top]
Members: | dns-yp2, foo2, bar2, ola3
Monitored Services: | ping telnet
Service details for service ping: [back to serversbd2 top] | Description: | ping servers in bd2
| Dependencies: | routers:ping (suppress alerts if dependencies fail)
| Test interval: | 5 minutes
| Monitor invoked: | `fping.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert
| Period: | wd {Sat-Sun}
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert
Service details for service telnet: [back to serversbd2 top] | Description: | telnet to servers in bd2
| Dependencies: | routers:ping serversbd2:ping (suppress alerts if dependencies fail)
| Test interval: | 10 minutes
| Monitor invoked: | `telnet.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertafter: | 2 or more failures in 30 minutes
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert

workstations Hostgroup [back to top]
Members: | blue, yellow, red, green, cornflower, violet
Monitored Services: | ping
Service details for service ping: [back to workstations top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 5 minutes
| Monitor invoked: | `fping.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert

wwwservers Hostgroup [back to top]
Members: | www
Monitored Services: | http ping telnet
Service details for service http: [back to wwwservers top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 4 minutes
| Monitor invoked: | `http.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 45 minutes
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: qpage.alert
|  | Upalert script 1 called: | mail.alert -S "web server is back up" mis
Service details for service ping: [back to wwwservers top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | 2 minutes
| Monitor invoked: | `fping.monitor`
| Period: | wd {Sun-Sat}
|  | Alertevery: | 45 minutes
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: qpage.alert
Service details for service telnet: [back to wwwservers top] | Description: | <no description given>
| Dependencies: | <no dependencies>
| Test interval: | <no interval specified>
| Monitor invoked: | `telnet.monitor`
| Period: | wd {Mon-Fri} hr {7am-10pm}
|  | Alertafter: | 2 or more failures in 30 minutes
|  | Alertevery: | 1 hour
|  | Alert script 1 invoked: | When monitor exit code is not equal to 0: mail.alert
|  | Alert script 2 invoked: | When monitor exit code is not equal to 0: page.alert

### Alert Summary

[back to top]

Alert | Number of times this alert is used | Number of hostgroups using this alert
file.alert | 1 | 1
mail.alert | 18 | 10
page.alert | 12 | 4
qpage.alert | 4 | 3
TOTALS | 35 | 18

### Global Settings Summary

[back to top]

Global Variable | Value
alertdir | /usr/lib/mon/alert.d
authtype | getpwnam
dep_behavior | a
maxprocs | 20
mondir | /usr/lib/mon/mon.d
randstart | 60s

### Monitor Summary

[back to top]

Monitor | Number of times this monitor is used | Number of hostgroups using this monitor | Total number of times run per 24-hour period (not counting `exclude_period`s)
dialin.monitor.wrap | 2 | 1 | 67
fping.monitor | 8 | 8 | 5040
freespace.monitor | 1 | 1 | 96
ftp.monitor | 1 | 1 | 288
hpnp.monitor | 1 | 1 | 288
http.monitor | 1 | 1 | 360
imap.monitor | 1 | 1 | 144
nntp.monitor | 1 | 1 | 288
pop3.monitor | 1 | 1 | 144
smtp.monitor | 1 | 1 | 144
telnet.monitor | 4 | 4 | 432
TOTALS | 22 | 21 | 7291

### Brief Introduction to Time Period Syntax As Used By mon

[back to top]

mon uses a special syntax to define time periods. Time periods are defined as per the Time::Period perl module. It is a simple and powerful syntax for specifying time periods, but may not be completely intuitive. This brief documentation, an excerpt from the Time::Period documentation, should get you started.

         The period is specified as a string which adheres to the
         format

                 sub-period[, sub-period...]

         or the string "none" or whitespace.  The string "none" is
         not case sensitive.

         If the period is blank, then any time period is assumed
         because the time period has not been restricted.  In that
         case, inPeriod returns 1.  If the period is "none", then no
         time period applies and inPeriod returns 0.

         A sub-period is of the form

                 scale {range [range ...]} [scale {range [range ...]}]

         Scale must be one of nine different scales (or their
         equivalent codes):

                 Scale  | Scale | Valid Range Values
                        | Code  |
                 *******|*******|************************************************
                 year   |  yr   | n     where n is an integer 0<=n<=99 or n>=1970
                 month  |  mo   | 1-12  or  jan, feb, mar, apr, may, jun, jul,
                        |       |           aug, sep, oct, nov, dec
                 week   |  wk   | 1-6
                 yday   |  yd   | 1-365
                 mday   |  md   | 1-31
                 wday   |  wd   | 1-7   or  su, mo, tu, we, th, fr, sa
                 hour   |  hr   | 0-23  or  12am 1am-11am 12noon 12pm 1pm-11pm
                 minute |  min  | 0-59
                 second |  sec  | 0-59