<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 21/12/2012 22:26, Ryan Lane wrote:<br>
</div>
<blockquote
cite="mid:CALKgCA3g8MyneZHsheQZy+f2_0cGvB1QanR0o91MxET=fDQeyA@mail.gmail.com"
type="cite">On Fri, Dec 21, 2012 at 1:49 PM, Silke Meyer <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:silke.meyer@wikimedia.de" target="_blank">silke.meyer@wikimedia.de</a>></span>
wrote:<br>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hello everybody!<br>
<br>
</blockquote>
<div><br>
</div>
</div>
</div>
</blockquote>
Howdy<br>
<blockquote
cite="mid:CALKgCA3g8MyneZHsheQZy+f2_0cGvB1QanR0o91MxET=fDQeyA@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">* how to configure Nagios in labs. I
tried to add a file to<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
/etc/nagios/nrpe.d/blah.cfg and use a plugin but nothing
more than the<br>
default appears on the <a moz-do-not-send="true"
href="http://nagios.wmflabs.org" target="_blank">nagios.wmflabs.org</a>
page of my hostgroup/labs<br>
instance. Is there any documentation about this? Where? How
are users<br>
supposed to use it? Do I have to ping anyone to restart the
Nagios<br>
server on each modification I make?<br>
<br>
</blockquote>
<div><br>
Our nagios setup in labs is odd. Maybe petan and/or damianz
can chime in on this?<br>
</div>
</div>
</div>
</blockquote>
Basically nagios will add monitoring based on what puppet classes
are assigned to the host - this in reality only works for MySQL and
Apache servers.<br>
<br>
If you have a specific new host type basically send me a pull
request for nagios-labsbuilder with a dict entry that looks like the
below:<br>
'myservice': {<br>
'description': 'Uber Cool servers',<br>
'hosts': [],<br>
'puppet': ['labs::magic::ponies'],<br>
},<br>
<br>
And a template change that looks like the below:<br>
{% if 'labs::magic::ponies' in host.puppet_classes -%}<br>
define service{<br>
use generic-service<br>
host_name {{ host.fqdn }}<br>
service_description Some service<br>
check_command check_nrpe!check_things_and_stuff<br>
}<br>
{% endif %}<br>
<br>
This will setup the groups and service checks for any hosts with the
class assigned.<br>
<br>
A little weird, but this is as close as we can follow to prod
without being insane.<br>
<br>
Let me know if that doesn't make sense :)<br>
<br>
- Damian<br>
</body>
</html>