]> gitweb.fluxo.info Git - puppet-ejabberd.git/commitdiff
migrating that command to the nagios module
authormh <mh@immerda.ch>
Wed, 6 Apr 2011 08:34:59 +0000 (10:34 +0200)
committermh <mh@immerda.ch>
Wed, 6 Apr 2011 08:35:46 +0000 (10:35 +0200)
files/nagios/check_jabber_login [deleted file]
manifests/nagios.pp

diff --git a/files/nagios/check_jabber_login b/files/nagios/check_jabber_login
deleted file mode 100644 (file)
index dac0e1f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env ruby
-require 'rubygems'
-require 'xmpp4r'
-
-
-def usage
-  puts "#{$0} jabberid password"
-  exit 3
-end
-
-usage unless ARGV.size == 2
-
-begin
-      my_client = Jabber::Client.new(ARGV[0])
-      my_client.connect
-      my_client.auth(ARGV[1])
-rescue Jabber::ClientAuthenticationFailure => detail
-  puts "CRITICAL: Login Error"
-  exit 2
-rescue Errno::ECONNREFUSED => detail
-  puts "CRITICAL: Connection refused"
-  exit 2
-rescue SocketError => detail
-  puts "CRITICAL: Socket Error"
-  exit 2
-#rescue 
-#  puts "CRITICAL: Unknown Error"
-#  exit 2
-end
-puts "OK: Login for #{ARGV[0]} successfull"
index aed6df5ef8c9bbcff45a74daced35bbbb7a9b36f..85a7b108b921433414f76899c0e9c32eb972f300 100644 (file)
@@ -21,10 +21,6 @@ class ejabberd::nagios {
     '': { $jabber_nagios_user = 'nagios' }
   } 
 
-  nagios::plugin{'check_jabber_login':
-    source => 'ejabberd/nagios/check_jabber_login';
-  }
-
   @@nagios_command{
     'check_jabber_login':
       command_line => '$USER1$/check_jabber_login $ARG1$ $ARG2$',