[Help] Can anyone help me to create these two templates ?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

[Help] Can anyone help me to create these two templates ?

Post by dust2k »

I am currently monitoring ADSL SNR and Attenuation for my Billion 7402VGO ADSL modem/router by using following section in MRTG with RFC1471-MIB,RFC1472-MIB,RFC1473-MIB,RFC1474-MIB,RFC1695-MIB,RFC2493-MIB,RFC2662-MIB loaded, by converting all graphs into cacti I need create template to generate SNR and attenuation in cacti, but I don't have any idea how to create them, can anyone help me on this ? thanks


## ADSL SNR Margin ##

Target[snr]: adslAtucCurrSnrMgn.4&adslAturCurrSnrMgn.4:public@192.168.1.254
MaxBytes[snr]: 640
Factor[snr]: 0.1
YTicsFactor[snr]: 0.1
Title[snr]: SNR
PageTop[snr]: <H1>ADSL Signal to Noise Ratio Margin</H1>
Options[snr]: gauge, nopercent, growright
YLegend[snr]: dB
ShortLegend[snr]: dB
LegendI[snr]: Central SNR Margin
LegendO[snr]: Remote SNR Margin
Legend1[snr]: Central Signal to Noise Ratio Margin
Legend2[snr]: Remote Signal to Noise Ratio Margin

## ADSL Attenuation ##

Target[atn]: adslAtucCurrAtn.4&adslAturCurrAtn.4:public@192.168.1.254
MaxBytes[atn]: 640
Factor[atn]: 0.1
YTicsFactor[atn]: 0.1
Title[atn]: Attenuation
PageTop[atn]: <H1>ADSL Attenuation</H1>
Options[atn]: gauge, nopercent, growright
YLegend[atn]: ADSL Attenuation
ShortLegend[atn]: dB
LegendI[atn]: Central Attenuation
LegendO[atn]: Remote Attenuation
Legend1[atn]: Central Attenuation
Legend2[atn]: Remote Attenuation
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Sorry for knowing nothing about MRTG. But help is available if you are able to specify the OIDs needed. They may be "simple" OIDs or part of a TABLE. cacti does not rely on MIBs, so the named OIDs do not help. Please provide numeric OIDs. Some snmpwalk against those OIDs would help a lot.
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

Search on google about "rfc2662" which have the variables from MRTG cfg file, I found this 3155.1453.6555.26760 as OID, not sure this does help you or not.

I use Getif to search on the ADSL modem and found .iso.3.6.1.4.1.17453.0 is sysObjectID.
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Post by menjia »

that is very difficult to make templates without oids 、oid types and structure, also target machine is nessary to check your newly created template works fine or not, graph and data template included.
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

so what's the best way to find out OIDs and structure of them ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

dust2k wrote:so what's the best way to find out OIDs and structure of them ?
If you have a running MRTG system, please tcpdump a couple of requests against your target system. In this trace, you will find all necessary OIDs
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

Ooops, this is the first time to use TCPDump, I downloaded microldap's windows tcpdump, but I am not sure which command line just can capture certain dst IP (192,168.1.254) with port 161 and all SNMP packages, can you give me some hints ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

dust2k wrote:Ooops, this is the first time to use TCPDump, I downloaded microldap's windows tcpdump, but I am not sure which command line just can capture certain dst IP (192,168.1.254) with port 161 and all SNMP packages, can you give me some hints ?
When running a windows system, I'd definitively have a look at ethereal at http://www.ethereal.com/. Don't forget the winpcap. When starting the trace, it will ask you for a filter option. Use the string port 161.
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

Just try to make things simple, what's command line options to catpure all packages point to 192.168.1.254:161 ?
damomurf
Posts: 1
Joined: Wed Jan 04, 2006 5:42 am

Post by damomurf »

I have managed to get data on these sort of figures out of my Billion 7402 VGP to graph in Cacti using the named OIDs - the problem is there don't seem to be any dB-related graph templates, and I'm new to Cacti, so I'm not really sure how to create them.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

dust2k wrote:Just try to make things simple, what's command line options to catpure all packages point to 192.168.1.254:161 ?

Code: Select all

tcpdump host 192.168.1.254 port 161
if you're using a special interface (e.g. bond0) you'll have to prepend -i bond0
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

lvm wrote:

Code: Select all

tcpdump host 192.168.1.254 port 161
if you're using a special interface (e.g. bond0) you'll have to prepend -i bond0
Reinhard
There is only one network interface card so don't need point the interface, but your command gives parse error, I will try to read manual to get it right :) bit lazy yesterday.
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

Finally done the capture with ethereal, the file is here, the capture filter is "host 192.168.1.254 and port 161" . I am currently monitor four interfaces (ppp-1, wireless bridge and ethernet) plus uptime, SNR and ATT.

The order from MRTG .cfg file is Ethernet interface , bridge, wireless, Uptime, SNR, Attenuation , ADSL. I believe the captured package are following the same order, so second last and third last will be the OIDs I need for querying the device.

thanks lvm.
Attachments
7402.zip
(715 Bytes) Downloaded 604 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So you're right on the track now, eh? If not, please post the OIDs...
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

Oooops, I thought u use ethereal to check on OIDs already, hehe, OK, Here they are :

SNR : OID1 :1.3.6.1.2.1.10.94.1.1.2.1.4.4
OID2 : 1.3.6.1.2.1.10.94.1.1.3.1.4.4

Attenuation : OID1 :1.3.6.1.2.1.10.94.1.1.2.1.5.4
OID2 : 1.3.6.1.2.1.10.94.1.1.3.1.5.4
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest