summaryrefslogtreecommitdiff
path: root/services/main.cf
blob: 4acafbc55e1047bf672bf1b542375b0a3fbc8c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
body file control
{
    inputs => {
        "services/common.cf",
        "services/applications.cf",
        "services/os.cf",
        "services/julien.cf",
    };
}

bundle common classify
{
    vars:
        any::
            "bundles" slist => {
                "common",
                "os",
                "julien",
                "bareos_fd",
                "check_mk",
                "nrpe",
                "sshd",
            };
    classes:
        any::
            "containers" or => {
                regline(".*/lxc/.*", "/proc/1/cgroup"),
                regline(".*lxc", "/proc/1/environ"),
            };
            "awh" or => {
                "hurricane",
            };
            "console_julien" or => {
                "andromeda",
                "collab_jde",
                "console",
                "hurricane",
                "legend",
            };
            "mail_servers" or => { "legend" };
            "nrpe" expression => "freebsd";
}

bundle agent main
{
    methods:
        ipam::
            "ipam"  usebundle => ipam;
        nagios::
            "nagios"  usebundle => nagios;
}