2000/09/04: I've found out that a newer of PM3Lines.pl made by Butch Kemper is included in the newer versions of MRTG. Please check the contrib directory and use PMLines instead of this version.


Here you can find the latest version of my script PM3Lines.pl.

This script can be used to check the lines used on a Lucent Portmaster 3 in respect of modems used and on ISDN lines used. Here's a screenshot:


Here's how to generate it:
Target[portmaster]: `/usr/local/mrtg/PM3Lines.pl public@portmaster`
WithPeak[portmaster]: wym
Directory[portmaster]: data
Options[portmaster]: growright, absolute, gauge
MaxBytes[portmaster]: 60
AbsMax[portmaster]: 60
Title[portmaster]: portmaster.domain.com : MODEMS/RDIS
Unscaled[portmaster]: dwyn
YLegend[portmaster]: Interfaces
Colours[portmaster]: GOLDENROD#D2A13B,BLUE1#0000ff,DARK GREEN#006600,VIOLET#ff00ff
XSize[portmaster]: 340
YSize[portmaster]: 100
ShortLegend[portmaster]: if's
Legend1[portmaster]: Modems
Legend2[portmaster]: ISDN
Legend3[portmaster]: Maximal 5 Minute Modems
Legend4[portmaster]: Maximal 5 Minute ISDN
LegendI[portmaster]:   modems:
LegendO[portmaster]:   ISDN:
PageTop[portmaster]: <H1>Interface Number for portmaster.domain.com
 <BR>portmaster.domain.com Interfaces</H1>
 <TABLE>
   <TR><TD>System:</TD><TD>portmaster.domain.com</TD></TR>
   <TR><TD>Maintainer:</TD><TD></TD></TR>
   <TR><TD>Interface:</TD><TD>MODEMS/ISDN</TD></TR>
   <TR><TD>IP:</TD><TD>portmaster.domain.com (192.168.1.253)</TD></TR>
   <TR><TD>Max Interfaces:</TD>
       <TD>40 Asyncs / 60 ISDN</TD></TR>
  </TABLE>

NT users: for those poor guys that are forced to use NT to run this script (there isn't there a sane person using it from free will, is it ?? :-) maybe you need to change the target line to something like:
Target[portmaster]: `c:\bin\perl c:\mrtg\PM3Lines.pl public@portmaster`

Click here to download it: version 1998/08/04
DISCLAIMER: USE IT AT YOUR OWN RISK.
Click here to go to MRTG page:
Click here to go to my employer page:
If you want to contact me, my e-mail address is: canau "at" ionia.EUnet.pt
Statistics