76 lines
3.1 KiB
JSON
76 lines
3.1 KiB
JSON
{
|
|
"services": {"ping": {"command": "ping -c 1 @host"},
|
|
"tcpconnect": {"command": "tcpconnect @host @port"}},
|
|
"filters":
|
|
{
|
|
"email":
|
|
{
|
|
"command": "email @member @+message",
|
|
"comment": "Sends an E-Mail to the member.",
|
|
"priority": 1
|
|
}
|
|
},
|
|
"members":
|
|
{
|
|
"hanez":
|
|
{
|
|
"name": "Johannes Findeisen",
|
|
"comment": "Just a nerd doing admin stuff...",
|
|
"filters": {"email": "you@hanez.org"}
|
|
}
|
|
},
|
|
"periods": {"shortPeriod": {"seconds": 5, "comment": "Interval job; every 10 seconds"}},
|
|
"hosts":
|
|
{
|
|
"a.systemchaos.org": {"host": "a.systemchaos.org",
|
|
"services": {
|
|
"ping":[{ "args": { "device": "/dev/sda1" },
|
|
"fails": { "warning": "100ms", "critical": "150ms" },
|
|
"parser": { "name": "ping", "line": 2, "col": 5 }}]
|
|
}
|
|
},
|
|
"b.systemchaos.org": {"host": "b.systemchaos.org", "services": {"ping":[{}]}},
|
|
"google.de": {"host": "google.de", "services": {"ping":[{}]}},
|
|
"foobar.systemchaos.org": {"host": "foobar.systemchaos.org",
|
|
"services": {
|
|
"tcpconnect":[{ "args": { "port": 80 },
|
|
"fails": { },
|
|
"threshold": 2,
|
|
"parser": { "name": "none" }}]
|
|
}
|
|
},
|
|
"snmp.systemchaos.org": {"host": "snmp.systemchaos.org",
|
|
"services": {
|
|
"snmpget":[{ "args": { "port": 5555, "oid": "1.3.6.1.4.1.2681.1.2.102." },
|
|
"fails": { "warning": "8", "critical": "16" },
|
|
"parser": { "name": "snmpget" },
|
|
"comment": "Value X from Y"}]
|
|
}
|
|
},
|
|
"web.systemchaos.org": {"host": "web.systemchaos.org",
|
|
"services": {
|
|
"htmlcontent":[{ "args": { "port": 80, "string": "<h1>I am up!</h1>" },
|
|
"fails": { },
|
|
"threshold": 2,
|
|
"parser": { "name": "none" },
|
|
"comment": "Just a string grep"}]
|
|
}
|
|
}
|
|
},
|
|
"hostgroups":
|
|
{
|
|
"all":
|
|
{
|
|
"members": ["hanez"],
|
|
"hosts": ["a.systemchaos.org", "b.systemchaos.org", "google.de"],
|
|
"threshold": 10,
|
|
"services": {"ping": ["shortPeriod"]}
|
|
}
|
|
},
|
|
"layouts": {"production": {"hostgroups": ["all"], "enabled": true}
|
|
},
|
|
"core": {
|
|
"max_logfile_size": 1024000,
|
|
"max_logfile_count": 4
|
|
}
|
|
}
|