Commit 9228a1c8 authored by taggart's avatar taggart
Browse files

update to define way of doing ps check

parent 05d48432
......@@ -2,49 +2,27 @@
class sympa::nagios {
class { 'check_mk::agent::ps':
name => 'archived.pl',
procname => '/usr/bin/perl /home/sympa/bin/archived.pl',
levels => '1, 1, 1, 1'
check_mk::agent::ps {
'archived.pl':
procname => '/usr/bin/perl /home/sympa/bin/archived.pl';
'wwsympa.fcgi':
procname => '/usr/bin/perl /home/sympa/bin/wwsympa.fcgi';
'bounced.pl':
procname => '/usr/bin/perl /home/sympa/bin/bounced.pl';
'task_manager.pl':
procname => '/usr/bin/perl /home/sympa/bin/task_manager.pl';
'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
'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?
'apache':
procname => '/usr/sbin/apache2 -k start',
levels => '5, 5, 5, 5';
}
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