Changeset 910 for eddie/trunk/doc/manual.html
- Timestamp:
- 12/10/2007 06:48:51 AM (13 months ago)
- Files:
-
- 1 modified
-
eddie/trunk/doc/manual.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eddie/trunk/doc/manual.html
r909 r910 1947 1947 <i>Directive Examples:</i> 1948 1948 <pre> 1949 # test that our postgresql server is alive and responding to requests properly 1950 DBI postgresql_check: 1951 dbtype='pg' 1952 host='localhost' 1953 database='monitoring' 1954 user='monitoring' 1955 password='sshhh' 1956 query='select * from monitoring' 1957 rule='not connected or results != 1 or result1 != 42' 1958 action=email(ALERT_EMAIL, 'PostgreSQL DB %(database)s failed test', 'Query: %(query)s\nConnected: %(connected)s\nError: %(errmsg)s') 1959 1949 1960 # alert if too many connections to the Postgres database 1950 1961 DBI db_connections: … … 1955 1966 password='sekrit' 1956 1967 query='select count(1) from pg_stat_activity' 1957 rule=' not connected or results != 1 orresult1 > 40'1968 rule='connected and results > 0 and result1 > 40' 1958 1969 action=email('alert', 'Database %(database)s on %(h)s: too many connections (currently %(result1)s)') 1959 1970 console='%(database)s on %(host)s : connections = %(result1)d'
