summaryrefslogtreecommitdiff
path: root/doc/troubleshooting/tests.md
diff options
context:
space:
mode:
authorMicah Anderson <micah@leap.se>2014-12-23 16:33:49 -0500
committerMicah Anderson <micah@leap.se>2014-12-23 16:33:49 -0500
commitfc9a8af17d927085486052a53233401c42b0caab (patch)
treefd07b5b2ec8b32e82aa665dad117ee6e51791884 /doc/troubleshooting/tests.md
parent8f9c8f32fce9e2f308d0cd2b92317fd753d79771 (diff)
update doc directory with current state from leap_doc0.6.0
Change-Id: I5b427b0e875b0e640051227cd1cdd51a52c72ac5
Diffstat (limited to 'doc/troubleshooting/tests.md')
-rw-r--r--doc/troubleshooting/tests.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/troubleshooting/tests.md b/doc/troubleshooting/tests.md
new file mode 100644
index 00000000..84064043
--- /dev/null
+++ b/doc/troubleshooting/tests.md
@@ -0,0 +1,33 @@
+@title = 'Tests and Monitoring'
+@summary = 'Testing and monitoring your infrastructure.'
+@toc = true
+
+## Troubleshooting Tests
+
+At any time, you can run troubleshooting tests on the nodes of your provider infrastructure to check to see if things seem to be working correctly. If there is a problem, these tests should help you narrow down precisely where the problem is.
+
+To run tests on FILTER node list:
+
+ leap test run FILTER
+
+Alternately, you can run test on all nodes (probably only useful if you have pinned the environment):
+
+ leap test
+
+## Monitoring
+
+In order to set up a monitoring node, you simply add a `monitor` service tag to the node configuration file. It could be combined with any other service, but we propose that you add it to the webapp node, as this already is public accessible via HTTPS.
+
+After deploying, this node will regularly poll every node to ask for the status of various health checks. These health checks include the checks run with `leap test`, plus many others.
+
+We use [Nagios](http://www.nagios.org/) together with [Check MK agent](https://en.wikipedia.org/wiki/Check_MK) for running checks on remote hosts.
+
+You can log into the monitoring web interface via [https://MONITORNODE/nagios3/](https://MONITORNODE/nagios3/). The username is `nagiosadmin` and the password is found in the secrets.json file in your provider directory.
+
+### Log Monitoring
+
+At the moment, we use [check-mk-agent-logwatch](https://mathias-kettner.de/checkmk_check_logwatch.html) for searching logs for irregularities.
+Logs are parsed for patterns using a blacklist, and are stored in `/var/lib/check_mk/logwatch/<Nodename>`.
+
+In order to "acknowledge" a log warning, you need to log in to the monitoring server, and delete the corresponding file in `/var/lib/check_mk/logwatch/<Nodename>`. This should be done via the nagios webinterface in the future.
+