Esempio n. 1
0
 def getColumns(self):
     ##      alias/dp id : column name
     return [ Column( 'deviceName', PythonColumnHandler( 'device.titleOrId()' ) ),
              Column('device_url', PythonColumnHandler( 'device.getDeviceUrl()' )),
              Column( 'mount', PythonColumnHandler( 'component.mount' ) ),
              Column( 'usedBytes', RRDColumnHandler( 'usedFilesystemSpace__bytes' ) ),
              Column( 'totalBytes', PythonColumnHandler( 'component.totalBytes()' ) ) ]
 def getColumns(self):
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('SLA', PythonColumnHandler('component.name()')),
         Column('Jitter',
                RRDColumnHandler('rttMonLatestJitterOperAvgJitter')),
     ]
Esempio n. 3
0
 def getColumns(self):
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('TemPagerTempSensor',
                PythonColumnHandler('component.name()')),
         Column('Temp', RRDColumnHandler('TemPagerTempSensor_C')),
     ]
Esempio n. 4
0
 def getColumns(self):
     ##      alias/dp id : column name
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('laLoadInt5', RRDColumnHandler('loadAverage5min')),
         Column('cpuPercent', RRDColumnHandler('cpu__pct'))
     ]
Esempio n. 5
0
 def getColumns(self):
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('SLA', PythonColumnHandler('component.name()')),
         Column('RTT',
                RRDColumnHandler('rttMonLatestRttOperCompletionTime')),
     ]
Esempio n. 6
0
 def getCompositeColumns(self):
     return [
         Column('availableBytes',
                PythonColumnHandler('totalBytes - usedBytes')),
         Column(
             'percentFull',
             PythonColumnHandler(
                 'totalBytes and ' +
                 '( 100 - float(availableBytes) * 100 / float(totalBytes) )'
                 + ' or None'))
     ]
Esempio n. 7
0
 def getCompositeColumns(self):
     return [
         Column(
             'availableReal',
             PythonColumnHandler(
                 'getAvailableReal( availableReal_tmp, buffered, cached )',
                 dict(getAvailableReal=_getAvailableReal))),
         Column(
             'percentUsed',
             PythonColumnHandler(
                 'getPercentUtilization(availableReal,totalReal,usedPercent_tmp)',
                 dict(getPercentUtilization=_getPercentUtilization)))
     ]
Esempio n. 8
0
 def getCompositeColumns(self):
     return [
         Column(
             'availableBytes',
             PythonColumnHandler(
                 'totalBytes - usedBytes if totalBytes is not None and usedBytes is not None else 0'
             )),
         Column(
             'percentFull',
             PythonColumnHandler(
                 '(100 - float(availableBytes) * 100 / float(totalBytes)) if totalBytes is not None and availableBytes is not None else None'
             ))
     ]
Esempio n. 9
0
 def getCompositeColumns(self):
     return [
         Column('ipAddress',
                PythonColumnHandler('multiIpAddress or tmp_ipAddress')),
         Column(
             'inputBits',
             PythonColumnHandler(
                 'input * 8 if input is not None else "N/A"')),
         Column(
             'outputBits',
             PythonColumnHandler(
                 'output * 8 if output is not None else "N/A"')),
         Column(
             'total',
             PythonColumnHandler(
                 '(input if input is not None else 0) + (output if output is not None else 0)'
             )),
         Column(
             'totalBits',
             PythonColumnHandler(
                 '(input + output) * 8 if input is not None and output is not None else "N/A"'
             )),
         Column(
             'percentUsed',
             PythonColumnHandler(
                 # total == total is False if total is NaN
                 '((long(total) if total == total else total) * 8)'
                 '* 100.0 / speed'))
     ]
Esempio n. 10
0
 def getColumns(self):
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('device_url', PythonColumnHandler('device.getDeviceUrl()')),
         Column('totalReal', PythonColumnHandler('device.hw.totalMemory')),
         Column('availableReal_tmp',
                RRDColumnHandler('memoryAvailable__bytes')),
         Column('buffered', RRDColumnHandler('memoryBuffered__bytes')),
         Column('cached', RRDColumnHandler('memoryCached__bytes')),
         Column('usedPercent_tmp', RRDColumnHandler('memoryUsed__pct'))
     ]
Esempio n. 11
0
 def getColumns(self):
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('interface', PythonColumnHandler('component.name()')),
         Column('macAddress', PythonColumnHandler('component.macaddress')),
         Column(
             'multiIpAddress',
             PythonColumnHandler(
                 '"(multiple)" if len(component.ipaddresses()) > 1 else ""')
         ),
         Column(
             'tmp_ipAddress',
             PythonColumnHandler(
                 'component.ipaddresses()[0].id if len(component.ipaddresses()) == 1 else ""'
             )),
         Column('interface', PythonColumnHandler('component.name()')),
         Column('speed', PythonColumnHandler('component.speed')),
         Column('input', RRDColumnHandler('inputOctets__bytes')),
         Column('output', RRDColumnHandler('outputOctets__bytes')),
         Column(
             'status',
             PythonColumnHandler(
                 '"Up" if component.getStatus()==0 else "Down"'))
     ]
Esempio n. 12
0
 def getColumns(self):
     ##      alias/dp id : column name
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('instance',
                PythonColumnHandler('component.getDBSrvInstLink()')),
         Column('dbname', PythonColumnHandler('component.dbname')),
         Column('type', PythonColumnHandler('component.type')),
         Column('usedBytes', PythonColumnHandler('component.usedBytes()')),
         Column('totalBytes', PythonColumnHandler('component.totalBytes()'))
     ]
 def getColumns(self):
     return [
         Column('deviceName', PythonColumnHandler('device.titleOrId()')),
         Column('color', PythonColumnHandler('component.name()')),
         Column(
             'description',
             PythonColumnHandler('component.prtMarkerSuppliesDescription')),
         Column('type',
                PythonColumnHandler('component.PrtMarkerSuppliesTypeTC')),
         Column(
             'maxinkusage',
             PythonColumnHandler('component.prtMarkerSuppliesMaxCapacity')),
         Column('currinkusage',
                PythonColumnHandler('component.prtMarkerSuppliesLevel')),
     ]
Esempio n. 14
0
 def getCompositeColumns(self):
     return [Column('MOS', PythonColumnHandler('float(RawMOS)/float(100)'))]
 def getCompositeColumns(self):
     return [
         Column('inkused',
                PythonColumnHandler('(currinkusage * 100) / maxinkusage')),
     ]