Ignore:
Timestamp:
07/08/07 22:58:56 (17 years ago)
Author:
bastiaans
Message:

Makefile:

  • updated rpm-jobmond

jobmond/jobmond.py:

  • fix to pidfile arg parsing
  • fix to native gmetric unit handling

pkg/rpm/init.d/jobmond:

  • updated as a proper redhat based init script

pkg/rpm/jobmonarch-jobmond.spec:

  • call chkconfig in preun not postun
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jobmond/jobmond.py

    r425 r431  
    4242def processArgs( args ):
    4343
    44         SHORT_L         = 'hc:'
    45         LONG_L          = [ 'help', 'config=' ]
     44        SHORT_L         = 'p:hc:'
     45        LONG_L          = [ 'help', 'config=', 'pidfile=' ]
    4646
    4747        global PIDFILE
     
    894894GMETRIC_DEFAULT_HOST    = '127.0.0.1'
    895895GMETRIC_DEFAULT_PORT    = '8649'
     896GMETRIC_DEFAULT_UNITS   = ''
    896897
    897898class Gmetric:
     
    920921
    921922                self.hostport   = ( host, int( port ) )
    922                 self.type       = GMETRIC_DEFAULT_TYPE
    923                 self.unitstr    = ''
    924923                self.slopestr   = 'both'
    925924                self.tmax       = 60
     
    938937                        return 'udp'
    939938
    940         def send( self, name, value, dmax, type = '', units = '' ):
     939        def send( self, name, value, dmax, typestr = '', units = '' ):
    941940
    942941                if len( units ) == 0:
    943                         units           = self.unitstr
    944                 if len( type ) == 0:
    945                         typestr         = self.type
     942                        units           = GMETRIC_DEFAULT_UNITS
     943                if len( typestr ) == 0:
     944                        typestr         = GMETRIC_DEFAULT_TYPE
    946945
    947946                msg             = self.makexdr( name, value, typestr, units, self.slopestr, self.tmax, dmax )
Note: See TracChangeset for help on using the changeset viewer.