From 8f56cbeef17f3cec899d4c6a3da396632fa46eb6 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 14 Aug 2013 21:04:00 +0200 Subject: [PATCH] moved json files to ./examples/ and added my personal json file --- examples/hanez.json | 37 +++++++++++++++++++++ linspector.json => examples/linspector.json | 0 minimal.json => examples/minimal.json | 0 linspector | 2 +- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 examples/hanez.json rename linspector.json => examples/linspector.json (100%) rename minimal.json => examples/minimal.json (100%) diff --git a/examples/hanez.json b/examples/hanez.json new file mode 100644 index 0000000..afb970d --- /dev/null +++ b/examples/hanez.json @@ -0,0 +1,37 @@ +{ + "members":{ + "homer":{ + "name": "hanez", + "comment": "Security Inspector", + "tasks": [ + {"class":"email", "type": "donut", "args": {"rcpt": "you@hanez.org"}} + ] + } + }, + "periods": { + "always": {"seconds": 10, "comment": "OMG, this means work"} + }, + "hostgroups":{ + "power_plant":{ + "members": ["homer"], + "hosts": ["a.systemchaos.org"], + "processors":[ + {"class": "mongodb", "args":{ "host": "mongodb.hanez.org", "user": "homer", "password": "useless", "database": "default" }} + ], + "services":[ + { + "class": "tcpconnect", + "args": {"port": 80}, + "periods": ["always"], + "fails": {"donut": 0}, + "threshold": 0, + "comment": "my personal reminder, hehe" + } + ] + } + }, + "layouts":{ + "main":{"hostgroups": ["power_plant"], "enabled": true} + } + +} \ No newline at end of file diff --git a/linspector.json b/examples/linspector.json similarity index 100% rename from linspector.json rename to examples/linspector.json diff --git a/minimal.json b/examples/minimal.json similarity index 100% rename from minimal.json rename to examples/minimal.json diff --git a/linspector b/linspector index 9652775..c241646 100755 --- a/linspector +++ b/linspector @@ -1,7 +1,7 @@ #!/usr/bin/python2.7 -tt __version__ = "0.4/TETRIS" -__default_config__ = "./minimal.json" +__default_config__ = "./examples/minimal.json" import argparse import time