added type to tasks for handling warning and critical alerts differently

This commit is contained in:
Johannes Findeisen 2013-06-10 01:06:28 +02:00
commit 8b700e8915

View file

@ -3,20 +3,20 @@
"root":{ "root":{
"name": "Admin", "name": "Admin",
"comment": "The Linspector Admin", "comment": "The Linspector Admin",
"tasks":[{ "class": "email", "args": { "rcpt": "admin@systems.hanez.org" }}, "tasks":[{ "class": "email", "type": "warning", "args": { "rcpt": "admin@systems.hanez.org" }},
{ "class": "sms","args": { "rcpt": "+49112" }}] { "class": "sms", "type": "critical", "args": { "rcpt": "+49112" }}]
}, },
"hanez":{ "hanez":{
"name": "Johannes Findeisen", "name": "Johannes Findeisen",
"comment": "Just a nerd doing admin stuff.", "comment": "Just a nerd doing admin stuff.",
"parent": "darth", "parent": "darth",
"tasks":[{ "class": "email", "args": { "rcpt": "you@hanez.org" }}, "tasks":[{ "class": "email", "type": "warning", "args": { "rcpt": "you@hanez.org" }},
{ "class": "sms","args": { "rcpt": "+49110" }}] { "class": "sms", "type": "critical", "args": { "rcpt": "+49110" }}]
}, },
"darth":{ "darth":{
"name": "Darth Vader", "name": "Darth Vader",
"comment": "The father", "comment": "The father",
"tasks":{ "class": "email", "args": { "rcpt": "darth.vader@hanez.org" }} "tasks":{ "class": "email", "type": "warning", "args": { "rcpt": "darth.vader@hanez.org" }}
} }
}, },
"periods":{ "periods":{