Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add radsniff support #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions cgi-bin/collection.modified.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3268,6 +3268,49 @@ sub load_graph_definitions {
'GPRINT:avg:LAST:%9.3lf Last'
],
# nm-4Sept13 contextswitch - END
# mbr-2Nov20 radsniff BEGIN
radius_count => [ '-l', 0,
'--vertical-label', 'PPS',
'DEF:received={file}:received:AVERAGE',
'DEF:linked={file}:linked:AVERAGE',
'DEF:unlinked={file}:unlinked:AVERAGE',
'DEF:reused={file}:reused:AVERAGE',
'AREA:received#DD44CC:received',
'AREA:linked#66BBCC:linked',
'STACK:unlinked#7FFF00:unlinked',
'STACK:reused#FF8C00:reused'
],
radius_latency => [ '-l', 0,
'--vertical-label', 'Latency (ms)',
'DEF:high={file}:high:MAX',
'DEF:low={file}:low:MIN',
'DEF:avg={file}:avg:AVERAGE',
'CDEF:trend1800=avg,1800,TRENDNAN',
'CDEF:trend86400=avg,86400,TRENDNAN',
'LINE:high#66BBCC:high',
'LINE:low#DD44CC:low',
'LINE:avg#7FFF00:avg',
'LINE:trend1800#718D00:avg_30m',
'LINE:trend86400#946A00:avg_day'
],
radius_rtx => [ '-l', 0,
'--vertical-label', 'Requests completed per second',
'DEF:none={file}:none:AVERAGE',
'DEF:1={file}:1:AVERAGE',
'DEF:2={file}:2:AVERAGE',
'DEF:3={file}:3:AVERAGE',
'DEF:4={file}:4:AVERAGE',
'DEF:more={file}:more:AVERAGE',
'DEF:lost={file}:lost:AVERAGE',
'AREA:none#2AD400:none',
'STACK:1#4DB000:1',
'STACK:2#718D00:2',
'STACK:3#946A00:3',
'STACK:4#B84600:4',
'STACK:more#DB2300:more',
'STACK:lost#FF0000:lost'
],
# mbr-2Nov20 radsniff END
};
$GraphDefs->{'if_multicast'} = $GraphDefs->{'ipt_packets'};
$GraphDefs->{'if_tx_errors'} = $GraphDefs->{'if_rx_errors'};
Expand Down