opinkerfi/okconfig — pull request #14 by tomas-edwardsson (2012-09-05 09:23:13+00:00)
Title: Add packs and discovery to okconfig

This should not break any existing functionality.

What it does is add a new directory called packs. Within the pack directory simple json files are placed which look something like this in it's most simple form, more complex examples are for instance mail.json and web.json:

```
{
"name": "SSH",
"summary":"Checks availability of Secure Shell Daemon",
"description":"Basic connectivity and ssh greeting is checked",
"path":"internet/remote_cli",
"discovery": [
["plugin check_ssh -H HOSTNAME -t 2", "", "ssh-connectivity"]
],
"services": {
"ssh-connectivity": {
"config_file": "ssh-connectivity.cfg-example",
"macros": {
}
}
}
}
```