On 8/9/07, Arief Yudhawarman <[EMAIL PROTECTED]> wrote:
>   snmpwalk -v 1 -c public localhost interface | grep Descr
>
> Maka outputnya adalah:
>
> IF-MIB::ifDescr.1 = STRING: lo
> IF-MIB::ifDescr.2 = STRING: eth1
> IF-MIB::ifDescr.3 = STRING: dev31756
> IF-MIB::ifDescr.4 = STRING: eth0
> IF-MIB::ifDescr.5 = STRING: sit0
> IF-MIB::ifDescr.37 = STRING: ppp0
>
> Nah, itu dia baris yg terakhir: IF-MIB::ifDescr.37 = STRING: ppp0
>                                                 ^^
> Di sini pakai Fedora Core 5, setelah ppp0 diskonek dan
> konek kembali, nomor ifDescr ppp0 itu tidak sama spt sebelumnya
> (kalau untuk device eth* tidak berubah) akibatnya mrtg tdk
> bisa menampilkan trafik ppp0 dan lantas muncul error di log.
>
> Berikut ini nukilan mrtg.cfg
>
> ...
> ### Interface 37 >> Descr: 'ppp0' | Name: 'ppp0' | Ip: '125.164.255.xxx' | 
> Eth: '' ###
> ### The following interface is commented out because:
> ### * has a speed of 0 which makes no sense
> #
> Target[125.164.255.xxx]: 37:[EMAIL PROTECTED]:

gimana kalau diganti jadi:

  Target[125.164.255.xxx]: \ppp0:[EMAIL PROTECTED]:

dari mrtg-reference:

       Interface by Description
           If you can not use IP addresses you might want to use
           the interface names. This works similar to the IP
           address aproach except that the prefix to use is a \
           instead of a /

           You can tell cfgmaker to generate such references with
           the option --ifref=descr.

           Example:

            Target[myrouter]: \My-Interface2:[EMAIL PROTECTED]
            Target[ezci]: -\My-Interface2:[EMAIL PROTECTED]
            Target[myrouter]:
1.3.6.1.2.1.2.2.1.14\My-Interface2&1.3.6.1.2.1.2.2.1.14\My-Interface3:[EMAIL 
PROTECTED]
            Target[myrouter]:
ifInErrors\My-Interface2&ifOutErrors\My-Interface3:[EMAIL PROTECTED]

           If your description contains a "&", a ":", a "@" or a
           " " you can include them but you must escape with a
           backlash:

            Target[myrouter]: \fun\:\ ney\&ddd:[EMAIL PROTECTED]

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke