Changeset 64
- Timestamp:
- 04/14/05 09:58:32 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugin/togap.py
r61 r64 5 5 DEBUG_LEVEL = 10 6 6 7 # If set to 1, in addition to multicasting with gmetric,8 # also transmit jobinfo data to a Toga server for archival9 #10 ARCHIVE_MODE = 011 12 # Where is the toga server at13 #14 #TOGA_SERVER = 'monitor2.irc.sara.nl:9048'15 16 7 # Wether or not to run as a daemon in background 17 8 # 18 9 DAEMONIZE = 0 19 10 20 # Allows to specify alternate config 21 # 22 #GMOND_CONF = '/etc/gmondconf' 11 # How many seconds interval for polling of jobs 12 # 13 # this will effect directly how accurate the 14 # end time of a job can be determined 15 # 16 TORQUE_POLL_INTERVAL = 10 23 17 24 18 from PBSQuery import PBSQuery … … 42 36 cmd = cmd + ' -c' + GMOND_CONF 43 37 except NameError: 44 debug_msg( 8, 'Assuming /etc/gmond.conf for gmetric cmd (ommitting)' )38 debug_msg( 10, 'Assuming /etc/gmond.conf for gmetric cmd (ommitting)' ) 45 39 46 40 cmd = cmd + ' -n' + metricname + ' -v' + metricval + ' -t' + tmax … … 48 42 print cmd 49 43 #os.system( cmd ) 50 51 def togaSubmitJob( self, jobid, jobattrs ):52 53 pass54 44 55 45 class PBSDataGatherer: … … 222 212 223 213 self.getJobData() 224 time.sleep( 1)214 time.sleep( TORQUE_POLL_INTERVAL ) 225 215 226 216 def printTime( ):
Note: See TracChangeset
for help on using the changeset viewer.