args fix in members and added args to parser classes.

This commit is contained in:
Johannes Findeisen 2013-06-19 03:47:06 +02:00
commit 047ec513dd

View file

@ -5,7 +5,7 @@
"comment": "The Linspector Admin", "comment": "The Linspector Admin",
"tasks":[{ "class": "email", "type": "warning", "args":{ "rcpt": "admin@systems.hanez.org" }}, "tasks":[{ "class": "email", "type": "warning", "args":{ "rcpt": "admin@systems.hanez.org" }},
{ "class": "sms", "type": "critical", "args":{ "rcpt": "+49112" }}, { "class": "sms", "type": "critical", "args":{ "rcpt": "+49112" }},
{ "class": "xmpp", "type": "critical", "arfixed parsing, replaced non_workin instance_check with gs":{ "rcpt": "admin@jabber.hanez.org" }}] { "class": "xmpp", "type": "critical", "args":{ "rcpt": "admin@jabber.hanez.org" }}]
}, },
"hanez":{ "hanez":{
"name": "Johannes Findeisen", "name": "Johannes Findeisen",
@ -48,7 +48,8 @@
"fails":{ "warning": "100ms", "critical": "150ms" }, "fails":{ "warning": "100ms", "critical": "150ms" },
"periods":[ "short" ], "periods":[ "short" ],
"threshold": 10, "threshold": 10,
"parser":{ "class": "shell", "line": 2, "col": 5 } "parser":{ "class": "shell",
"args":{ "line": 2, "col": 5 }}
}, },
{ {
"class": "tcpconnect", "class": "tcpconnect",
@ -75,7 +76,8 @@
"protocol": "https" }, "protocol": "https" },
"periods":[ "long" ], "periods":[ "long" ],
"threshold": 2, "threshold": 2,
"parser":{ "class": "grep", "string": "<h1>I am up!</h1>" }, "parser":{ "class": "grep",
"args":{ "string": "<h1>I am up!</h1>" }},
"comment": "Just a string grep" "comment": "Just a string grep"
} }
] ]
@ -89,7 +91,8 @@
"fails":{ "warning": "100ms", "critical": "150ms" }, "fails":{ "warning": "100ms", "critical": "150ms" },
"periods":[ "short" ], "periods":[ "short" ],
"threshold": 10, "threshold": 10,
"parser":{ "class": "shell", "line": 2, "col": 5 } "parser":{ "class": "shell",
"args":{ "line": 2, "col": 5 }}
}, },
{ {
"class": "tcpconnect", "class": "tcpconnect",
@ -109,9 +112,12 @@
"fails":{ "warning": "80%", "critical": "90%" }, "fails":{ "warning": "80%", "critical": "90%" },
"periods":[ "long" ], "periods":[ "long" ],
"threshold": 10, "threshold": 10,
"parser":[{ "class": "grep", "line": "/dev/sda1", "col": 5 }, "parser":[{ "class": "grep",
[{ "class": "grep", "line": "/dev/sda2", "col": 5 }, "args":{ "line": "/dev/sda1", "col": 5 }},
{ "class": "grep", "line": "/dev/sda2", "col": 5 }]] [{ "class": "grep",
"args":{ "line": "/dev/sda2", "col": 5 }},
{ "class": "grep",
"args":{ "line": "/dev/sda2", "col": 5 }}]]
}, },
{ {
"class": "shell", "class": "shell",
@ -120,7 +126,8 @@
"fails":{ "warning": 4.00, "critical": 8.00 }, "fails":{ "warning": 4.00, "critical": 8.00 },
"periods":[ "middle" ], "periods":[ "middle" ],
"threshold": 10, "threshold": 10,
"parser":{ "class": "shell", "line": 1, "col": 4 } "parser":{ "class": "shell",
"args":{ "line": 1, "col": 4 }}
} }
] ]
}, },
@ -141,7 +148,8 @@
"fails":{ "warning": "100ms", "critical": "150ms", "notes": "HeyHo! A ping failed, wake up! (@response)" }, "fails":{ "warning": "100ms", "critical": "150ms", "notes": "HeyHo! A ping failed, wake up! (@response)" },
"periods":[ "short" ], "periods":[ "short" ],
"threshold": 10, "threshold": 10,
"parser":{ "class": "shell", "line": 2, "col": 8 } "parser":{ "class": "shell",
"args":{ "line": 2, "col": 8 }}
}, },
{ {
"class": "snmpget", "class": "snmpget",