Skip to content
Snippets Groups Projects
Commit a0cdf895 authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Uninstall munin everywhere

parent f0b3e29e
No related branches found
No related tags found
No related merge requests found
Showing
with 12 additions and 751 deletions
......@@ -111,10 +111,6 @@ mod 'locales',
:git => 'https://forge.softwareheritage.org/source/puppet-saz-locales',
:ref => 'v2.5.0'
mod 'munin',
:git => 'https://forge.softwareheritage.org/source/puppet-ssm-munin',
:ref => '0.1.0'
mod 'mysql',
:git => 'https://forge.softwareheritage.org/source/puppet-puppetlabs-mysql',
:ref => '5.3.0'
......
......@@ -491,39 +491,8 @@ groups:
gunicorn::statsd::host: 127.0.0.1:8125
munin::node::allow:
- 192.168.100.20
munin::node::network: "%{lookup('internal_network')}"
munin::node::plugins::enable:
- apt
- postfix_mailvolume
- postfix_mailqueue
munin::node::plugins::disable:
- apt_all
- df_inode
- entropy
- exim_mailstats
- exim_mailqueue
- interrupts
- irqstats
- netstat
- nfs4_client
- nfsd4
- open_files
- open_inodes
- proc_pri
- vmstat
munin::master::hostname: munin.internal.softwareheritage.org
munin::plugins::rabbitmq::messages_warn: 18000000
munin::plugins::rabbitmq::messages_crit: 20000000
munin::plugins::rabbitmq::queue_memory_warn: 1073741824 # 1GB
munin::plugins::rabbitmq::queue_memory_crit: 2147483648 # 2GB
rabbitmq::monitoring::user: swhdev
# following password key in private data
# - rabbitmq::monitoring::password
......@@ -745,13 +714,6 @@ bind::resource_records:
logstash0/A:
record: logstash0.internal.softwareheritage.org
data: 192.168.100.19
munin/CNAME:
type: CNAME
record: munin.internal.softwareheritage.org
data: munin0.internal.softwareheritage.org.
munin0/A:
record: munin0.internal.softwareheritage.org
data: 192.168.100.20
kibana/CNAME:
type: CNAME
record: kibana.internal.softwareheritage.org
......
......@@ -114,10 +114,6 @@ node 'kibana0.internal.softwareheritage.org' {
include role::swh_kibana_instance
}
node 'munin0.internal.softwareheritage.org' {
include role::swh_munin_master
}
node 'giverny.softwareheritage.org' {
include role::swh_desktop
}
......
#!/bin/bash
: << =cut
=head1 NAME
rabbitmq_connections - monitor the number of connections to RabbitMQ
=head1 CONFIGURATION
You will need to add configuration to
/etc/munin/plugin-conf.d/rabbitmq_connection.conf for this plugin to
work.
=over 2
=item C<user>
Required. Valid choices are C<rabbitmq> and C<root>. This is required
by C<rabbitmqctl>.
=item C<env.conn_warn>
Optional, default value is 500
=item C<env.conn_crit>
Optional, default value is 1000
=back
=head2 EXAMPLE CONFIGURATION
[rabbitmq_connections]
user rabbitmq
env.conn_warn 512
env.conn_crit 1024
=head1 MAGIC MARKERS
#%# family=contrib
=cut
case $(whoami) in
rabbitmq|root)
;;
*)
echo 'Error: Plugin requires "user" to be set in plugin configuration.' >&2
echo 'See "munindoc rabbitmq_connections" for more information' >&2
exit 1
;;
esac
# If run with the "config"-parameter, give out information on how the
# graphs should look.
if [ "$1" = "config" ]; then
CONN_WARN=${conn_warn:-500}
CONN_CRIT=${conn_crit:-1000}
# The host name this plugin is for. (Can be overridden to have
# one machine answer for several)
# The title of the graph
echo 'graph_title RabbitMQ connections'
# Arguments to "rrdtool graph". In this case, tell it that the
# lower limit of the graph is '0', and that 1k=1000 (not 1024)
echo 'graph_args --base 1000 -l 0'
# The Y-axis label
echo 'graph_vlabel connections'
# We want Cur/Min/Avg/Max unscaled (i.e. 0.42 load instead of
# 420 milliload)
#echo 'graph_scale no'
echo 'graph_category RabbitMQ'
echo "connections.label Connections"
echo "connections.warning $CONN_WARN"
echo "connections.critical $CONN_CRIT"
echo "connections.info Number of active connections"
echo 'graph_info Shows the number of connections to RabbitMQ'
# Last, if run with the "config"-parameter, quit here (don't
# display any data)
exit 0
fi
# If not run with any parameters at all (or only unknown ones), do the
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
if hash rabbitmqctl >/dev/null 2>&1; then
connections=$(HOME=/tmp rabbitmqctl list_connections state | grep -c running)
else
echo "$0: Could not run rabbitmqctl" >&2
connections=U
fi
printf "connections.value %s\n" "$connections"
#!/bin/bash
#
# Plugin to monitor the queues of a virtual_host in RabbitMQ
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Parameters
# env.vhost <AMQ virtual host>
# env.queue_warn <warning queuesize>
# env.queue_crit <critical queuesize>
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=auto
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on whether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
# If run with the "config"-parameter, give out information on how the
# graphs should look.
HOME=/tmp/
VHOST=${vhost:-"/"}
FILTER=${filter:-"^(amq\.gen-.*|celery@.*\.pidbox|celeryev\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})"}
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
grep -v '^Listing' | \
grep -v 'done\.$' | \
grep -Ev $FILTER | \
sed -e 's/[.=-]/_/g' )
if [ "$1" = "config" ]; then
QUEUE_WARN=${queue_warn:-100}
QUEUE_CRIT=${queue_crit:-500}
# The host name this plugin is for. (Can be overridden to have
# one machine answer for several)
# The title of the graph
echo "graph_title RabbitMQ $VHOST consumers"
# Arguments to "rrdtool graph". In this case, tell it that the
# lower limit of the graph is '0', and that 1k=1000 (not 1024)
echo 'graph_args --base 1000 -l 0'
# The Y-axis label
echo 'graph_vlabel consumers'
# We want Cur/Min/Avg/Max unscaled (i.e. 0.42 load instead of
# 420 milliload)
#echo 'graph_scale no'
echo 'graph_category RabbitMQ'
for queue in $QUEUES; do
echo "$queue.label $queue"
echo "$queue.warning $QUEUE_WARN"
echo "$queue.critical $QUEUE_CRIT"
echo "$queue.info Active consumers for $queue"
done
echo 'graph_info Lists active consumers for a queue.'
# Last, if run with the "config"-parameter, quit here (don't
# display any data)
exit 0
fi
# If not run with any parameters at all (or only unknown ones), do the
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
HOME=$HOME rabbitmqctl list_queues -p $VHOST name consumers| \
grep -v "^Listing" | grep -v "done.$" | grep -Ev $FILTER | \
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
#!/bin/bash
#
# Plugin to monitor the queues of a virtual_host in RabbitMQ
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Parameters
# env.vhost <AMQ virtual host>
# env.queue_warn <warning queuesize>
# env.queue_crit <critical queuesize>
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=auto
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on whether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
# If run with the "config"-parameter, give out information on how the
# graphs should look.
HOME=/tmp/
VHOST=${vhost:-"/"}
FILTER=${filter:-"^(amq\.gen-.*|celery@.*\.pidbox|celeryev\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})"}
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
grep -v '^Listing' | \
grep -v 'done\.$' | \
grep -Ev $FILTER | \
sed -e 's/[.=-]/_/g' )
if [ "$1" = "config" ]; then
QUEUE_WARN=${queue_warn:-10000}
QUEUE_CRIT=${queue_crit:-20000}
# The host name this plugin is for. (Can be overridden to have
# one machine answer for several)
# The title of the graph
echo "graph_title RabbitMQ $VHOST list_queues"
# Arguments to "rrdtool graph". In this case, tell it that the
# lower limit of the graph is '0', and that 1k=1000 (not 1024)
echo 'graph_args --base 1000 -l 0'
# The Y-axis label
echo 'graph_vlabel queue_size'
# We want Cur/Min/Avg/Max unscaled (i.e. 0.42 load instead of
# 420 milliload)
#echo 'graph_scale no'
echo 'graph_category RabbitMQ'
for queue in $QUEUES; do
echo "$queue.label $queue"
echo "$queue.warning $QUEUE_WARN"
echo "$queue.critical $QUEUE_CRIT"
echo "$queue.info Queue size for $queue"
done
echo 'graph_info Lists how many messages are in each queue.'
# Last, if run with the "config"-parameter, quit here (don't
# display any data)
exit 0
fi
# If not run with any parameters at all (or only unknown ones), do the
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
HOME=$HOME rabbitmqctl list_queues -p $VHOST | \
grep -v "^Listing" | grep -v "done.$" | grep -Ev $FILTER | \
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
#!/bin/bash
#
# Plugin to monitor the queues of a virtual_host in RabbitMQ
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Parameters
# env.vhost <AMQ virtual host>
# env.queue_warn <warning queuesize>
# env.queue_crit <critical queuesize>
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=auto
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on whether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
# If run with the "config"-parameter, give out information on how the
# graphs should look.
HOME=/tmp/
VHOST=${vhost:-"/"}
FILTER=${filter:-"^(amq\.gen-.*|celery@.*\.pidbox|celeryev\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})"}
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
grep -v '^Listing' | \
grep -v 'done\.$' | \
grep -Ev $FILTER | \
sed -e 's/[.=-]/_/g' )
if [ "$1" = "config" ]; then
QUEUE_WARN=${queue_warn:-10000}
QUEUE_CRIT=${queue_crit:-20000}
# The host name this plugin is for. (Can be overridden to have
# one machine answer for several)
# The title of the graph
echo "graph_title RabbitMQ $VHOST Unacknowledged Messages"
# Arguments to "rrdtool graph". In this case, tell it that the
# lower limit of the graph is '0', and that 1k=1000 (not 1024)
echo 'graph_args --base 1000 -l 0'
# The Y-axis label
echo 'graph_vlabel unacknowledged'
# We want Cur/Min/Avg/Max unscaled (i.e. 0.42 load instead of
# 420 milliload)
#echo 'graph_scale no'
echo 'graph_category RabbitMQ'
for queue in $QUEUES; do
echo "$queue.label $queue"
echo "$queue.warning $QUEUE_WARN"
echo "$queue.critical $QUEUE_CRIT"
echo "$queue.info Unacknowledged messages for $queue"
done
echo 'graph_info Lists how many messages are in each queue.'
# Last, if run with the "config"-parameter, quit here (don't
# display any data)
exit 0
fi
# If not run with any parameters at all (or only unknown ones), do the
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
HOME=$HOME rabbitmqctl list_queues -p $VHOST name messages_unacknowledged | \
grep -v "^Listing" | grep -v "done.$" | grep -Ev $FILTER | \
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
#!/bin/bash
#
# Plugin to monitor the queues of a virtual_host in RabbitMQ
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Parameters
# env.vhost <AMQ virtual host>
# env.queue_warn <warning queuesize>
# env.queue_crit <critical queuesize>
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=auto
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on whether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
# If run with the "config"-parameter, give out information on how the
# graphs should look.
HOME=/tmp/
VHOST=${vhost:-"/"}
FILTER=${filter:-"^(amq\.gen-.*|celery@.*\.pidbox|celeryev\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})"}
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
grep -v '^Listing' | \
grep -v 'done\.$' | \
grep -Ev $FILTER | \
sed -e 's/[.=-]/_/g' )
if [ "$1" = "config" ]; then
QUEUE_WARN=${queue_warn:-10000}
QUEUE_CRIT=${queue_crit:-20000}
# The host name this plugin is for. (Can be overridden to have
# one machine answer for several)
# The title of the graph
echo "graph_title RabbitMQ $VHOST Uncommitted Messages"
# Arguments to "rrdtool graph". In this case, tell it that the
# lower limit of the graph is '0', and that 1k=1000 (not 1024)
echo 'graph_args --base 1000 -l 0'
# The Y-axis label
echo 'graph_vlabel uncommitted'
# We want Cur/Min/Avg/Max unscaled (i.e. 0.42 load instead of
# 420 milliload)
#echo 'graph_scale no'
echo 'graph_category RabbitMQ'
for queue in $QUEUES; do
echo "$queue.label $queue"
echo "$queue.warning $QUEUE_WARN"
echo "$queue.critical $QUEUE_CRIT"
echo "$queue.info Uncommitted messages for $queue"
done
echo 'graph_info Lists how many messages are in each queue.'
# Last, if run with the "config"-parameter, quit here (don't
# display any data)
exit 0
fi
# If not run with any parameters at all (or only unknown ones), do the
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
HOME=$HOME rabbitmqctl list_channels -p $VHOST name messages_uncommitted | \
grep -v "^Listing" | grep -v "done.$" | grep -Ev $FILTER | \
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
#!/bin/bash
#
# Plugin to monitor the queues of a virtual_host in RabbitMQ
#
# Usage: Link or copy into /etc/munin/node.d/
#
# Parameters
# env.vhost <AMQ virtual host>
# env.queue_warn <warning queuesize>
# env.queue_crit <critical queuesize>
#
# Magic markers (optional - only used by munin-config and some
# installation scripts):
#
#%# family=auto
#%# capabilities=autoconf
# If run with the "autoconf"-parameter, give our opinion on whether we
# should be run on this system or not. This is optinal, and only used by
# munin-config. In the case of this plugin, we should most probably
# always be included.
if [ "$1" = "autoconf" ]; then
echo yes
exit 0
fi
# If run with the "config"-parameter, give out information on how the
# graphs should look.
HOME=/tmp/
VHOST=${vhost:-"/"}
FILTER=${filter:-"^(amq\.gen-.*|celery@.*\.pidbox|celeryev\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})"}
QUEUES=$(HOME=$HOME rabbitmqctl list_queues -p $VHOST name | \
grep -v '^Listing' | \
grep -v 'done\.$' | \
grep -Ev $FILTER | \
sed -e 's/[.=-]/_/g' )
if [ "$1" = "config" ]; then
QUEUE_WARN=${queue_warn:-104857600} # 100 MB
QUEUE_CRIT=${queue_crit:-209715200} # 200 MB
# The host name this plugin is for. (Can be overridden to have
# one machine answer for several)
# The title of the graph
echo "graph_title RabbitMQ $VHOST Memory used by queue"
# Arguments to "rrdtool graph". In this case, tell it that the
# lower limit of the graph is '0', and that 1k=1000 (not 1024)
echo 'graph_args --base 1024 --vertical-label Bytes -l 0'
# The Y-axis label
echo 'graph_vlabel memory'
# We want Cur/Min/Avg/Max unscaled (i.e. 0.42 load instead of
# 420 milliload)
#echo 'graph_scale no'
echo 'graph_category RabbitMQ'
for queue in $QUEUES; do
echo "$queue.label $queue"
echo "$queue.warning $QUEUE_WARN"
echo "$queue.critical $QUEUE_CRIT"
echo "$queue.info Memory used by $queue"
done
echo 'graph_info Show memory usage by queue'
# Last, if run with the "config"-parameter, quit here (don't
# display any data)
exit 0
fi
# If not run with any parameters at all (or only unknown ones), do the
# real work - i.e. display the data. Almost always this will be
# "value" subfield for every data field.
HOME=$HOME rabbitmqctl list_queues -p $VHOST name memory | \
grep -v "^Listing" | grep -v "done.$" | \
perl -nle'($q, $s) = split; $q =~ s/[.=-]/_/g; print("$q.value $s")'
class profile::apache::common {
include ::apache
include ::apache::mod::status
include ::profile::munin::plugins::apache
}
# Munin master class
class profile::munin::master {
$master_hostname = lookup('munin::master::hostname')
$master_hostname_domain = join(delete_at(split($master_hostname, '[.]'), 0), '.')
$master_hostname_target = "${::hostname}.${master_hostname_domain}."
class { '::munin::master':
extra_config => ["cgiurl_graph http://$master_hostname"],
}
include ::profile::apache::common
include ::apache::mod::rewrite
include ::apache::mod::fcgid
$docroot = '/var/www/html'
file {$docroot:
ensure => directory,
owner => 'www-data',
group => 'www-data',
mode => '0755',
}
apache::vhost { $master_hostname:
port => 80,
docroot => $docroot,
rewrites => [
{
comment => 'static resources',
rewrite_rule => [
'^/favicon.ico /etc/munin/static/favicon.ico [L]',
'^/static/(.*) /etc/munin/static/$1 [L]',
],
},
{
comment => 'HTML',
rewrite_cond => [
'%{REQUEST_URI} .html$ [or]',
'%{REQUEST_URI} =/',
],
rewrite_rule => [
'^/(.*) /usr/lib/munin/cgi/munin-cgi-html/$1 [L]',
],
},
{
comment => 'Images',
rewrite_rule => [
'^/munin-cgi/munin-cgi-graph/(.*) /usr/lib/munin/cgi/munin-cgi-graph/$1 [L]',
'^/(.*) /usr/lib/munin/cgi/munin-cgi-graph/$1 [L]',
],
},
],
directories => [
{ 'path' => '/usr/lib/munin/cgi',
'options' => '+ExecCGI',
'sethandler' => 'fcgid-script'
},
{ 'path' => "${export_path}",
'options' => '+Indexes', # allow listing
}
],
ensure => 'absent',
}
}
# Munin node class
# Purge the munin node configuration
class profile::munin::node {
$munin_node_allow = lookup('munin::node::allow')
$munin_node_network = lookup('munin::node::network')
$munin_node_plugins_disable = lookup('munin::node::plugins::disable', Array, 'unique')
$munin_node_plugins_enable = lookup('munin::node::plugins::enable', Array, 'unique')
class { '::munin::node':
allow => $munin_node_allow,
address => ip_for_network($munin_node_network),
bind_address => ip_for_network($munin_node_network),
masterconfig => [
'',
'# The apt plugin doesn\'t graph by default. Let\'s make it.',
'apt.graph yes',
'apt.graph_category system',
'apt.graph_vlabel Total Packages',
'',
'# Move the libvirt plugins to a spaceless category',
'libvirt_blkstat.graph_category virtualization',
'libvirt_cputime.graph_category virtualization',
'libvirt_ifstat.graph_category virtualization',
'libvirt_mem.graph_category virtualization',
],
service {'munin-node':
ensure => stopped,
enable => false,
}
munin::plugin { $munin_node_plugins_enable:
ensure => link,
-> package {'munin-node':
ensure => purged,
}
munin::plugin { $munin_node_plugins_disable:
ensure => absent,
}
file_line { 'disable munin-node cron mail':
ensure => present,
path => '/etc/cron.d/munin-node',
line => 'MAILTO=""',
match => '^MAILTO=',
require => Package['munin-node'],
-> file {'/etc/munin':
ensure => absent,
recurse => true,
purge => true,
force => true,
}
}
# Munin plugins for Apache
class profile::munin::plugins::apache {
munin::plugin { 'apache_volume':
ensure => link,
}
munin::plugin { 'apache_accesses':
ensure => link,
}
munin::plugin { 'apache_processes':
ensure => link,
}
}
class profile::munin::plugins::postgresql {
munin::plugin { 'postgres_autovacuum':
ensure => link,
}
munin::plugin { 'postgres_bgwriter':
ensure => link,
}
munin::plugin { 'postgres_cache_ALL':
ensure => link,
target => 'postgres_cache_',
}
munin::plugin { 'postgres_checkpoints':
ensure => link,
}
munin::plugin { 'postgres_connections_ALL':
ensure => link,
target => 'postgres_connections_',
}
munin::plugin { 'postgres_connections_db':
ensure => link,
}
munin::plugin { 'postgres_locks_ALL':
ensure => link,
target => 'postgres_locks_'
}
munin::plugin { 'postgres_querylength_ALL':
ensure => link,
target => 'postgres_querylength_',
}
munin::plugin { 'postgres_scans_ALL':
ensure => link,
target => 'postgres_scans_',
}
munin::plugin { 'postgres_size_ALL':
ensure => link,
target => 'postgres_size_',
}
munin::plugin { 'postgres_streaming_ALL':
ensure => link,
target => 'postgres_streaming_',
}
munin::plugin { 'postgres_transactions_ALL':
ensure => link,
target => 'postgres_transactions_',
}
munin::plugin { 'postgres_tuples_ALL':
ensure => link,
target => 'postgres_tuples_',
}
munin::plugin { 'postgres_users':
ensure => link,
}
munin::plugin { 'postgres_xlog':
ensure => link,
}
package { 'libdbd-pg-perl':
ensure => 'present',
} -> Munin::Plugin <| |>
}
class profile::munin::plugins::rabbitmq {
$messages_warn = lookup('munin::plugins::rabbitmq::messages_warn')
$messages_crit = lookup('munin::plugins::rabbitmq::messages_crit')
$queue_memory_warn = lookup('munin::plugins::rabbitmq::queue_memory_warn')
$queue_memory_crit = lookup('munin::plugins::rabbitmq::queue_memory_crit')
munin::plugin {
'rabbitmq_connections':
ensure => present,
source => 'puppet:///modules/profile/munin/rabbitmq/rabbitmq_connections',
config => ['user root'];
'rabbitmq_consumers':
ensure => present,
source => 'puppet:///modules/profile/munin/rabbitmq/rabbitmq_consumers',
config => ['user root'];
'rabbitmq_messages':
ensure => present,
source => 'puppet:///modules/profile/munin/rabbitmq/rabbitmq_messages',
config => [
'user root',
"env.queue_warn ${messages_warn}",
"env.queue_crit ${messages_crit}",
];
'rabbitmq_messages_unacknowledged':
ensure => present,
source => 'puppet:///modules/profile/munin/rabbitmq/rabbitmq_messages_unacknowledged',
config => ['user root'];
'rabbitmq_messages_uncommitted':
ensure => present,
source => 'puppet:///modules/profile/munin/rabbitmq/rabbitmq_messages_uncommitted',
config => ['user root'];
'rabbitmq_queue_memory':
ensure => present,
source => 'puppet:///modules/profile/munin/rabbitmq/rabbitmq_queue_memory',
config => [
'user root',
"env.queue_warn ${queue_memory_warn}",
"env.queue_crit ${queue_memory_crit}",
];
}
}
class profile::rabbitmq {
include ::profile::munin::plugins::rabbitmq
$rabbitmq_vhost = '/'
$rabbitmq_user = lookup('rabbitmq::monitoring::user')
......
class role::swh_database inherits role::swh_base_database {
include profile::munin::plugins::postgresql
include profile::postgresql
include profile::megacli
}
class role::swh_munin_master inherits role::swh_server {
include profile::puppet::agent
include profile::munin::master
}
......@@ -15,7 +15,6 @@ class role::swh_sysadmin inherits role::swh_server {
include ::apache::mod::rewrite
include profile::bind_server::primary
include profile::munin::plugins::postgresql
include profile::annex_web
include profile::stats_web
......
......@@ -4,7 +4,6 @@ class role::swh_vault_test inherits role::swh_server {
include profile::swh::deploy::vault
include profile::swh::deploy::worker
include profile::munin::plugins::postgresql
include profile::postgresql
include profile::swh::deploy::objstorage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment