Changeset 375


Ignore:
Timestamp:
02/03/12 09:43:59 (4 months ago)
Author:
nelsonab
Message:

sync svn with local

Location:
trunk/ruby
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ruby/api/zbxapi.rb

    r371 r375  
    202202    rescue Errno::ECONNREFUSED 
    203203      raise ZbxAPI_ExceptionBadServerUrl 
     204    rescue => e 
     205      raise ZbxAPI_ExceptionBadAuth.new('General Login error, check host connectivity.') 
    204206    end 
    205207  end 
  • trunk/ruby/api/zbxapi/revision.rb

    r371 r375  
    55 
    66ZBXAPI_VERSION="0.1" 
    7 ZBXAPI_REVISION="369" 
     7ZBXAPI_REVISION="371" 
  • trunk/ruby/zabcon/libs/zabbix_server.rb

    r374 r375  
    105105  def login(server={}) 
    106106    @credentials.merge!(server) 
    107     #@server_url = server["server"] || @server_url 
    108     #@username = server["username"] || @username 
    109     #@password = server["password"] || @password 
    110107 
    111108    error_msg=[] 
  • trunk/ruby/zabcon/libs/zabcon_commands.rb

    r372 r375  
    364364  #  params 
    365365  #end 
    366   set_flag :login_required 
     366#  set_flag :login_required 
    367367  set_flag :print_output 
    368368  set_help_tag :raw_api 
  • trunk/ruby/zabcon/libs/zabcon_core.rb

    r373 r375  
    165165    rescue ZbxAPI_ExceptionLoginPermission 
    166166      puts "Failed to load previous session key" if env["echo"] 
     167    rescue Errno::ECONNREFUSED 
     168      puts "Failed to load previous session key" if env["echo"] 
    167169    end 
    168170 
     
    179181      rescue ZbxAPI_ExceptionLoginPermission 
    180182        puts "Error Invalid login or no API permissions." 
     183      rescue ZbxAPI_ExceptionBadServerUrl 
     184        puts "Error connecting to server"   #TODO Fix message to show hostname 
    181185      end 
    182186    end 
Note: See TracChangeset for help on using the changeset viewer.