On 21/12/2012 22:26, Ryan Lane wrote:
On Fri, Dec 21, 2012 at 1:49 PM, Silke Meyer <[email protected]
<mailto:[email protected]>> wrote:
Hello everybody!
Howdy
* how to configure Nagios in labs. I tried to add a file to
/etc/nagios/nrpe.d/blah.cfg and use a plugin but nothing more than the
default appears on the nagios.wmflabs.org
<http://nagios.wmflabs.org> page of my hostgroup/labs
instance. Is there any documentation about this? Where? How are users
supposed to use it? Do I have to ping anyone to restart the Nagios
server on each modification I make?
Our nagios setup in labs is odd. Maybe petan and/or damianz can chime
in on this?
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.
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:
'myservice': {
'description': 'Uber Cool servers',
'hosts': [],
'puppet': ['labs::magic::ponies'],
},
And a template change that looks like the below:
{% if 'labs::magic::ponies' in host.puppet_classes -%}
define service{
use generic-service
host_name {{ host.fqdn }}
service_description Some service
check_command check_nrpe!check_things_and_stuff
}
{% endif %}
This will setup the groups and service checks for any hosts with the
class assigned.
A little weird, but this is as close as we can follow to prod without
being insane.
Let me know if that doesn't make sense :)
- Damian
_______________________________________________
Labs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/labs-l