summaryrefslogtreecommitdiff
path: root/files/plugins
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-11 15:57:58 +0200
committermh <mh@immerda.ch>2010-08-11 15:57:58 +0200
commit01bb8dfee9c3981994d1697fc96470798445a050 (patch)
treedcd4266d6eeb8dc48ae1b69aacea53594e6560a8 /files/plugins
parent33b091b896fbb0b54ee9968c452ef2a8867893d8 (diff)
parenta5d8b5b8b1f4d5afcb549e28bf1eef12169b81c7 (diff)
Merge branch 'master' of git.puppet.immerda.ch:module-nagios
Diffstat (limited to 'files/plugins')
-rw-r--r--files/plugins/check_jabber_login30
1 files changed, 0 insertions, 30 deletions
diff --git a/files/plugins/check_jabber_login b/files/plugins/check_jabber_login
deleted file mode 100644
index dac0e1f..0000000
--- a/files/plugins/check_jabber_login
+++ /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"