snmp-graph.properties
"Ma, Hank" <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
Sorry here is the configuration I am trying to use in the checkpoint-graph.properties file:
##############################################################################
##
## Please add report definition in a new line to make it easier
## for script based sanity checks
##
##################################################
reports=netsnmp.rawcontext, \
netsnmp.cpuUsage, \
netsnmp.cpuUsageFull, \
netsnmp.cpuStats, \
netsnmp.cpuStatsFull, \
reports=checkpoint.pktsAccepted, \
checkpoint.pktsDropped, \
checkpoint.pktsLogged, \
checkpoint.pktsRejected, \
checkpoint.pktsEncrypted, \
checkpoint.pktsEncryptedErr, \
checkpoint.pktsOtherErr, \
checkpoint.connections
######
###### Reports Generated from Checkpoint Devices
######
report.netsnmp.cpuRaw.name=CPU Usage
report.netsnmp.cpuRaw.columns=CpuRawSystem, CpuRawUser
report.netsnmp.cpuRaw.type=node
report.netsnmp.cpuRaw.command=--title="CPU Use" \
DEF:cpuuses={rrd1}:CpuRawSystem:AVERAGE \
DEF:cpuuseu={rrd2}:CpuRawUser:AVERAGE \
CDEF:floats=cpuuses,100,/ \
CDEF:floatu=cpuuseu,100,/ \
LINE2:floats#0000ff:"System" \
GPRINT:floats:AVERAGE:"Avg \\: %10.2lf %s" \
GPRINT:floats:MIN:"Min \\: %10.2lf %s" \
GPRINT:floats:MAX:"Max \\: %10.2lf %s\\n" \
LINE2:floatu#00ff00:"User" \
GPRINT:floatu:AVERAGE:"Avg \\: %10.2lf %s" \
GPRINT:floatu:MIN:"Min \\: %10.2lf %s" \
GPRINT:floatu:MAX:"Max \\: %10.2lf %s\\n"
report.netsnmp.cpuStats.name=CPU Statistics
report.netsnmp.cpuStats.columns=loadavg1,loadavg5,loadavg15,CpuRawUser,CpuRawSystem,CpuRawIdle,CpuRawNice
report.netsnmp.cpuStats.type=node
report.netsnmp.cpuStats.command=--title="CPU Statistics" \
--units-exponent 0 \
--width 565 \
--height 200 \
--vertical-label Load \
-l 0 \
-r \
DEF:loadavg1={rrd1}:loadavg1:AVERAGE \
DEF:loadavg5={rrd2}:loadavg5:AVERAGE \
DEF:loadavg15={rrd3}:loadavg15:AVERAGE \
DEF:ssCpuRawUser={rrd4}:CpuRawUser:AVERAGE \
DEF:ssCpuRawSystem={rrd5}:CpuRawSystem:AVERAGE \
DEF:ssCpuRawIdle={rrd6}:CpuRawIdle:AVERAGE \
DEF:ssCpuRawNice={rrd7}:CpuRawNice:AVERAGE \
CDEF:float1=loadavg1,100,/ \
CDEF:float5=loadavg5,100,/ \
CDEF:float15=loadavg15,100,/ \
CDEF:cpuNumerator=ssCpuRawUser,ssCpuRawNice,+,ssCpuRawSystem,+ \
CDEF:cpuDivisor=ssCpuRawUser,ssCpuRawNice,+,ssCpuRawSystem,+,ssCpuRawIdle,+ \
CDEF:cpuUse=cpuNumerator,cpuDivisor,/,100,* \
CDEF:cpuUse10=0,cpuUse,GE,0,float15,IF \
CDEF:cpuUse20=10,cpuUse,GT,0,float15,IF \
CDEF:cpuUse30=20,cpuUse,GT,0,float15,IF \
CDEF:cpuUse40=30,cpuUse,GT,0,float15,IF \
CDEF:cpuUse50=40,cpuUse,GT,0,float15,IF \
CDEF:cpuUse60=50,cpuUse,GT,0,float15,IF \
CDEF:cpuUse70=60,cpuUse,GT,0,float15,IF \
CDEF:cpuUse80=70,cpuUse,GT,0,float15,IF \
CDEF:cpuUse90=80,cpuUse,GT,0,float15,IF \
CDEF:cpuUse100=90,cpuUse,GT,0,float15,IF \
COMMENT:"\\n<file:///\\n>" \
COMMENT:"CPU Utilization (%)\\n<file:///\\n>" \
COMMENT:" " \
AREA:cpuUse10#0066FF:" 0-10%" \
AREA:cpuUse20#00CCFF:"11-20%" \
AREA:cpuUse30#00FFFF:"21-30%" \
AREA:cpuUse40#00CC00:"31-40%" \
AREA:cpuUse50#00FF00:"41-50%" \
COMMENT:" " \
GPRINT:cpuUse:MIN:"Minimum \\: %2.1lf%%%s " \
GPRINT:cpuUse:MAX:"Maximum \\: %2.1lf%%%s" \
COMMENT:"\\n<file:///\\n>" \
COMMENT:" " \
AREA:cpuUse60#FFFF99:"51-60%" \
AREA:cpuUse70#FFFF00:"61-70%" \
AREA:cpuUse80#FFCC66:"71-80%" \
AREA:cpuUse90#FF9900:"81-90%" \
AREA:cpuUse100#FF0000:"91-100%" \
COMMENT:" " \
GPRINT:cpuUse:LAST:"Current \\: %2.1lf%%%s" \
GPRINT:cpuUse:AVERAGE:"Average \\: %2.1lf%%%s" \
COMMENT:"\\n<file:///\\n>" \
COMMENT:"\\n<file:///\\n>" \
COMMENT:"Load Average\\n" \
COMMENT:" " \
LINE1:float1#CC0099:"1 minute" \
COMMENT:" " \
GPRINT:float1:MIN:"Minimum \\: %.2lf" \
GPRINT:float1:MAX:" Maximum \\: %.2lf" \
COMMENT:"\\n<file:///\\n>" \
COMMENT:" " \
LINE1:float5#FF99CC:"5 minutes" \
COMMENT:" " \
GPRINT:float1:LAST:"Current \\: %.2lf" \
GPRINT:float1:AVERAGE:" Average \\: %.2lf" \
COMMENT:"\\n<file:///\\n>" \
COMMENT:" " \
LINE1:float15#000000:"15 minutes\\n" \
AREA:cpuUse10#0066FF \
AREA:cpuUse20#00CCFF \
AREA:cpuUse30#00FFFF \
AREA:cpuUse40#00CC00 \
AREA:cpuUse50#00FF00 \
AREA:cpuUse60#FFFF99 \
AREA:cpuUse70#FFFF00 \
AREA:cpuUse80#FFCC66 \
AREA:cpuUse90#FF9900 \
AREA:cpuUse100#FF0000 \
LINE1:float15#000000
Is this correct?
In 2017, 158 workers in B.C. lost their lives to workplace injury or disease. Join us in honouring their memory on April 28. Visit dayofmourning.bc.ca for a list of local ceremonies and to order your free decals and posters.
CONFIDENTIALITY DISCLAIMER
The information contained in this transmission may contain privileged and confidential information of WorkSafeBC - the Workers' Compensation Board. It is intended for review only by the person(s) named above. Dissemination, distribution or duplication of this communication is strictly prohibited by all recipients unless expressly authorized otherwise. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Thank you.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ
opennms-discuss mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss