Take a peek at my XML?
Moderators: Developers, Moderators
-
- Posts: 9
- Joined: Thu Nov 03, 2005 1:21 pm
- Contact:
Take a peek at my XML?
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
-
- Posts: 9
- Joined: Thu Nov 03, 2005 1:21 pm
- Contact:
-
- Posts: 9
- Joined: Thu Nov 03, 2005 1:21 pm
- Contact:
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.
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]
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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.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.
[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]
[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]
-
- Posts: 9
- Joined: Thu Nov 03, 2005 1:21 pm
- Contact:
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
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
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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]
[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]
-
- Posts: 9
- Joined: Thu Nov 03, 2005 1:21 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 0 guests