Take a peek at my XML?

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

Moderators: Developers, Moderators

Post Reply
uber1337one
Posts: 9
Joined: Thu Nov 03, 2005 1:21 pm
Contact:

Take a peek at my XML?

Post by uber1337one »

Hey i'm trying to learn all about this wonderfull program but i'm having some issues with getting my own query to run can someone take a peak at my XML file for starters and see if thats where the problem starts?
Attachments
printer_toner.xml
(776 Bytes) Downloaded 190 times
User avatar
joed
Posts: 29
Joined: Mon Sep 19, 2005 6:27 am
Location: Germany/Palatinate

Post by joed »

it maybe usefull if you tell us the error shown by cacti.

:D
uber1337one
Posts: 9
Joined: Thu Nov 03, 2005 1:21 pm
Contact:

Post by uber1337one »

Well when I create the device and try to add the graphs this is what I get.
Attachments
graph1.JPG
graph1.JPG (76.26 KiB) Viewed 3771 times
graph2.JPG
graph2.JPG (31.38 KiB) Viewed 3771 times
uber1337one
Posts: 9
Joined: Thu Nov 03, 2005 1:21 pm
Contact:

Post by uber1337one »

Well those are supposed to be in reverse order. LOL sorry bouts that.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

First, I don't see why you are using a data query for this... Aren't the toner values fixed OID's?

Data queries and the XML you are using, for data queries, are only used when you have a list of things you want to select from to graph.

The reason for the errors, other than you shouldn't use a data query, but a graph template for this, is that you are missing an important field type of "output", which is needed to generate a list of information.

What I suggest, is you ditch the data query, you don't need it and you go with a graph template/data template combination.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
joed
Posts: 29
Joined: Mon Sep 19, 2005 6:27 am
Location: Germany/Palatinate

Post by joed »

right, no query needed..

but there is a failure in your xml, because there are 2 lines instead of one shown. Guess you do 2 walks for your input fields in your xml instead of one walk and a get.

Post your xml an we'll see.

SCNR: Guess you don't have 2 toners in your printer ;-)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

joed wrote:
but there is a failure in your xml, because there are 2 lines instead of one shown. Guess you do 2 walks for your input fields in your xml instead of one walk and a get.
Incorrect, it's doing exactly what it should do for how he has it configured. It's is fruitless to continue to even look at the XML file, as it has no purpose for the metrics he is attempting to graph.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
uber1337one
Posts: 9
Joined: Thu Nov 03, 2005 1:21 pm
Contact:

Post by uber1337one »

Ok now i'm confused, I thought ok i'm going at this too hard i just need to make a host use a generic OID template and give it the OID of the toner available. I did all this and it makes a graph but always comes back as 0.... if I snmpwalk that oid i get a value back.


monitor ~ # snmpwalk -v1 -cdandelions 10.0.6.1 .1.3.6.1.2.1.43.11.1.1.9.1.1
SNMPv2-SMI::mib-2.43.11.1.1.9.1.1 = INTEGER: 11280

I set the OID template as a guage and a counter both ways return a 0
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Export your toner template, with dependancies, and post the resulting XML as an attachment here.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
uber1337one
Posts: 9
Joined: Thu Nov 03, 2005 1:21 pm
Contact:

Post by uber1337one »

I didn't make a template as of yet, I was trying to go the simple way and just used the out of the box generic OID template and gave it the proper OID for the toner.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests