projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add uptime plugin
[mirror/dsa-puppet.git]
/
modules
/
munin-node
/
manifests
/
init.pp
diff --git
a/modules/munin-node/manifests/init.pp
b/modules/munin-node/manifests/init.pp
index
699f4cf
..
9035878
100644
(file)
--- a/
modules/munin-node/manifests/init.pp
+++ b/
modules/munin-node/manifests/init.pp
@@
-1,8
+1,8
@@
-define activate_munin_check($ensure=present) {
+define activate_munin_check($ensure=present
, script=$name
) {
case $ensure {
present: {
file { "/etc/munin/plugins/$name":
case $ensure {
present: {
file { "/etc/munin/plugins/$name":
- ensure => "/usr/share/munin/plugins/$
name
",
+ ensure => "/usr/share/munin/plugins/$
script
",
notify => Exec["munin-node restart"];
}
}
notify => Exec["munin-node restart"];
}
}
@@
-36,6
+36,7
@@
class munin-node {
"open_inodes":;
"processes":;
"swap":;
"open_inodes":;
"processes":;
"swap":;
+ "uptime":;
"vmstat":;
}
"vmstat":;
}