json changes
This commit is contained in:
parent
90c41027c6
commit
22fde832ae
1 changed files with 13 additions and 39 deletions
|
|
@ -67,7 +67,7 @@
|
||||||
"args":{ "port":80, "path":"/status.cgi", "string":"<h1>I am up!</h1>" },
|
"args":{ "port":80, "path":"/status.cgi", "string":"<h1>I am up!</h1>" },
|
||||||
"periods": ["long"],
|
"periods": ["long"],
|
||||||
"threshold":2,
|
"threshold":2,
|
||||||
"parser":{ "class":"StringCompare", "args": { "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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
@ -93,63 +93,37 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"group3":{
|
"group3":{
|
||||||
"members":[
|
"members":[ "hanez" ],
|
||||||
"hanez"
|
"hosts":[ "master.systemchaos.org" ],
|
||||||
],
|
|
||||||
"hosts":[
|
|
||||||
"master.systemchaos.org"
|
|
||||||
],
|
|
||||||
"services":[
|
"services":[
|
||||||
{
|
{
|
||||||
"class":"ping",
|
"class":"ssh",
|
||||||
"fails":{
|
"args":{ "port":23, "command":"df" },
|
||||||
"warning":"60ms",
|
"fails":{ "warning":"80%", "critical":"90%" },
|
||||||
"critical":"10ms"
|
"periods":[ "long" ],
|
||||||
},
|
|
||||||
"periods":[
|
|
||||||
"short"
|
|
||||||
],
|
|
||||||
"threshold":10,
|
"threshold":10,
|
||||||
"parser":{
|
"parser": [{ "class":"grep", "line": "/dev/sda1", "col":5 },
|
||||||
"class":"shell",
|
{ "class":"grep", "line": "/dev/sda2", "col":5 } ]
|
||||||
"line":2,
|
|
||||||
"col":5
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"layouts":{
|
"layouts":{
|
||||||
"production":{
|
"production":{
|
||||||
"hostgroups":[
|
"hostgroups":[ "group1" ],
|
||||||
"group1"
|
|
||||||
],
|
|
||||||
"enabled":true
|
"enabled":true
|
||||||
},
|
},
|
||||||
"critical":{
|
"critical":{
|
||||||
"hostgroups":[
|
"hostgroups":[ "group3" ],
|
||||||
"group3"
|
|
||||||
],
|
|
||||||
"enabled":false
|
"enabled":false
|
||||||
},
|
},
|
||||||
"all":{
|
"all":{
|
||||||
"hostgroups":[
|
"hostgroups":[ "group1", "group2", "group3" ],
|
||||||
"group1",
|
|
||||||
"group2",
|
|
||||||
"group3"
|
|
||||||
],
|
|
||||||
"enabled":false
|
"enabled":false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"core":{
|
"core":{
|
||||||
"max_logfile_size":1024000,
|
"max_logfile_size":1024000,
|
||||||
"max_logfile_count":4,
|
"max_logfile_count":4,
|
||||||
"max_worker_threads":8,
|
"max_worker_threads":8
|
||||||
"enabled_services":[
|
|
||||||
"ping",
|
|
||||||
"tcpconnect",
|
|
||||||
"httpget",
|
|
||||||
"shell",
|
|
||||||
"ssh"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue