~benji/charms/trusty/nagios/trunk

« back to all changes in this revision

Viewing changes to example.monitors.yaml

  • Committer: Mark Mims
  • Date: 2012-08-07 21:42:35 UTC
  • mfrom: (7.1.31 nagios)
  • Revision ID: mark.mims@canonical.com-20120807214235-0iw0v2afxhy7ovlt
mergingĀ lp:~clint-fewbar/charms/precise/nagios/add-monitors-2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Version of the spec, mostly ignored but 0.3 is the current one
 
2
version: '0.3'
 
3
# Dict with just 'local' and 'remote' as parts
 
4
monitors:
 
5
    # local monitors need an agent to be handled. See nrpe charm for
 
6
    # some example implementations
 
7
    local:
 
8
        # procrunning checks for a running process named X (no path)
 
9
        procrunning:
 
10
            # Multiple procrunning can be defined, this is the "name" of it
 
11
            nagios3:
 
12
                min: 1
 
13
                max: 1
 
14
                executable: nagios3
 
15
    # Remote monitors can be polled directly by a remote system
 
16
    remote:
 
17
        # do a request on the HTTP protocol
 
18
        http:
 
19
            nagios:
 
20
                port: 80
 
21
                path: /nagios3/
 
22
                # expected status response (otherwise just look for 200)
 
23
                status: 'HTTP/1.1 401'
 
24
                # Use as the Host: header (the server address will still be used to connect() to)
 
25
                host: www.fewbar.com
 
26
        mysql:
 
27
            # Named basic check
 
28
            basic:
 
29
                username: monitors
 
30
                password: abcdefg123456