Nagios Infrastructure SOP

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(redirect page to new infra-docs)
(One intermediate revision by one user not shown)
Line 2: Line 2:
This SOP is to describe nagios configurations
== Contact Information ==
Owner: Fedora Infrastructure Team
Location: Anywhere
Servers: noc01, noc02, noc01.stg, puppet1
Purpose: This SOP is to describe nagios configurations
== Initial Configuration ==
=== CGI Access ===
To view information in nagios (anything with cgi-bin in the path) you need to be able to grant yourself access.  After checking out the Puppet CVS tree as described in the  [[Infrastructure/SOP/Puppet |Puppet SOP]]  you first need to edit configs/system/nagios/cgi.cfg and append your FAS username to 'authorized_for_system_commands'
=== Contact Information ===
{{Admon/caution | You must configure a contacts file to be able to acknowledge [[Infrastructure/SOP/Outage |outages]]}}
define contact{
contact_name            fasname
alias                  Real Name
service_notification_period  24x7
host_notification_period      24x7
service_notification_options  w,u,c,r
host_notification_options    d,u,r
service_notification_commands notify-by-email
host_notification_commands    host-notify-by-email
email                  Email address (any)
{{Admon/warning | Using the 24x7 notification period may cause duplicate messages if you are a member of sysadmin-main, in which case you can specify 'never' instead}}
=== nagios-external ===
=== Commit Changes ===
{{Admon/caution | Remember to "cvs add" the contacts/fasname.cfg files}}
Commit changes by running <code>cvs commit -m "Adding fasname to Nagios"</code> and then mark the changes for distribution by <code>make install</code>
== Configuration ==
=== Instances ===
Fedora Project runs two nagios instances, [ nagios] (noc01) and [ nagios-external] (noc02), you must be in the 'sysadmin' group to access them.
=== Staging Istances ===
Apart from the two production istances, we are currently running a staging istance for testing-purposes available through SSH at noc01.stg.
=== nagios (noc01) ===
The nagios configuration on noc01 should only monitor general host statistics - puppet status, uptime, apache status (up/down), SSH etc.
The configurations are found at <code>configs/system/nagios/</code> in the puppet tree.
=== nagios-external (noc02) ===
The nagios configuration on noc02 is located outside of our main datacenter and should monitor our user websites/applications (, FAS, PackageDB, Bodhi/Updates).
The configurations are found at <code>configs/system/nagios-external/</code> in the puppet tree.
=== Production and staging istances through SSH ===
'''Note:''' Please make sure you are into 'sysadmin' and 'sysadmin-test' FAS groups before trying to access these hosts.
<li>SSH into bastion appending your FAS uid. (i.e <code>ssh</code>) ('''Note:''' no password login is required, so if you get any password request at this point, you probably don't have access to this machine)
<li>SSH again into the host you need to work on. (i.e <code>ssh UID@noc01</code> for the production system or <code>ssh UID@noc01.stg</code> for the staging one) ('''Note:''' you will be prompted for a password, which is the one registered for your FAS account)
<li>Finally do your checks! :)
=== NRPE ===
We are currently using NRPE to execute remote Nagios plugins on any host of our network.
A great guide about it and its usage mixed up with some nice images about its structure can be found at this [ link]
== Understanding the Messages ==
=== General ===
** HOST DOWN/UP alert - hostname **
Reading the message will provide extra information on what is wrong.
=== Disk Space Warning/Critical ===
Disk space warnings normally include the following information:
A message stating "(1% inode=99%)" means that the diskspace is critical '''not''' the inode usage and is a sign that more diskspace is required.
== Further Reading ==
* [[Infrastructure/SOP/Puppet |Puppet SOP]]
* [[Infrastructure/SOP/Outage |Outages SOP]]
[[Category:Infrastructure SOPs]]
[[Category:Infrastructure SOPs]]

Latest revision as of 18:38, 19 December 2011

Infrastructure InfrastructureTeamN1.png

