summaryrefslogtreecommitdiff
path: root/doc/services/monitor.md
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-06-07 11:41:04 +0200
committervarac <varacanero@zeromail.org>2016-06-07 11:41:04 +0200
commitd0ba04981366dd15e01cb89b970b01c18e8a4530 (patch)
tree1396bf04ee31aa40efdbb464b36612ded2c0b807 /doc/services/monitor.md
parenta4034d0eee7e8627183c2a9d82f9cf5203ff9878 (diff)
parent5b2cb9a14bf5735e61e148c21496677c8458bd63 (diff)
Merge remote-tracking branch 'origin/0.8.x' into develop
Diffstat (limited to 'doc/services/monitor.md')
-rw-r--r--doc/services/monitor.md36
1 files changed, 36 insertions, 0 deletions
diff --git a/doc/services/monitor.md b/doc/services/monitor.md
new file mode 100644
index 00000000..576b36a9
--- /dev/null
+++ b/doc/services/monitor.md
@@ -0,0 +1,36 @@
+@title = "monitor"
+@summary = "Nagios monitoring and continuous testing."
+
+The `monitor` node provides a nagios control panel that will give you a view into the health and status of all the servers and all the services. It will also spam you with alerts if something goes down.
+
+Topology
+--------------------------------------
+
+Currently, you can have zero or one `monitor` nodes defined. It is required that the monitor be on the webapp node. It was not designed to be run as a separate node service.
+
+Configuration
+-----------------------------------------------
+
+* `nagios.environments`: By default, the monitor node will monitor all servers in all environments. You can optionally restrict the environments to the ones you specify.
+
+For example:
+
+ {
+ "nagios": {
+ "environments": ["unstable", "production"]
+ }
+ }
+
+Access nagios web
+-----------------------------------------------
+
+*Determine the nagios URL*
+
+ $ leap ls --print domain.name,webapp.domain,ip_address monitor
+ > chameleon chameleon.bitmask.net, demo.bitmask.net, 199.119.112.10
+
+In this case, you would open `https://demo.bitmask.net/cgi-bin/nagios3` in your browser (or alternately you could use 199.119.112.10 or chameleon.bitmask.net).
+
+*Determine the nagios password*
+
+The username for nagios is always `nagiosadmin`. The password is randomly generated and stored in `secrets.json` under the key `nagios_admin_password`. Note that the login is `nagiosadmin` without underscore, but the entry in secrets.json is with underscores.