[mrtg] Re: ifAdminHack & ifOperHack

Kevin Sheard kevin.sheard at kingston-internet.net
Wed Aug 25 17:13:22 MEST 1999


Neil

This works

Target[e1_0_1.ifoper]:ifOperHack.4&ifOperHack.5:ctty_string at router
MaxBytes[e1_0_1.ifoper]: 1
Title[e1_0_1.ifoper]: appleton Interface Status : E1 0 & E1 1
Options[e1_0_1.ifoper]: growright, gauge, nopercent, integer
Unscaled[E1_0_1.ifoper]: dwmy
YLegend[e1_0_1.ifoper]: Up/Down
ShortLegend[e1_0_1.ifoper]: ^
LegendI[e1_0_1.ifoper]: E1 0
LegendO[e1_0_1.ifoper]: E1 1
PageTop[e1_0_1.ifoper]: <H1>Interface status for E1 0 & E1 1</H1>
 <TABLE>
  <TR><TD>System:</TD><TD></TD></TR>
  <TR><TD>Maintainer:</TD><TD></TD></TR>
  <TR><TD>Interface:</TD><TD></TD></TR>
  <TR><TD>IP:</TD><TD></TD></TR>
  <TR><TD>Max Speed:</TD>
      <TD></TD></TR>
 </TABLE>

1) MaxBytes is 1 (up or down) - You're not graphing the bandwidth
2) Options ties the scaling down
3) Legends makes the graph make sense

Hope this helps

Kev

Neil Calvert wrote:

> Hi All,
>
> Is anyone using the ifAdminHack and ifOperHack as mentioned in the mib helpfile
> with MRTG successfully? I'm trying to implement this but my cfg file just
> returns blank graphs. No errors - just blank!
>
> The relevant portion of the cfg is as follows. I appended .1 to ifAdminHack and
> ifOperHack since I'm monitoring ethernet port one of this specific device.
> Anyone got any ideas??
>
> ---
>
> Target[CSX_eth_status_Port_1]: ifAdminHack.1&ifOperHack.1:public at 10.7.20.6
> MaxBytes[CSX_eth_status_Port_1]: 1250000
> Title[CSX_eth_status_Port_1]:  (vitts_CSX_eth): EnetPort 1
> PageTop[CSX_eth_status_Port_1]: <H1>Administrative and Operational Status - Port
> 1
>  </H1>
>  <TABLE>
>    <TR><TD>System:</TD><TD> Vitts CSX One </TD></TR>
>    <TR><TD>Maintainer:</TD><TD> Neil Calvert </TD></TR>
>    <TR><TD>Interface:</TD><TD>EnetPort 1 (1)</TD></TR>
>    <TR><TD>IP:</TD><TD>CSX_eth (10.7.20.6)</TD></TR>
>    <TR><TD>Max Speed:</TD>
>        <TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>
>   </TABLE>
> YLegend[CSX_eth_status_Port_1]: Port Status
> ShortLegendCSX_eth_status_Port_1]: Status
> Legend1[CSX_eth_status_Port_1]: Administrative Status (1=Up Other=Down)
> Legend2[CSX_eth_status_Port_1]: Operational Status (1=Up Other=Down)
> Legend3[CSX_eth_status_Port_1]:
> Legend4[CSX_eth_status_Port_1]:
> LegendI[CSX_eth_status_Port_1]: &nbsp;Up/Down:
> LegendO[CSX_eth_status_Port_1]: &nbsp;Up/Down:
> #---------------------------------------------------------------
>
> --
> Neil Calvert
> Remote Services
>
> --
> * To unsubscribe from the mrtg mailing list, send a message with the
>   subject: unsubscribe to mrtg-request at list.ee.ethz.ch
> * The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kevin.sheard.vcf
Type: text/x-vcard
Size: 231 bytes
Desc: Card for Kevin Sheard
Url : https://lists.oetiker.ch/pipermail/mrtg/attachments/19990825/12dba607/attachment.vcf 


More information about the mrtg mailing list