76
18.1 Legacy Series / Queue statistics
« on: January 29, 2018, 08:34:16 pm »
Hello folks,
I have a question regarding the monitoring scripts I'm writing.
I am trying to obtain queue information.
So from the ipfw manual:
Cool. So with /sbin/ipfw queue show I can get this output (same as shaper diag page):
Cool. Combine that with data from $config["OPNsense"]["TrafficShaper"] and away we go.
However, it seems that this only collect current information about the queues (i.e. backlog).
From the ipfw manual it's unclear as to how to interpret the output (or I am too confused to read it).
Before, on pf with altq we'd use the output from /sbin/pfctl -vsq, which would give incremental counters over intervals.
Is there a similar command or a better way to monitor queue statistics for nagios RRD graph generation?
I have a question regarding the monitoring scripts I'm writing.
I am trying to obtain queue information.
So from the ipfw manual:
Quote
Statistics
Per-flow queueing can be useful for a variety of purposes. A very simple one is counting traffic:
ipfw add pipe 1 tcp from any to any
ipfw add pipe 1 udp from any to any
ipfw add pipe 1 ip from any to any
ipfw pipe 1 config mask all
The above set of rules will create queues (and collect statistics) for all traffic. Because the pipes have no limitations, the only effect is collecting statistics. Note that we need 3 rules, not just the last one, because when ipfw tries to match IP packets it will not consider ports, so we would not see connections on separate ports as different ones.
Cool. So with /sbin/ipfw queue show I can get this output (same as shaper diag page):
Quote
q10006 50 sl. 1 flows (1 buckets) sched 10001 weight 50 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes Pkt/Byte Drp
0 ip 0.0.0.0/0 0.0.0.0/0 8 1528 0 0 0
q10007 50 sl. 0 flows (1 buckets) sched 10000 weight 50 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
q10004 50 sl. 1 flows (1 buckets) sched 10000 weight 99 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
0 ip 0.0.0.0/0 0.0.0.0/0 2863 2857626 0 0 167
q10005 50 sl. 1 flows (1 buckets) sched 10001 weight 95 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
0 ip 0.0.0.0/0 0.0.0.0/0 2 1300 0 0 0
q10002 50 sl. 1 flows (1 buckets) sched 10000 weight 80 lmax 1500 pri 0 AQM CoDel target 5ms interval 500ms NoECN
0 ip 0.0.0.0/0 0.0.0.0/0 6 960 0 0 0
q10003 50 sl. 0 flows (1 buckets) sched 10000 weight 75 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
q10000 50 sl. 0 flows (1 buckets) sched 10000 weight 20 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
q10001 50 sl. 0 flows (1 buckets) sched 10000 weight 70 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
q10008 50 sl. 0 flows (1 buckets) sched 10001 weight 60 lmax 1500 pri 0 AQM CoDel target 5ms interval 500ms NoECN
q10009 50 sl. 0 flows (1 buckets) sched 10001 weight 20 lmax 1500 pri 0 AQM CoDel target 5ms interval 100ms NoECN
Cool. Combine that with data from $config["OPNsense"]["TrafficShaper"] and away we go.
However, it seems that this only collect current information about the queues (i.e. backlog).
From the ipfw manual it's unclear as to how to interpret the output (or I am too confused to read it).
Before, on pf with altq we'd use the output from /sbin/pfctl -vsq, which would give incremental counters over intervals.
Is there a similar command or a better way to monitor queue statistics for nagios RRD graph generation?