Hello Steve and All,

Ok. Thanks. I understand, but where I have to type the line(routers.cgi*HRule[mytarget]: 1024000 "Normal usage limit"). Look part of my router.cfg:

### Global conf ###

EnableIPv6: no
Imagedir: /u/local/etc/httpd/htdocs/mrtg/img
Logdir: /u/local/etc/httpd/htdocs/mrtg/log
Htmldir: /u/local/etc/httpd/htdocs/mrtg
WithPeak[_]: wmy
Options[_]: bits,growright
## I from Brazil!
Language: brazilian
.....
### Interface 6 >> Descr: 'Serial1' | Name: 'Se1' | Ip: '' | Eth: '' ###

Target[router_06]: 6:[EMAIL PROTECTED]:
SetEnv[router_06]: MRTG_INT_IP="" MRTG_INT_DESCR="Serial1"
MaxBytes[router_06]: 48000
Absmax[router_06]: 12000
Title[router_06]: Analise de trafego para a porta 6 roteador link PSJF <-> MultiRio
PageTop[router_06]: <h1>Trafego porta 6 roteador link PSJF <-> MultiRio</h1>
                <div id="sysdetails">
                        <table>
                                <tr>
                                        <td>Sistema:</td>
                                        <td>eadi-jf1 in </td>
                                </tr>
                                <tr>
                                        <td>Responsável:</td>
                                        <td>Izabel Figueiredo </td>
                                </tr>
                                <tr>
                                        <td>Descrição:</td>
                                        <td>Serial1 FRAME-RELAY EMBRATEL </td>
                                </tr>
                                <tr>
                                        <td>ifType:</td>
                                        <td>frame-relay (32)</td>
                                </tr>
                                <tr>
                                        <td>ifName:</td>
                                        <td>Se1</td>
                                </tr>
                                <tr>
                                        <td>Max Speed:</td>
                                        <td>384.0 kbits/s</td>
                                </tr>
                        </table>
                </div>

I get the file router.cfg with a comand line like:

/usr/bin/cfgmaker --global 'WorkDir: /u/local/etc/httpd/htdocs/monitora' --global 'Imagedir: /u/local/etc/httpd/htdocs/monitora/img' --global 'Logdir: /u/local/etc/httpd/htdocs/monitora/log' --global 'WithPeak[_]: wmy' --global 'Options[_]: bits,growright' --global 'Language: brazilian' --output /u/local/bin/mrtg/novaconf.cfg [EMAIL PROTECTED])

I imagem that I can see best MRTG graphics, but I don't have expirience to work them.

Best regards,

[]'s Virgilio Pavel



Steve Shipway escreveu:
I need represent a fixed line in a grafic of MRTG. For example, I have
to show in a picture a CIR line and EIR line of my link.
      
Normally you just set maxbytes to CIR, and absmax to PIR.  That draws
two maxima lines.

But there are a couple of additional hacks in routers2.cgi for a third
line.  I just don't remember them now.
    

routers.cgi*HRule[targetname]: value "description"

eg:

routers.cgi*HRule[mytarget]: 1024000 "Normal usage limit"

You can use the HRule directive any number of times to create multiple
additional horizontal lines (in addition to the MaxBytes, AbsMax,
Thres{min|max}{i|o} horizontal lines).  For multiple data lines, use
userdefined graphs merging multiple Targets into a single graph.

People who look through the routers2 code will find a parser definition for
routers.cgi*Line with embedded RPN - this is experimental only and not
activated yet, so don't use it.

Steve
  

_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

-- 
VIRGÍLIO GAUDERETO PÁVEL 
A L B Automotive Logistics 
Caixa Postal 15046- Dias Tavares 
CEP 36.091-970 - Juiz de Fora/MG 
[EMAIL PROTECTED] 
Trab.: (32) 3249-3444 Fax.: +55 (32) 3249-3440
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to