linspector-old/linspector.json
2013-05-27 02:57:56 +02:00

229 lines
6.5 KiB
JSON

{
"services":
{
"discusage": {"command": "ssh @host df -a @device", "parser": "df"},
"load": {"command": "ssh @host uptime"},
"dirsize": { "command": "ssh @host du -chs @path"},
"filesize": {"command": "ssh @host du -chs @path"},
"loggedinusercount": {"command": "ssh @host who | wc -l"},
"loggedinusers": {"command": "ssh @host who"},
"swapusage": {"command": "ssh @host cat /proc/swaps"},
"processcount": {"command": "ssh @host ps ax | wc -l"},
"processcountbyname": {"command": "ssh @host ps ax | grep @name | wc -l"},
"fileage": {"command": "ssh @host ls -l @file"},
"ping": {"command": "ping @host"},
"snmpget": {"command": "snmpget -v1 -c public $oid"},
"busy_waiting": {"command": "sleep 3600"},
"htmlcontent": {"command": "wget -qO- @url", "comment": "Get HTML Content for a string lookup."}
},
"filters":
{
"email":
{
"command": "/usr/bin/warn_the_admin_mail @member @+message",
"comment": "Sends an E-Mail to the member.",
"priority": 1
},
"sms":
{
"command": "/usr/bin/warn_the_admin_sms @member @+message",
"comment": "Sends a Short Message to the member.",
"priority": 0
},
"foo":
{
"command": "/usr/bin/warn_the_admin_foo @member @+message",
"priority": 500
},
"mongowriter":
{
"command": "./plugins/mongowriter.py @+message localhost 27017 linspector123",
"priority": 1000
}
},
"members":
{
"hanez":
{
"name": "Johannes Findeisen",
"comment": "Just a nerd doing admin stuff...",
"parent": "admin",
"filters":
{
"email": "you@hanez.org",
"sms": "+23345567"
}
},
"linspector":
{
"name": "Linspector BOT",
"comment": "Botty Botsen...",
"parent": "admin",
"filters":
{
"email": "botty@hanez.org",
"sms": "+23345567213123"
}
},
"unixpeople":
{
"name": "Hanna Findeisen",
"comment": "Master of UNIX",
"parent": "admin",
"filters":
{
"email": "master@hanez.org",
"sms": "+2334556733333"
}
},
"admin":
{
"name": "Peter Hansen",
"comment": "The son of Hans-Peter Hansen",
"parent": "ultraadmin",
"filters":
{
"email": "admin@systemchaos.org",
"sms": "+23345567",
"phone": "+435345345"
}
},
"ultraadmin":
{
"name": "Hans-Peter Hansen (CEO)",
"comment": "The guru of the Datacenter",
"parent": "darthvader",
"filters":
{
"email": "bofh@systemchaos.org",
"sms": "+23345567",
"phone": "+435345345"
}
},
"darthvader":
{
"name": "Darth Vader",
"comment": "The Father",
"filters":
{
"email": "darth.vader@systemchaos.org"
}
},
"jens":
{
"name": "Jens Larssen",
"comment": "Our network guru",
"filters":
{
"email": "jens@systemchaos.org",
"sms": "+23345567",
"phone": "+435345345"
}
},
"ruff":
{
"name": "Ruffn Buffn",
"filters":
{
"sms": "+23343457"
}
},
"mongowriter":
{
"name": "MongoDB Database writer plugin",
"filters":
{
"mongowriter": "localhost"
}
}
},
"periods":
{
"twentyfourseven":
{
"year": "*",
"month": "*",
"day": "*",
"week": "*",
"hour": "*",
"minute": "*/1",
"second": "0",
"comment": "Cron Job"
},
"do_every_x_times" : {
"days": 0,
"weeks": 0,
"hours": 0,
"minutes": 5,
"seconds": 0,
"comment": "Interval Job"
},
"next_christmas" : {
"date": "2013-12-24 20:00:00",
"comment": "Date Job"
}
},
"hosts":
{
"hanez":
{
"host": "www.hanez.org",
"services":
{
"discusage":
[
{ "device": "/dev/sda1", "warning": "80%", "critical": "90%" },
{ "device": "/dev/sda2", "warning": "70%", "critical": "90%" },
{ "device": "/dev/sda3", "warning": "70GB", "critical": "90GB" }
],
"load":
[
{ "warning": 8.00, "critical": 12.00 }
],
"dirsize":
[
{ "path": "/var/log", "warning": 30000000, "critical": 40000000 }
],
"processcount":
[
{ "warning": 3000, "critical": 3800 }
],
"processcountbyname":
[
{ "name": "java", "warning": 100, "critical": 200 }
],
"fileage":
[
{ "file": "/var/backup/server_1", "warning": 2, "critical": 3 }
],
"htmlcontent":
[
{ "url": "@host/test.php", "content": "<h1>Server up!</h1>" }
]
}
}
},
"hostgroups":
{
"all":
{
"members": ["admin"],
"hosts": ["hanez"],
"parent": "network",
"threshold": 10,
"services":
{
"load": ["twentyfourseven"],
"discusage":["twentyfourseven"],
"ping": ["twentyfourseven"]
}
}
},
"layouts": {"production": {"hostgroups": ["all", "hanez", "network"], "enabled": true},
"lazy": {"hostgroups": ["hanez", "ruff"], "enabled": false}
},
"core": {
"max_logfile_size": 1024000,
"max_logfile_count": 4
}
}