From f7076c9c465c463a9aa82f33f6af3430b3bedcbe Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 9 Dec 2016 09:02:39 +0000 Subject: [PATCH] move ntp munin checks to ntp module --- modules/debian-org/manifests/init.pp | 2 -- modules/ntp/manifests/init.pp | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index 2f7b76d6b..2ead29406 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -71,8 +71,6 @@ class debian-org { 'irqstats', 'load', 'memory', - 'ntp_offset', - 'ntp_states', 'open_files', 'open_inodes', 'processes', diff --git a/modules/ntp/manifests/init.pp b/modules/ntp/manifests/init.pp index 751e9d96a..e180da195 100644 --- a/modules/ntp/manifests/init.pp +++ b/modules/ntp/manifests/init.pp @@ -40,6 +40,12 @@ class ntp { require => Package['ntp'], } + munin::check { [ + 'ntp_offset', + 'ntp_states', + ]: + } + if getfromhash($site::nodeinfo, 'timeserver') { include ntp::timeserver } else { -- 2.20.1