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