disappearing values

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

disappearing values

Post by mvam »

i created a simple xml file to graph disk utilization percentage which seems to work when i add it to a device and run verbose query. and i've even been able to make graphs with it. however this morning the data template is no longer reading the xml values in the data queries section.

Code: Select all

<query>
   <name>Get Disk I/O</name>
   <description>Queries a Sysdge host for device I/O statistics</description>
   <oid_index>.1.3.6.1.4.1.546.12.1.1</oid_index>
   <index_order>diskStatusUtil:diskStatsIndex</index_order>
   <index_order_type>numeric</index_order_type>

   <fields>
      <diskStatsIndex>
         <name>Index</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.546.12.1.1</oid>
      </diskStatsIndex>
      <diskStatsUtilization>
         <name>Utilization</name>
         <method>walk</method>
         <source>value</source>
         <direction>input</direction>
         <oid>.1.3.6.1.4.1.546.12.1.1.4</oid>
      </diskStatsUtilization>
   </fields>
</query>
theres a copy of my xml file. what happened? i've recreated everything and still have the same problem. did i mess up the xml file and just not seeing it?
Attachments
data query screen
data query screen
cacti1.JPG (104.47 KiB) Viewed 1790 times
data source screen
data source screen
cacti2.JPG (132.44 KiB) Viewed 1790 times
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

no one has any ideas?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run a check/repair on your database?
[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]
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

i did that. i even restored from last nights backup, without any luck.
Last edited by mvam on Wed Aug 24, 2005 5:51 pm, edited 1 time in total.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

That's a syntax error in your xml file.
[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]
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

yep found that. but it still cant get anything to show up in the pulldown menu. i renamed net-snmp_disk.xml to my filename and it picked up the values for that file. so i made edits for my OIDs and i'm back to no values.

the query works however:

Code: Select all

+ Running data query [13].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/appl/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.546.12.1.1'
+ Located input field 'diskIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.546.12.1.1'
+ Found item [diskIndex='1'] index: 1 [from value]
+ Found item [diskIndex='2'] index: 2 [from value]
+ Found item [diskIndex='0'] index: 1 [from value]
+ Found item [diskIndex='0'] index: 2 [from value]
+ Found item [diskIndex='30'] index: 1 [from value]
+ Found item [diskIndex='35'] index: 2 [from value]
+ Found item [diskIndex='3'] index: 1 [from value]
+ Found item [diskIndex='3'] index: 2 [from value]
+ Found item [diskIndex='3146625668'] index: 1 [from value]
+ Found item [diskIndex='3167140870'] index: 2 [from value]
+ Found item [diskIndex='268832282'] index: 1 [from value]
+ Found item [diskIndex='272353273'] index: 2 [from value]
+ Found item [diskIndex='79948491'] index: 1 [from value]
+ Found item [diskIndex='83470835'] index: 2 [from value]
+ Found item [diskIndex='188883791'] index: 1 [from value]
+ Found item [diskIndex='188882438'] index: 2 [from value]
+ Found item [diskIndex='58'] index: 1 [from value]
+ Found item [diskIndex='57'] index: 2 [from value]
+ Found item [diskIndex='2179144400'] index: 1 [from value]
+ Found item [diskIndex='2179144400'] index: 2 [from value]
+ Found item [diskIndex='3146625668'] index: 1 [from value]
+ Found item [diskIndex='3167140870'] index: 2 [from value]
+ Found item [diskIndex='268832282'] index: 1 [from value]
+ Found item [diskIndex='272353273'] index: 2 [from value]
+ Found item [diskIndex='79948491'] index: 1 [from value]
+ Found item [diskIndex='83470835'] index: 2 [from value]
+ Found item [diskIndex='188883791'] index: 1 [from value]
+ Found item [diskIndex='188882438'] index: 2 [from value]
+ Found item [diskIndex='0'] index: 1 [from value]
+ Found item [diskIndex='0'] index: 2 [from value]
+ Found item [diskIndex='0'] index: 1 [from value]
+ Found item [diskIndex='0'] index: 2 [from value]
+ Found item [diskIndex='0'] index: 1 [from value]
+ Found item [diskIndex='0'] index: 2 [from value]
+ Found item [diskIndex='0'] index: 1 [from value]
+ Found item [diskIndex='0'] index: 2 [from value]
+ Located input field 'diskUtilization' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.546.12.1.1.4'
+ Found item [diskUtilization='3'] index: 1 [from value]
+ Found item [diskUtilization='3'] index: 2 [from value]
+ Found data query XML file at '/appl/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/appl/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/appl/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/appl/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
+ Found data query XML file at '/appl/www/cacti/resource/snmp_queries/net-snmp_devio.xml'
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

ok, i changed the direction tab to "output" and it now shows up in the pulldown, but when i execute a verbose query the values arent returned.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Something seems off for your disk index field.... it returned too many items. You sure that OID specified is actually the index and not the root of a tree (hence all the multiple references to index 1 & 2)?
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

BSOD2600 wrote:Something seems off for your disk index field.... it returned too many items. You sure that OID specified is actually the index and not the root of a tree (hence all the multiple references to index 1 & 2)?
yep thats the index. these systems i'm working with have 2 disks in them. but i think the problem is that since the snmp agent doesnt return mount points or device names, that its throwing things off.
mvam
Cacti User
Posts: 87
Joined: Wed Jun 01, 2005 2:00 pm
Location: Seattle

Post by mvam »

i was able to get this working for CPU usage, but still no luck for disk usage.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests