Small Juniper routers do not get memory/cpu graphed correctly, although data is collected successfully.

Description

The problem seems to be the graph definitions for the cpu, memory and temperature. I think whoever wrote the graphs assumed that the router would have a number of different cards reporting statistics, but the graphs don't draw unless the first jrb is populated, no matter if the rest are.

eg.

the Opennms provided Juniper cpu graph config is.

#######################
report.juniper.cpu.name=CPU Utilization (Juniper)
report.juniper.cpu.columns=juniperCpuFeb,juniperCpuFpc0,juniperCpuRe
report.juniper.cpu.type=nodeSnmp
report.juniper.cpu.command=--title="CPU Utilization" \ DEF:val1={rrd1}:juniperCpuFeb:AVERAGE \ DEF:minVal1={rrd1}:juniperCpuFeb:MIN \ DEF:maxVal1={rrd1}:juniperCpuFeb:MAX \ DEF:val2={rrd2}:juniperCpuFpc0:AVERAGE \ DEF:minVal2={rrd2}:juniperCpuFpc0:MIN \ DEF:maxVal2={rrd2}:juniperCpuFpc0:MAX \ DEF:val3={rrd3}:juniperCpuRe:AVERAGE \ DEF:minVal3={rrd3}:juniperCpuRe:MIN \ DEF:maxVal3={rrd3}:juniperCpuRe:MAX \ LINE2:val1#0000ff:"Slot FEB CPU Level " \ GPRINT:val1:AVERAGE:" Avg
: %8.2lf %s" \ GPRINT:val1:MIN:"Min
: %8.2lf %s" \ GPRINT:val1:MAX:"Max
: %8.2lf %s
n" \ LINE2:val2#ff0000:"Slot FPC0 CPU Level" \ GPRINT:val2:AVERAGE:" Avg
: %8.2lf %s" \ GPRINT:val2:MIN:"Min
: %8.2lf %s" \ GPRINT:val2:MAX:"Max
: %8.2lf %s
n" \ LINE2:val3#00ff00:"Routing Engine CPU " \ GPRINT:val3:AVERAGE:" Avg
: %8.2lf %s" \ GPRINT:val3:MIN:"Min
: %8.2lf %s" \ GPRINT:val3:MAX:"Max
: %8.2lf %s
n"
#################

The graph doesn't get drawn - even though juniperCpuRe jrb file is populated.

If I change the graph definition to just include the my populated JRB...

############
report.juniper.cpu.name=CPU Utilization (Juniper)
report.juniper.cpu.columns=juniperCpuRe
report.juniper.cpu.type=nodeSnmp
report.juniper.cpu.command=--title="CPU Utilization" \ DEF:val1={rrd1}:juniperCpuRe:AVERAGE \ DEF:minVal1={rrd1}:juniperCpuRe:MIN \ DEF:maxVal1={rrd1}:juniperCpuRe:MAX \ LINE2:val1#00ff00:"Routing Engine CPU " \ GPRINT:val1:AVERAGE:" Avg
: %8.2lf %s" \ GPRINT:val1:MIN:"Min
: %8.2lf %s" \ GPRINT:val1:MAX:"Max
: %8.2lf %s
n"
#################

Then the graph gets drawn.

I think the graphs need to be split out into the component parts, instead of lumping them together. Unless there's a sneakier way of using a single graph template for multiple similar JRB files.

This occurs for the memory, temperature and CPU usage on Juniper SRX routers.

regards

James M

Environment

Operating System: Linux Platform: PC

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

PagerDuty

Created October 21, 2009 at 12:06 PM
Updated September 21, 2021 at 6:22 PM