diff options
author | mh <mh@immerda.ch> | 2010-06-28 22:34:30 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-06-28 22:34:30 +0200 |
commit | 99b97c407f448e2a1d0d5f4cabda4b78f05d4753 (patch) | |
tree | 102000d43b03be1e0f89ed701731fcbc685ba6bf /files | |
parent | 5a138b57821288d02e58a5f59bd45ce918ab797a (diff) |
adjust plugin stuff, so we can remotely specify new plugins
Diffstat (limited to 'files')
-rw-r--r-- | files/plugins/check_jabber_login | 30 |
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" |