Ignore:
Timestamp:
Nov 30, 2016, 6:20:04 PM (4 years ago)
Author:
mabarracus
Message:

Fix debugging mode into collector
Fix n4d checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/usr/sbin/analytics

    r2963 r2966  
    9090
    9191def check_server_acknowledge():
    92         c = xmlrpclib.ServerProxy("https://server:9779/")
    93         return c.get_variable("","VariablesManager","STATS_ENABLED")
     92        try:
     93            c = xmlrpclib.ServerProxy("https://server:9779/")
     94            return c.get_variable("","VariablesManager","STATS_ENABLED")
     95        except:
     96            return '0'
    9497#END def check_server_acknowledge()
    9598
     
    466469filename=''  #initializes as global when is called get_filename
    467470next_filename=get_filename(LOGPATH)
    468 debug("filename="+filename+' next='+next_filename)
    469471
    470472server = config.get('Server','server');
     
    489491INTERPRETERS = config.get('Audit','interpreters').split(',')
    490492
    491 
     493debug("filename="+filename+' next='+next_filename)
    492494
    493495if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.