Commit 05d48432 authored by taggart's avatar taggart
Browse files

switch to using check_mk proc checks

parent b07bcd37
......@@ -16,13 +16,16 @@ https://git.sarava.org/?p=puppet-mail.git;a=blob_plain;f=manifests/sympa.pp;hb=H
Riseup Networks puppet class (not published)
Dependencies:
* check_mk to setup nagios process checks
* FIXME: probably other stuff
How to use
==========
TODO
TODO
====
* have nagios subclass depend on statd
* create base class
* setup $sympa_use_upstream variable to override using packages
* setup way to specify sympa base dir (/home/sympa, etc)
......
......@@ -2,29 +2,49 @@
class sympa::nagios {
# FIXME: switch to check_mk
#nagios::service {
# 'archived.pl':
# check_command =>
# 'nagios-stat-proc!/usr/bin/perl /home/sympa/bin/archived.pl!1!1!proc';
# 'wwsympa.fcgi':
# check_command =>
# 'nagios-stat-proc!/usr/bin/perl /home/sympa/bin/wwsympa.fcgi!1!1!proc';
# 'bounced.pl':
# check_command =>
# 'nagios-stat-proc!/usr/bin/perl /home/sympa/bin/bounced.pl!1!1!proc';
# 'task_manager.pl':
# check_command =>
# 'nagios-stat-proc!/usr/bin/perl /home/sympa/bin/task_manager.pl!1!1!proc';
# 'sympa.pl':
# check_command =>
# 'nagios-stat-proc!/usr/bin/perl /home/sympa/bin/sympa.pl!2!2!proc';
# 'bulk.pl':
# check_command =>
# 'nagios-stat-proc!/usr/bin/perl /home/sympa/bin/bulk.pl!10!1!proc';
# 'apache':
# check_command =>
# 'nagios-stat-proc!/usr/sbin/apache!2!1!proc';
#}
class { 'check_mk::agent::ps':
name => 'archived.pl',
procname => '/usr/bin/perl /home/sympa/bin/archived.pl',
levels => '1, 1, 1, 1'
}
class { 'check_mk::agent::ps':
name => 'wwsympa.fcgi',
procname => '/usr/bin/perl /home/sympa/bin/wwsympa.fcgi',
levels => '1, 1, 1, 1'
}
class { 'check_mk::agent::ps':
name => 'bounced.pl',
procname => '/usr/bin/perl /home/sympa/bin/bounced.pl',
levels => '1, 1, 1, 1'
}
class { 'check_mk::agent::ps':
name => 'task_manager.pl',
procname => '/usr/bin/perl /home/sympa/bin/task_manager.pl',
levels => '1, 1, 1, 1'
}
class { 'check_mk::agent::ps':
name => 'sympa.pl',
procname => '/usr/bin/perl /home/sympa/bin/sympa.pl',
levels => '2, 2, 2, 2'
}
# sympa scales bulk processes automatically, but there should be at
# least 1 and almost always 10
class { 'check_mk::agent::ps':
name => 'bulk.pl',
procname => '/usr/bin/perl /home/sympa/bin/bulk.pl',
levels => '1, 10, 10, 10'
}
# FIXME: why isn't this being done in the {site_}apache module?
class { 'check_mk::agent::ps':
name => 'apache',
procname => '/usr/sbin/apache2 -k start',
levels => '5, 5, 5, 5'
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment