📄 snmp-graph.properties
字号:
########################################################################### G E N E R A L R E P O R T I N G S E T T I N G S ##########################################################################the input files (RRDs) must be in this directorycommand.input.dir=@install.share.dir@/rrd/snmp/command.prefix=@install.rrdtool.bin@ graph - --imgformat PNG --start {startTime} --end {endTime}#the command used to get the RRD infoinfo.command=@install.rrdtool.bin@ info#the output type of the image, should correspond to the type we #specified in the command.prefix variableoutput.mime=image/png########################################################################### P R E F A B R E P O R T S ########################################################################## In order to get a report (defined below) to be automatically generated# its name must be included in the "reports" variable.# NOTE: Because of the large format of the netsnmp.memStats report it# has been placed before netsnmp.cpuStats so that it looks better.## NOTE: Because of the large format of the netsnmp.cpuStats report, it# has been placed last so that it looks better. Everything else# should be in alphabetical order.reports=mib2.bits, mib2.discards, mib2.errors, mib2.HCbits, mib2.packets, \mib2.tcpopen, mib2.tcperrs, mib2.tcpsegs, \mib2.traffic-inout, \mib2.ups-amp, mib2.ups-charge, mib2.ups-temp, mib2.ups-time, mib2.ups-volt, \mib2printer.lifeCount, mib2printer.powerOnCount, \apc.load, apc.percent, apc.temp, apc.time, apc.vac, \checkpoint.pktsAccepted, checkpoint.pktsDropped, checkpoint.pktsLogged, checkpoint.pktsRejected, \cisco.altigaactsess, cisco.altigacpu, cisco.altigafanspeed, cisco.altigatemp, \cisco.altigatput, cisco.altigavoltage, cisco.altiga3volt, cisco.altiga5volt, \cisco.avgbusy5, cisco.bufferfails, cisco.buffhits, cisco.buffmiss, \cisco.ccmcti, cisco.ccmgs, cisco.ccmgw, cisco.ccmmd, cisco.ccmphones, \cisco.ccmps, cisco.ccmvm, \cisco.cike-bits, cisco.cike-dn, cisco.cike-fail, cisco.cike-init, cisco.cike-pkts, \cisco.cike-p2ex, cisco.cike-p2exinv, cisco.cike-p2exrej, cisco.cike-tunnels, \cisco.dropsin, cisco.dropsout, cisco.freemem, \cisco.firewall, cisco.memory, \cisco.pkts, cisco.protoin, cisco.protoout, cisco.temp, \cisco.4bb, cisco.80bb, cisco.256bb, cisco.1550bb, \extreme.currentTemp, \foundry.actualTemp, foundry.cpuUtil1Min, foundry.dynMemUtil, \hp.swbuffcorrupt, hp.swbufferfree, hp.swbufferinit, hp.swbuffermin, \hp.swbuffermiss, hp.swbuffersize, hp.swfreemem, hp.switchcpu, hp.swmemalloc, hp.swtotalmem, \hpux.cpu, hpux.memory, hpux.numFsMounted, hpux.numProcs, hpux.numUsers, hpux.swap, \juniper.bufferPoolUtil, juniper.cpu, juniper.temp, \mge.ambtemp, mge.ambhumid, mge.current, mge.level, mge.temp, mge.time, mge.voltage, \microsoft.cpuPercentBusy, microsoft.hrDisk2, microsoft.hrDisk3, microsoft.hrDisk4, microsoft.memory, \netsnmp.context, \netsnmp.disk1, netsnmp.disk1percent, netsnmp.disk2, netsnmp.disk2percent, \netsnmp.disk3, netsnmp.disk3percent, netsnmp.disk4, netsnmp.disk4percent, netsnmp.disk5, netsnmp.disk5percent, \netsnmp.hrMemory, netsnmp.hrNumUsers, netsnmp.interrupts, \netsnmp.hrSystemUptime, netsnmp.loadavg, netsnmp.swapinout, \netBotz.air, netBotz.humid, netBotz.temp, \nortel.kernelmem, nortel.kerneltasks, \novell.cacheBuffers, novell.codeDataMemory, novell.diskSpaceSys, \novell.diskSpaceVol2, novell.licensedConnections, novell.numberOfNLMsLoaded, novell.openFiles, \sinf.availmem, sinf.mempool, sinf.paging, sinf.processes, sinf.sysmem, \sinf.cpu0percent, sinf.cpu1percent, sinf.cpu2percent, sinf.cpu3percent, sinf.cputotalpercent, \sinf.diskfreeC, sinf.diskfreeD, sinf.diskfreeE, sinf.diskfreetotal, \sinf.exchange-is.vmfreeblks, sinf.exchange-is.users, \sun.cpuTime, sun.diskxfer, sun.interrupts, sun.packets, sun.paging, sun.procs, \sun.swap, sun.swapping, \netsnmp.memStats, \netsnmp.cpuStats# values available to prefab reports:# {rrd1}, {rrd2}, {rrd3}, ... must match the datasources exactly# {startTime}, {endTime}# any external values specified per report # Reports Generated From MIB-2 OIDs############################################################################report.mib2.bits.name=Bits In/Outreport.mib2.bits.columns=ifInOctets,ifOutOctetsreport.mib2.bits.type=interfacereport.mib2.bits.command=--title="Bits In/Out" \ DEF:octIn={rrd1}:ifInOctets:AVERAGE \ DEF:octOut={rrd2}:ifOutOctets:AVERAGE \ CDEF:rawbitsIn=octIn,8,* \ CDEF:rawbitsOut=octOut,8,* \ CDEF:rawtotBits=octIn,octOut,+,8,* \ CDEF:bitsIn=rawbitsIn,UN,0,rawbitsIn,IF \ CDEF:bitsOut=rawbitsOut,UN,0,rawbitsOut,IF \ CDEF:totBits=rawtotBits,UN,0,rawtotBits,IF \ CDEF:outSum=bitsOut,{diffTime},* \ CDEF:inSum=bitsIn,{diffTime},* \ CDEF:totSum=totBits,{diffTime},* \ AREA:totBits#54a4de:"Total" \ GPRINT:totBits:AVERAGE:" Avg \\: %8.2lf %s\\n" \ LINE2:rawbitsIn#000000:"Bits In" \ GPRINT:rawbitsIn:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:rawbitsIn:MIN:"Min \\: %8.2lf %s" \ GPRINT:rawbitsIn:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:rawbitsOut#cc0000:"Bits Out" \ GPRINT:rawbitsOut:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:rawbitsOut:MIN:"Min \\: %8.2lf %s" \ GPRINT:rawbitsOut:MAX:"Max \\: %8.2lf %s\\n" \ GPRINT:inSum:AVERAGE:" Tot In \\: %8.2lf %s" \ GPRINT:outSum:AVERAGE:" Tot Out \\: %8.2lf %s" \ GPRINT:totSum:AVERAGE:" Tot \\: %8.2lf %s\\n"report.mib2.discards.name=Discards In/Outreport.mib2.discards.columns=ifInDiscards,ifOutDiscardsreport.mib2.discards.type=interfacereport.mib2.discards.command=--title="Discards In/Out" \ DEF:octIn={rrd1}:ifInDiscards:AVERAGE \ DEF:octOut={rrd2}:ifOutDiscards:AVERAGE \ LINE2:octIn#000000:"Discards In" \ GPRINT:octIn:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:octIn:MIN:"Min \\: %8.2lf %s" \ GPRINT:octIn:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:octOut#cc0000:"Discards Out" \ GPRINT:octOut:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:octOut:MIN:"Min \\: %8.2lf %s" \ GPRINT:octOut:MAX:"Max \\: %8.2lf %s\\n"report.mib2.errors.name=Errors In/Outreport.mib2.errors.columns=ifInErrors,ifOutErrorsreport.mib2.errors.type=interfacereport.mib2.errors.command=--title="Errors In/Out" \ DEF:octIn={rrd1}:ifInErrors:AVERAGE \ DEF:octOut={rrd2}:ifOutErrors:AVERAGE \ LINE2:octIn#000000:"Errors In" \ GPRINT:octIn:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:octIn:MIN:"Min \\: %8.2lf %s" \ GPRINT:octIn:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:octOut#cc0000:"Errors Out" \ GPRINT:octOut:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:octOut:MIN:"Min \\: %8.2lf %s" \ GPRINT:octOut:MAX:"Max \\: %8.2lf %s\\n" report.mib2.HCbits.name=Bits In/Out (High Speed)report.mib2.HCbits.columns=ifHCInOctets,ifHCOutOctetsreport.mib2.HCbits.type=interfacereport.mib2.HCbits.command=--title="Bits In/Out (High Speed)" \ DEF:octIn={rrd1}:ifHCInOctets:AVERAGE \ DEF:octOut={rrd2}:ifHCOutOctets:AVERAGE \ CDEF:bitsIn=octIn,8,* \ CDEF:bitsOut=octOut,8,* \ LINE2:bitsIn#000000:"Bits In" \ GPRINT:bitsIn:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:bitsIn:MIN:"Min \\: %8.2lf %s" \ GPRINT:bitsIn:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:bitsOut#cc0000:"Bits Out" \ GPRINT:bitsOut:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:bitsOut:MIN:"Min \\: %8.2lf %s" \ GPRINT:bitsOut:MAX:"Max \\: %8.2lf %s\\n"report.mib2.octets.name=Bytes In/Outreport.mib2.octets.columns=ifInOctets,ifOutOctetsreport.mib2.octets.type=interfacereport.mib2.octets.command=--title="Bytes In/Out" \ DEF:octIn={rrd1}:ifInOctets:AVERAGE \ DEF:octOut={rrd2}:ifOutOctets:AVERAGE \ LINE2:octIn#000000:"Octets In" \ GPRINT:octIn:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:octIn:MIN:"Min \\: %8.2lf %s" \ GPRINT:octIn:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:octOut#cc0000:"Octets Out" \ GPRINT:octOut:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:octOut:MIN:"Min \\: %8.2lf %s" \ GPRINT:octOut:MAX:"Max \\: %8.2lf %s\\n" report.mib2.packets.name=Packets In/Outreport.mib2.packets.columns=ifInUcastpkts,ifOutUcastpktsreport.mib2.packets.type=interfacereport.mib2.packets.command=--title="Packets In/Out" \ DEF:pktsIn={rrd1}:ifInUcastpkts:AVERAGE \ DEF:pktsOut={rrd2}:ifOutUcastpkts:AVERAGE \ AREA:pktsIn#54a4de:"Packets In" \ GPRINT:pktsIn:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:pktsIn:MIN:"Min \\: %8.2lf %s" \ GPRINT:pktsIn:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:pktsOut#000000:"Packets Out" \ GPRINT:pktsOut:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:pktsOut:MIN:"Min \\: %8.2lf %s" \ GPRINT:pktsOut:MAX:"Max \\: %8.2lf %s\\n"report.mib2.tcpopen.name=TCP Open Connectionsreport.mib2.tcpopen.columns=tcpActiveOpens, tcpPassiveOpens, tcpCurrEstabreport.mib2.tcpopen.type=nodereport.mib2.tcpopen.command=--title="TCP Open Connections" \ DEF:actOpen={rrd1}:tcpActiveOpens:AVERAGE \ DEF:passOpen={rrd2}:tcpPassiveOpens:AVERAGE \ DEF:currEstab={rrd3}:tcpCurrEstab:AVERAGE \ LINE2:actOpen#000000:"Active " \ GPRINT:actOpen:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:actOpen:MIN:"Min \\: %8.2lf %s" \ GPRINT:actOpen:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:passOpen#cc0000:"Passive " \ GPRINT:passOpen:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:passOpen:MIN:"Min \\: %8.2lf %s" \ GPRINT:passOpen:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:currEstab#54a4de:"Current " \ GPRINT:currEstab:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:currEstab:MIN:"Min \\: %8.2lf %s" \ GPRINT:currEstab:MAX:"Max \\: %8.2lf %s\\n"report.mib2.tcperrs.name=TCP Errors and Failuresreport.mib2.tcperrs.columns=tcpAttemptFails, tcpEstabResets, tcpInErrors, tcpOutRstsreport.mib2.tcperrs.type=nodereport.mib2.tcperrs.command=--title="TCP Errors and Failures" \ DEF:fails={rrd1}:tcpAttemptFails:AVERAGE \ DEF:reset={rrd2}:tcpEstabResets:AVERAGE \ DEF:errors={rrd3}:tcpInErrors:AVERAGE \ DEF:rsts={rrd4}:tcpOutRsts:AVERAGE \ LINE2:fails#000000:"AttemptFails " \ GPRINT:fails:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:fails:MIN:"Min \\: %8.2lf %s" \ GPRINT:fails:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:reset#cc0000:"EstabResets " \ GPRINT:reset:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:reset:MIN:"Min \\: %8.2lf %s" \ GPRINT:reset:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:errors#54a4de:"InErrors " \ GPRINT:errors:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:errors:MIN:"Min \\: %8.2lf %s" \ GPRINT:errors:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:rsts#ff9834:"OutRsts " \ GPRINT:rsts:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:rsts:MIN:"Min \\: %8.2lf %s" \ GPRINT:rsts:MAX:"Max \\: %8.2lf %s\\n"report.mib2.tcpsegs.name=TCP Segmentsreport.mib2.tcpsegs.columns=tcpInSegs, tcpOutSegs, tcpRetransSegsreport.mib2.tcpsegs.type=nodereport.mib2.tcpsegs.command=--title="TCP Segments" \ DEF:inSegs={rrd1}:tcpInSegs:AVERAGE \ DEF:outSegs={rrd2}:tcpOutSegs:AVERAGE \ DEF:reSegs={rrd3}:tcpRetransSegs:AVERAGE \ LINE2:inSegs#000000:"In " \ GPRINT:inSegs:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:inSegs:MIN:"Min \\: %8.2lf %s" \ GPRINT:inSegs:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:outSegs#cc0000:"Out " \ GPRINT:outSegs:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:outSegs:MIN:"Min \\: %8.2lf %s" \ GPRINT:outSegs:MAX:"Max \\: %8.2lf %s\\n" \ LINE2:reSegs#54a4de:"Retrans " \ GPRINT:reSegs:AVERAGE:"Avg \\: %8.2lf %s" \ GPRINT:reSegs:MIN:"Min \\: %8.2lf %s" \ GPRINT:reSegs:MAX:"Max \\: %8.2lf %s\\n"report.mib2.traffic.name=Trafficreport.mib2.traffic.columns=ifInOctets,ifOutOctetsreport.mib2.traffic.type=interfacereport.mib2.traffic.externalValues=ifSpeedreport.mib2.traffic.command=--title="Traffic Utilization" \ DEF:octIn={rrd1}:ifInOctets:AVERAGE \ DEF:octOut={rrd2}:ifOutOctets:AVERAGE \ CDEF:percent=octIn,octOut,+,8,*,{ifSpeed},/,100,* \ LINE2:percent#000000:"Utilization" \ GPRINT:percent:AVERAGE:" Avg \\: %8.2lf %s" \ GPRINT:percent:MIN:"Min \\: %8.2lf %s" \ GPRINT:percent:MAX:"Max \\: %8.2lf %s\\n"report.mib2.traffic-inout.name=InOut Trafficreport.mib2.traffic-inout.columns=ifInOctets,ifOutOctetsreport.mib2.traffic-inout.type=interfacereport.mib2.traffic-inout.externalValues=ifSpeedreport.mib2.traffic-inout.command=--title="In/Out Traffic Utilization" \DEF:octIn={rrd1}:ifInOctets:AVERAGE \DEF:octOut={rrd2}:ifOutOctets:AVERAGE \CDEF:percentIn=octIn,8,*,{ifSpeed},/,100,* \CDEF:percentOut=octOut,8,*,{ifSpeed},/,100,* \LINE2:percentIn#000000:"In Utilization " \GPRINT:percentIn:AVERAGE:" Avg \\: %8.2lf %s" \GPRINT:percentIn:MIN:"Min \\: %8.2lf %s" \GPRINT:percentIn:MAX:"Max \\: %8.2lf %s\\n" \LINE2:percentOut#54a4de:"Out Utilization" \GPRINT:percentOut:AVERAGE:" Avg \\: %8.2lf %s" \GPRINT:percentOut:MIN:"Min \\: %8.2lf %s" \GPRINT:percentOut:MAX:"Max \\: %8.2lf %s\\n"report.mib2.ups-amp.name=UPS Currentreport.mib2.ups-amp.columns=upsBatteryCurrentreport.mib2.ups-amp.type=nodereport.mib2.ups-amp.command=--title="UPS Current" \DEF:currentRaw={rrd1}:upsBatteryCurrent:AVERAGE \CDEF:current=currentRaw,10,/ \LINE2:current#000000:"DC Amps " \GPRINT:current:AVERAGE:" Avg \\: %8.2lf %s" \GPRINT:current:MIN:"Min \\: %8.2lf %s" \GPRINT:current:MAX:"Max \\: %8.2lf %s\\n"report.mib2.ups-charge.name=UPS Charge Remainingreport.mib2.ups-charge.columns=upsEstChargeRemainreport.mib2.ups-charge.type=nodereport.mib2.ups-charge.command=--title="UPS Charge Remaining" \DEF:charge={rrd1}:upsEstChargeRemain:AVERAGE \LINE2:charge#000000:"% Charge Remaining " \GPRINT:charge:AVERAGE:" Avg \\: %8.2lf %s" \GPRINT:charge:MIN:"Min \\: %8.2lf %s" \GPRINT:charge:MAX:"Max \\: %8.2lf %s\\n"report.mib2.ups-temp.name=UPS Temperaturereport.mib2.ups-temp.columns=upsBatteryTempreport.mib2.ups-temp.type=nodereport.mib2.ups-temp.command=--title="UPS Temperature" \DEF:charge={rrd1}:upsBatteryTemp:AVERAGE \LINE2:charge#000000:"% Charge Remaining " \GPRINT:charge:AVERAGE:" Avg \\: %8.2lf %s" \GPRINT:charge:MIN:"Min \\: %8.2lf %s" \
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -