Permalink
Browse files

mule checks

  • Loading branch information...
1 parent be56645 commit 8f19763ec1d024d44f2cd68ba9e0318e8a5da883 @gediminasgu committed May 26, 2012
Showing with 18 additions and 3 deletions.
  1. +4 −0 files/scripts/check_jmx.sh
  2. +0 −1 files/scripts/check_version.sh
  3. +14 −2 manifests/checks.pp
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+DIR=`dirname $0`
+java -jar $DIR/check_jmx.jar "$@"
@@ -16,7 +16,6 @@ check_version_with_retry(){
fi
sleep 2
done
- echo "CRITICAL: Expected version not found."
exit $exit_code
}
View
@@ -3,7 +3,8 @@
# Creates default system-wide checks to be used by the puppi check command
#
class puppi::checks {
-
+ require puppi::params
+
puppi::check { 'NTP_Sync':
command => "check_ntp -H ${puppi::params::ntp}" ,
priority => '20' ,
@@ -46,6 +47,17 @@
hostwide => 'yes' ,
}
- Class['puppi::checks'] -> Class['puppi::is_installed']
+ file { "check_jmx.sh":
+ ensure => present,
+ path => "${puppi::params::checkpluginsdir}/check_jmx.sh",
+ source => "puppet:///modules/puppi/scripts/check_jmx.sh",
+ }
+ file { "check_jmx.jar":
+ ensure => present,
+ path => "${puppi::params::checkpluginsdir}/check_jmx.jar",
+ source => "puppet:///modules/puppi/scripts/check_jmx.jar",
+ }
+
+ Class['puppi::checks'] -> Class['puppi::is_installed']
}

0 comments on commit 8f19763

Please sign in to comment.