From 20aa04e958013e2504145b313292c61d2857b3ae Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 27 May 2013 05:29:51 +0200 Subject: [PATCH] added very minimal json config for just pinging two hosts. just as example on how easy it could be to monitor the uptime of hosts. --- linspector.minimal.json | 43 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 linspector.minimal.json diff --git a/linspector.minimal.json b/linspector.minimal.json new file mode 100644 index 0000000..d28f799 --- /dev/null +++ b/linspector.minimal.json @@ -0,0 +1,43 @@ +{ + "services": {"ping": {"command": "ping @host"}}, + "filters": + { + "email": + { + "command": "/usr/bin/warn_the_admin_mail @member @+message", + "comment": "Sends an E-Mail to the member.", + "priority": 1 + } + }, + "members": + { + "hanez": + { + "name": "Johannes Findeisen", + "comment": "Just a nerd doing admin stuff...", + "filters": {"email": "you@hanez.org"} + } + }, + "periods": {"twentyfourseven": {"minute": "*/1", "second": "0", "comment": "Cron Job / Every minute"}}, + "hosts": + { + "hanez1": {"host": "www1.hanez.org", "services": {}}, + "hanez2": {"host": "www2.hanez.org", "services": {}} + }, + "hostgroups": + { + "all": + { + "members": ["hanez"], + "hosts": ["hanez1", "hanez2"], + "threshold": 10, + "services": {"ping": ["twentyfourseven"]} + } + }, + "layouts": {"production": {"hostgroups": ["all"], "enabled": true} + }, + "core": { + "max_logfile_size": 1024000, + "max_logfile_count": 4 + } +} \ No newline at end of file