Difference between revisions of "Monitoring (moved)"

From OpenHatch wiki
Jump to navigation Jump to search
imported>Paulproteus
imported>Paulproteus
Line 21: Line 21:
  
 
* Nagios notifications go to [http://lists.openhatch.org/mailman/listinfo/monitoring monitoring@lists.openhatch.org]. Anyone can subscribe to this list or read its archives.
 
* Nagios notifications go to [http://lists.openhatch.org/mailman/listinfo/monitoring monitoring@lists.openhatch.org]. Anyone can subscribe to this list or read its archives.
 +
 +
=== Making changes ===
 +
 +
In brief, here's what you need to know:
 +
 +
* Edit files in ~nagios/
 +
* Once you know what changes you want to make, create a local branch with those changes:
 +
git checkout -b my_changes
 +
* As you make changes, make meaningful commits. Also, tell "git commit" to use your identity:
 +
git commit --author="Some Body <some.body@example.com>"
 +
* After you have made the changes, ask someone to review them and merge the changes to ''master''.
  
 
=== Viewing the web interface, and handling the daemon ===
 
=== Viewing the web interface, and handling the daemon ===
  
* On <code>linode2</code>, <code>~/nagios/secrets/</code> contains the mailman and Nagios web interface passwords.
+
* On <code>linode2</code>, <code>~nagios/secrets/</code> contains the mailman and Nagios web interface passwords.
 
* View the Nagios web interface at <code>http://linode2.openhatch.org/nagios3/</code>
 
* View the Nagios web interface at <code>http://linode2.openhatch.org/nagios3/</code>
 
* To restart the Nagios daemon, run  
 
* To restart the Nagios daemon, run  

Revision as of 14:44, 24 March 2011

This is a page about improving or modifying OpenHatch.

We call that "Hacking OpenHatch," and there is a whole category of pages about that.


Monitoring

The basics

  • linode.openhatch.org is the main OpenHatch box, which runs the website.
  • linode2.openhatch.org is the secondary server for OpenHatch. It hosts the Hudson continuous integration server, as well as Nagios!
  • The Nagios configuration is owned by a user called nagios on linode2.openhatch.org.

Access

  • We use ssh keys for login.
  • If you want SSH access to that account, file a bug requesting it, and attach an SSH key. You should hear back within 2 days; if you don't hear back by then, try to find paulproteus or jesstess on IRC.
  • Then you can do:
ssh nagios@linode2.openhatch.org
  • You'll know it's working if you are logged in. If you see a "Password:" prompt, then it is not working.

Notifications

Making changes

In brief, here's what you need to know:

  • Edit files in ~nagios/
  • Once you know what changes you want to make, create a local branch with those changes:
git checkout -b my_changes
  • As you make changes, make meaningful commits. Also, tell "git commit" to use your identity:
git commit --author="Some Body <some.body@example.com>"
  • After you have made the changes, ask someone to review them and merge the changes to master.

Viewing the web interface, and handling the daemon

  • On linode2, ~nagios/secrets/ contains the mailman and Nagios web interface passwords.
  • View the Nagios web interface at http://linode2.openhatch.org/nagios3/
  • To restart the Nagios daemon, run
sudo /etc/init.d/nagios3 restart

In case of emergency

TODOs

  1. Send Nagios notifications to IRC (#openhatch-auto?)?
  2. Make the Nagios web interface world-viewable.
  3. Version the monitoring configurations.
  4. Send SMS alerts to people who want them.
  5. Add historical trending (Munin)?

Related