From 52eecbba9c2bd90aca53b25711093769f863fabb Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 6 Apr 2011 10:34:59 +0200 Subject: migrating that command to the nagios module --- files/nagios/check_jabber_login | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 files/nagios/check_jabber_login (limited to 'files') diff --git a/files/nagios/check_jabber_login b/files/nagios/check_jabber_login deleted file mode 100644 index dac0e1f..0000000 --- a/files/nagios/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" -- cgit v1.2.3