|
From: Jeremy L. <jla...@re...> - 2016-09-30 00:47:24
|
Bruce
You can't do MATH on a SPEED value. ifOutSpeed will look something like
"1.2 Kbps". So you're trying to do something like:
ifOutLoad : MATH : (1.2Kbps / 2395) x 100
I suspect what you want is ifOutBps instead of ifOutSpeed:
ifInLoad : MATH : ({ifInBps} / {ifSpeed}) x 100
ifOutLoad : MATH : ({ifOutBps} / {ifSpeed}) x 100
J
On 23 July 2016 at 02:44, Bruce Ferrell <bfe...@ba...> wrote:
> another set of eye would be helpful here. snmpwalk works every time for
> the oids
>
> The error seen in the log:
>
> Error(s) while parsing 'ifOutSpeed'
>
> Error(s) while parsing 'ifInSpeed' on Mac-Mini
>
> My template:
>
> -oids:
>
> ifDescr : .1.3.6.1.2.1.2.2.1.2 : branch
> ifSpeed : .1.3.6.1.2.1.2.2.1.5 : branch
> ifInOctets : .1.3.6.1.2.1.2.2.1.10 : branch
> ifOutOctets : .1.3.6.1.2.1.2.2.1.16 : branch
>
> --Transforms:
>
> # Create a human-readable ifc speed
> # Get bit speed delta (so we dont have to provide custom delta limit)
> ifInOps : DELTA : {ifInOctets}
> ifOutOps : DELTA : {ifOutOctets}
> # Convert our octets delta into bits per second
> ifInBps : MATH : {ifInOps} x 8
> ifOutBps : MATH : {ifOutOps} x 8
> # Make some easily readable speed variables
> ifInSpeed : SPEED : {ifInBps}
> ifOutSpeed : SPEED : {ifOutBps}
> # Now determine our percentage load, based on traffic and ifc speed
> ifInLoad : MATH : ({ifInSpeed} / {ifSpeed}) x 100
> ifOutLoad : MATH : ({ifOutSpeed} / {ifSpeed}) x 100
> # Create an alias in a bracketed box, or nothing if alias is blank
> #ifAliasBox : REGSUB : {ifAlias} /(\S+.*)/ [$1]/
>
> --message:
>
> <b>Interface error rates:</b>
> Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}%
> Output load: yellow={ifOutLoad.thresh:yellow}%,
> red={ifOutLoad.thresh:red}%
> TABLE:rrd(DS:ds0:ifInOctets:DERIVE; DS:ds1:ifOutOctets:DERIVE)
> Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %)
> {ifDescr}|{ifSpeed}|{ifInLoad.color}{ifInSpeed}
> ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed}
> ({ifOutLoad}%){ifOutLoad.errors}
>
>
>
>
> ------------------------------------------------------------
> ------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> Devmon-support mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/devmon-support
>
|