Ignore:
Timestamp:
03/10/06 15:10:23 (18 years ago)
Author:
bastiaans
Message:

jobarchived/examples:

  • added

jobmond/jobmond.py:

  • removed config option comments

jobarchived/jobarchived.py:

  • removed config option comments
  • added RRDTOOL option

jobmond/jobmond.conf:

  • added config option comments

jobarchived/jobarchived.conf:

  • added config option comments
  • added RRDTOOL option
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobarchived/jobarchived.py

    r214 r224  
    7575        cfg.read( filename )
    7676
    77         # Which metrics to exclude from archiving
    78         global DEBUG_LEVEL, USE_SYSLOG, SYSLOG_LEVEL, SYSLOG_FACILITY, GMETAD_CONF, ARCHIVE_XMLSOURCE, ARCHIVE_DATASOURCES, ARCHIVE_PATH, ARCHIVE_HOURS_PER_RRD, ARCHIVE_EXCLUDE_METRICS, JOB_SQL_DBASE, DAEMONIZE
    79 
    80         # Where to store the archived rrd's
    81         #
     77        global DEBUG_LEVEL, USE_SYSLOG, SYSLOG_LEVEL, SYSLOG_FACILITY, GMETAD_CONF, ARCHIVE_XMLSOURCE, ARCHIVE_DATASOURCES, ARCHIVE_PATH, ARCHIVE_HOURS_PER_RRD, ARCHIVE_EXCLUDE_METRICS, JOB_SQL_DBASE, DAEMONIZE, RRDTOOL
     78
    8279        ARCHIVE_PATH = cfg.get( 'DEFAULT', 'ARCHIVE_PATH' )
    8380
    84         # Amount of hours to store in one single archived .rrd
    85         #
    8681        ARCHIVE_HOURS_PER_RRD = cfg.getint( 'DEFAULT', 'ARCHIVE_HOURS_PER_RRD' )
    8782
    88         # Specify debugging level here (only when _not_ DAEMONIZE)
    89         #
    90         # 11 = XML: metrics
    91         # 10 = XML: host, cluster, grid, ganglia
    92         # 9  = RRD activity, gmetad config parsing
    93         # 8  = RRD file activity
    94         # 6  = SQL
    95         # 1  = daemon threading
    96         # 0  = errors
    97         #
    98         # default: 0
    9983        DEBUG_LEVEL = cfg.getint( 'DEFAULT', 'DEBUG_LEVEL' )
    10084
    101         # Enable logging to syslog?
    102         #
    10385        USE_SYSLOG = cfg.getboolean( 'DEFAULT', 'USE_SYSLOG' )
    10486
    105         # What level msg'es should be logged to syslog?
    106         #
    107         # default: lvl 0 (errors)
    108         #
    10987        SYSLOG_LEVEL = cfg.getint( 'DEFAULT', 'SYSLOG_LEVEL' )
    11088
    111         # Which facility to use in syslog
    112         #
    113         # Syntax I.e.:
    114         #       LOG_KERN, LOG_USER, LOG_MAIL, LOG_DAEMON, LOG_AUTH, LOG_LPR,
    115         #       LOG_NEWS, LOG_UUCP, LOG_CRON and LOG_LOCAL0 to LOG_LOCAL7
    116         #
    11789        try:
    11890
     
    12496                sys.exit( 1 )
    12597
    126         # Where is the gmetad.conf located
    127         #
    12898        GMETAD_CONF = cfg.get( 'DEFAULT', 'GMETAD_CONF' )
    12999
    130         # Where to grab XML data from
    131         # Normally: local gmetad (port 8651)
    132         #
    133         # Syntax: <hostname>:<port>
    134         #
    135100        ARCHIVE_XMLSOURCE = cfg.get( 'DEFAULT', 'ARCHIVE_XMLSOURCE' )
    136101
    137         # List of data_source names to archive for
    138         #
    139         # Syntax: [ "<clustername>", "<clustername>" ]
    140         #
    141102        ARCHIVE_DATASOURCES = getlist( cfg.get( 'DEFAULT', 'ARCHIVE_DATASOURCES' ) )
    142103
    143         # NOTE: This can be a regexp or a string
    144         #
    145104        ARCHIVE_EXCLUDE_METRICS = getlist( cfg.get( 'DEFAULT', 'ARCHIVE_EXCLUDE_METRICS' ) )
    146105
    147         # Toga's SQL dbase to use
    148         #
    149         # Syntax: <hostname>/<database>
    150         #
    151106        JOB_SQL_DBASE = cfg.get( 'DEFAULT', 'JOB_SQL_DBASE' )
    152107
    153         # Wether or not to run as a daemon in background
    154         #
    155108        DAEMONIZE = cfg.getboolean( 'DEFAULT', 'DAEMONIZE' )
    156109
     110        RRDTOOL = cfg.get( 'DEFAULT', 'RRDTOOL' )
     111
    157112        return True
    158 
    159 ###
    160 # You'll only want to change anything below here unless you
    161 # know what you are doing (i.e. your name is Ramon Bastiaans :D )
    162 ###
    163113
    164114# What XML data types not to store
     
    175125
    176126"""
    177 This is TOrque-GAnglia's data Daemon
     127The Job Archiving Daemon
    178128"""
    179129
     
    391341        """A class for performing RRD mutations"""
    392342
    393         binary = '/usr/bin/rrdtool'
     343        binary = RRDTOOL
    394344
    395345        def __init__( self, binary=None ):
Note: See TracChangeset for help on using the changeset viewer.