IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2013, 6:17:32 PM (13 years ago)
Author:
watersc1
Message:

I'm going to commit before I start moving everything around so that they're sane.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippm/FilesMonitoring/Supervision/node_status.py

    r35945 r35984  
    1010import datetime
    1111
     12bin_directory = "%s/%s/bin" % (os.environ['PSCONFDIR'], os.environ['PSCONFIG'])
     13share_directory = "%s/%s/share/filemon/" % (os.environ['PSCONFDIR'], os.environ['PSCONFIG'])
     14node_directory = '/export/%s/ipp_filemon/'
     15
    1216def process_arguments(argv):
    1317    if len(argv) == 1:
     
    1519        sys.exit(1)
    1620    elif argv[1] == 'all':
    17         nodesFilename = '/home/panstarrs/schastel/local/share/ippMhpccStorageNodes'
     21        nodesFilename = '%s/ippMhpccStorageNodes' % share_directory
    1822        nodesFile = open(nodesFilename)
    1923        nodes = []
     
    4549
    4650def get_seconds_since_last_message(ssh, node):
    47     logfilename = '/export/%s/schastel/logs/%s_refresh.log' % (node, node)
     51    logfilename = ('%s/%s' % (node_directory, '/logs/%s_refresh.log') % (node, node))
    4852    stdin, stdout, stderr = ssh.exec_command('tail -n 1 %s' % (logfilename))
    4953    for line in stdout:
Note: See TracChangeset for help on using the changeset viewer.