forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make plugins passing the $interval parameter
only for those using collectd::plugin
- Loading branch information
txaj
committed
Dec 11, 2014
1 parent
3fae4b2
commit 2190a9e
Showing
46 changed files
with
206 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:ContextSwitch | ||
class collectd::plugin::contextswitch ( | ||
$ensure = present, | ||
$ensure = present, | ||
$interval = undef, | ||
) { | ||
collectd::plugin {'contextswitch': | ||
ensure => $ensure | ||
ensure => $ensure, | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:CPU | ||
class collectd::plugin::cpu ( | ||
$ensure = present, | ||
$ensure = present, | ||
$interval = undef, | ||
) { | ||
collectd::plugin {'cpu': | ||
ensure => $ensure | ||
ensure => $ensure, | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:Entropy | ||
class collectd::plugin::entropy ( | ||
$ensure = present, | ||
$ensure = present, | ||
$interval = undef, | ||
) { | ||
|
||
collectd::plugin {'entropy': | ||
ensure => $ensure, | ||
ensure => $ensure, | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:IPTables | ||
class collectd::plugin::iptables ( | ||
$ensure = present, | ||
$chains = {}, | ||
$ensure = present, | ||
$chains = {}, | ||
$interval = undef, | ||
) { | ||
validate_hash($chains) | ||
|
||
collectd::plugin {'iptables': | ||
ensure => $ensure, | ||
content => template('collectd/plugin/iptables.conf.erb'), | ||
ensure => $ensure, | ||
content => template('collectd/plugin/iptables.conf.erb'), | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:Load | ||
class collectd::plugin::load ( | ||
$ensure = present, | ||
$ensure = present, | ||
$interval = undef, | ||
) { | ||
collectd::plugin {'load': | ||
ensure => $ensure | ||
ensure => $ensure, | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:LogFile | ||
class collectd::plugin::logfile ( | ||
$ensure = present, | ||
$interval = undef, | ||
$log_level = 'info', | ||
$log_file = '/var/log/collectd.log', | ||
$log_timestamp = true | ||
) { | ||
collectd::plugin { 'logfile': | ||
ensure => $ensure, | ||
content => template('collectd/plugin/logfile.conf.erb'), | ||
ensure => $ensure, | ||
content => template('collectd/plugin/logfile.conf.erb'), | ||
interval => $interval, | ||
# Load logging plugin first | ||
# https://github.com/pdxcat/puppet-module-collectd/pull/166#issuecomment-50591413 | ||
order => '05', | ||
order => '05', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:memcached | ||
class collectd::plugin::memcached ( | ||
$ensure = present, | ||
$host = '127.0.0.1', | ||
$port = 11211, | ||
$ensure = present, | ||
$host = '127.0.0.1', | ||
$interval = undef, | ||
$port = 11211, | ||
) { | ||
collectd::plugin {'memcached': | ||
ensure => $ensure, | ||
content => template('collectd/plugin/memcached.conf.erb'), | ||
ensure => $ensure, | ||
content => template('collectd/plugin/memcached.conf.erb'), | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:Memory | ||
class collectd::plugin::memory ( | ||
$ensure = present, | ||
$ensure = present, | ||
$interval = undef, | ||
) { | ||
collectd::plugin {'memory': | ||
ensure => $ensure | ||
ensure => $ensure, | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# MySQL plugin | ||
# https://collectd.org/wiki/index.php/Plugin:MySQL | ||
class collectd::plugin::mysql { | ||
collectd::plugin { 'mysql': } | ||
class collectd::plugin::mysql ( | ||
$interval = undef, | ||
){ | ||
collectd::plugin { 'mysql': | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# https://collectd.org/wiki/index.php/Plugin:NFS | ||
class collectd::plugin::nfs ( | ||
$ensure = present, | ||
$ensure = present, | ||
$interval = undef, | ||
) { | ||
collectd::plugin {'nfs': | ||
ensure => $ensure | ||
ensure => $ensure, | ||
interval => $interval, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.