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

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

Moderators: Developers, Moderators

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

dust2k wrote: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
This looks like a table with OID .1.3.6.1.2.1.10.94.1.1
Please do an snmpwalk against that oid and post the findings.
This would be needed to define an XML file for you. See SNMP Query XML Syntax on how to do this.
The other option would be to query _exact_ those OIDs. This can be done by copying the SNMP - Generic OID Template for _each_ of those OIDs and fillig in your OIDs.
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

I don't know how to define the XML file, looks bit confusing, maybe need long time to study, I attached two charts from MRTG and I just wanna merge these 4 fields (2 charts) into one chart, can you help me on that ? thanks.

Here is the result:
c:\snmpwalk -v 2c -c public 192.168.1.254 .1.3.6.1.2.1.10.94.1.1
SNMPv2-SMI::transmission.94.1.1.1.1.1.4 = INTEGER: 2
SNMPv2-SMI::transmission.94.1.1.1.1.2.4 = INTEGER: 4
SNMPv2-SMI::transmission.94.1.1.1.1.3.4 = OID: SNMPv2-SMI::zeroDotZero
SNMPv2-SMI::transmission.94.1.1.1.1.4.4 = STRING: "DEFVAL"
SNMPv2-SMI::transmission.94.1.1.1.1.5.4 = STRING: "DEFVAL"
SNMPv2-SMI::transmission.94.1.1.2.1.1.4 = STRING: "0"
SNMPv2-SMI::transmission.94.1.1.2.1.2.4 = STRING: "None"
SNMPv2-SMI::transmission.94.1.1.2.1.3.4 = STRING: "0"
SNMPv2-SMI::transmission.94.1.1.2.1.4.4 = INTEGER: 260
SNMPv2-SMI::transmission.94.1.1.2.1.5.4 = Gauge32: 175
SNMPv2-SMI::transmission.94.1.1.2.1.6.4 = STRING: "€"
SNMPv2-SMI::transmission.94.1.1.2.1.7.4 = INTEGER: 0
SNMPv2-SMI::transmission.94.1.1.2.1.8.4 = Gauge32: 7482666
SNMPv2-SMI::transmission.94.1.1.3.1.1.4 = STRING: "0"
SNMPv2-SMI::transmission.94.1.1.3.1.2.4 = STRING: "None"
SNMPv2-SMI::transmission.94.1.1.3.1.3.4 = STRING: "0"
SNMPv2-SMI::transmission.94.1.1.3.1.4.4 = INTEGER: 165
SNMPv2-SMI::transmission.94.1.1.3.1.5.4 = Gauge32: 390
SNMPv2-SMI::transmission.94.1.1.3.1.6.4 = STRING: "€"
SNMPv2-SMI::transmission.94.1.1.3.1.7.4 = INTEGER: 220
SNMPv2-SMI::transmission.94.1.1.3.1.8.4 = Gauge32: 845333
SNMPv2-SMI::transmission.94.1.1.4.1.1.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.4.1.2.4 = Gauge32: 1536000
SNMPv2-SMI::transmission.94.1.1.4.1.3.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.4.1.4.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.5.1.1.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.5.1.2.4 = Gauge32: 512000
SNMPv2-SMI::transmission.94.1.1.5.1.3.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.5.1.4.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.1.4 = Counter32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.2.4 = Counter32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.3.4 = Counter32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.4.4 = Counter32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.5.4 = INTEGER: 0
SNMPv2-SMI::transmission.94.1.1.11.1.6.4 = INTEGER: 0
SNMPv2-SMI::transmission.94.1.1.11.1.7.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.8.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.9.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.10.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.11.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.12.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.13.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.14.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.15.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.16.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.17.4 = INTEGER: 0
SNMPv2-SMI::transmission.94.1.1.11.1.18.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.19.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.20.4 = Gauge32: 0
SNMPv2-SMI::transmission.94.1.1.11.1.21.4 = Gauge32: 0
Attachments
weekly chart have peek inbound and peek outbound as well
weekly chart have peek inbound and peek outbound as well
snr_weekly.png (54.71 KiB) Viewed 8227 times
weekly chart have peek inbound and peek outbound as well
weekly chart have peek inbound and peek outbound as well
attenuation_weekly.png (42.66 KiB) Viewed 8227 times
the aaenuation chart from MRTG
the aaenuation chart from MRTG
attenuation.png (24.83 KiB) Viewed 8229 times
the SNR chart from MRTG
the SNR chart from MRTG
snr.png (26.17 KiB) Viewed 8229 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So please copy the Generic SNMP Data Template 4 times, once for each OID. Fill in the needed OID and uncheck the checkbox (see attached picture).
Then build a Graph Template that references those 4 data sources.
Last: Goto your Device and Add this Graph Template as Associated Graph Template. Create Graphs for this Host and check the new Graph Template.
Reinhard
Attachments
copying the generic SNMP data template
copying the generic SNMP data template
Bildschirmfoto.png (36.49 KiB) Viewed 8220 times
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

I did what u said, spent 1 hour to figure out how to create those data template, then spend 2 hours to create graphic template and then no graphs because I got this.

01/08/2006 02:38:10 AM - CMDPHP: Poller[0] Host[2] DS[99] WARNING: Result from SNMP not valid. Partial Result:
01/08/2006 02:38:10 AM - CMDPHP: Poller[0] Host[2] DS[98] WARNING: Result from SNMP not valid. Partial Result: No Such Instance cur
01/08/2006 02:38:10 AM - CMDPHP: Poller[0] Host[2] DS[97] WARNING: Result from SNMP not valid. Partial Result: No Such Instance cur
01/08/2006 02:38:10 AM - CMDPHP: Poller[0] Host[2] DS[96] WARNING: Result from SNMP not valid. Partial Result: No Such Instance cur

not sure what's wrong, but it's too late now to find the answer, will work on it tomorrow.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please tell me, what _exact_ OID you filled in and what a snmpget against that OID gives you. Then, switch to DEBUG mode (Settings!) and run the poller at least for one polling cycle. Please find your OID in the cacti.log and post a snippet around this match.
For a nice howto please follow the last link of my new signature (just completed this today)
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

Thanks for your quick response, I've already fixed the OID's problem, forgot to add . at front of oid string. everything working now, all graphs showing and looks beautiful, but there is one problem, all reading number is like 120,260,350, the actually value should be 12, 26, 35, I believe I need add something to re-process those values.


PS : The new howto is really helpful, thanks for all your work.
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

I try to seperate SNR and attenuation to two graphs, so I created two graph templates, they are indentical except data sources, the weired thing is SNR got correct graphs with all values populated but Attenuation graphs doesn't have any value show up, all 0 , I check the poller log, the value from poller exist and correct, just doesn't show on graphs. any possible reason for this problem ?
Attachments
Poller log shows all fine.
Poller log shows all fine.
cacti_poller.jpg (162.93 KiB) Viewed 8198 times
attenuation_graph_template.jpg
attenuation_graph_template.jpg (195.18 KiB) Viewed 8198 times
snr_graph_template.jpg
snr_graph_template.jpg (247.8 KiB) Viewed 8198 times
graphs_compare.jpg
graphs_compare.jpg (191.53 KiB) Viewed 8198 times
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

The problem fixed, when I create new graphs, I put Maximum value is 64, it should be 640, this is why no value to display because they are all large than 100, hehe, silly me.

I will study the document for a while try to put all 4 generic SNMP OID template into one Data template XML file, then post three scripts here :)
superpat
Posts: 2
Joined: Sat Jun 17, 2006 4:32 pm

Billion Scripts

Post by superpat »

Hi,

I am trying to show the stats for my Billion 7402VGO

I will study the document for a while try to put all 4 generic SNMP OID template into one Data template XML file, then post three scripts here
I have had a look around the forum, I cannot find your scripts for the 7402 anywhere.Please could you post them, it woulds save me a huge amount of work

Many thanks

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

Oooops, still someone wanna this script

Post by dust2k »

Here they are :) enjoy it, let me know how things going..
Attachments
cacti_graph_template_snmp_adsl_attenuation.xml
Attenuation template
(16.98 KiB) Downloaded 327 times
cacti_graph_template_snmp_adsl_signal_to_noise_ratio.xml
SNR template
(16.97 KiB) Downloaded 345 times
superpat
Posts: 2
Joined: Sat Jun 17, 2006 4:32 pm

thanks!

Post by superpat »

Hi

Thanks for the scripts, Have downloaded to my cacti box, will post when I get stuck, or if I have success!!!

cheers

Patrick
Gomo
Posts: 9
Joined: Sun Jul 17, 2005 4:04 am

Billion

Post by Gomo »

Trying to get this script to work on my Billon 7402L but Don't think it's working? I know the snmpd viewer utlity from billion seems to be able to get the info on the attenation and SNR so surely this is possible?

http://gomo.be/cacti/graph.php?local_gr ... rra_id=all
http://gomo.be/cacti/graph.php?local_gr ... rra_id=all

Just wondering how i would go about getting this to work? just change the OID numbers to suite my modem? how do i find these

Thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may want to run ethereal or the like when using the manufacturers tool to learn the OIDs requested (if any)
Reinhard
User avatar
dust2k
Cacti User
Posts: 101
Joined: Sun Dec 04, 2005 3:14 am

Post by dust2k »

Never heard 7402L, I know the 7402VL, it's highly unlikely Billion design different SNMP protocol (OIDs) for products on same product line, there are must be something wrong like security setting or snmp version, check your error message and post to here.
time
Posts: 32
Joined: Mon Jun 27, 2005 6:30 pm

Billion router host template

Post by time »

I've taken the OIDs from this thread (plus the OIDs for line speed) and created three graph templates:

- Signal to Noise Ratio
- Line Attenuation
- Line Speed

And also combined them into a host template for easy importing.

Enjoy!
Attachments
cacti_host_template_billion_router.xml
Host template including all dependencies
(157.73 KiB) Downloaded 343 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests