Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Apr 28, 2017 1:27 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Associated Data Templates issue
PostPosted: Thu Jan 19, 2017 8:02 am 
Offline

Joined: Wed Oct 13, 2010 3:22 am
Posts: 19
Hi There,

My .xml file

<interface>
<name>Interfaces Errors</name>
<description>ZyXEL Interface error</description>
<oid_index>.1.3.6.1.2.1.16.1.1.1.1</oid_index>
<oid_num_indexes>.1.3.6.1.2.1.16.1.1.1.1</oid_num_indexes>
<index_order_type>numeric</index_order_type>
<fields>
<etherStatsIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.1</oid>
</etherStatsIndex>
<etherStatsStatus>
<name>Status</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.21</oid>
</etherStatsStatus>
<etherStatsCRCAlignErrors>
<name>CRCAlignErrors</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.8</oid>
</etherStatsCRCAlignErrors>
<etherStatsBroadcastPkts>
<name>BroadcastPkts</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.6</oid>
</etherStatsBroadcastPkts>
<etherStatsOversizePkts>
<name>OversizePkts</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.10</oid>
</etherStatsOversizePkts>
<etherStatsUndersizePkts>
<name>UndersizePkts</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.9</oid>
</etherStatsUndersizePkts>
<etherStatsFragments>
<name>Fragments</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.11</oid>
</etherStatsFragments>
<etherStatsCollisions>
<name>Collisions</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.16.1.1.1.13</oid>
</etherStatsCollisions>
</fields>
</interface>

----- =-=-=

Data Query Debug Information
+ Running data query [31].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/zyxeletherstat.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.16.1.1.1.1' Index Count:
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.16.1.1.1.1' Index Count: 2
+ Index found at OID: 'etherStatsIndex.1' value: '1'
+ Index found at OID: 'etherStatsIndex.2' value: '2'
+ Located input field 'etherStatsIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.1'
+ Found item [etherStatsIndex='1'] index: 1 [from value]
+ Found item [etherStatsIndex='2'] index: 2 [from value]
+ Located input field 'etherStatsStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.21'
+ Found item [etherStatsStatus='valid(1)'] index: 1 [from value]
+ Found item [etherStatsStatus='valid(1)'] index: 2 [from value]
+ Located input field 'etherStatsCRCAlignErrors' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.8'
+ Found item [etherStatsCRCAlignErrors='0 Packets'] index: 1 [from value]
+ Found item [etherStatsCRCAlignErrors='0 Packets'] index: 2 [from value]
+ Located input field 'etherStatsBroadcastPkts' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.6'
+ Found item [etherStatsBroadcastPkts='3531979 Packets'] index: 1 [from value]
+ Found item [etherStatsBroadcastPkts='3531980 Packets'] index: 2 [from value]
+ Located input field 'etherStatsOversizePkts' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.10'
+ Found item [etherStatsOversizePkts='0 Packets'] index: 1 [from value]
+ Found item [etherStatsOversizePkts='0 Packets'] index: 2 [from value]
+ Located input field 'etherStatsUndersizePkts' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.9'
+ Found item [etherStatsUndersizePkts='0 Packets'] index: 1 [from value]
+ Found item [etherStatsUndersizePkts='0 Packets'] index: 2 [from value]
+ Located input field 'etherStatsFragments' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.11'
+ Found item [etherStatsFragments='0 Packets'] index: 1 [from value]
+ Found item [etherStatsFragments='0 Packets'] index: 2 [from value]
+ Located input field 'etherStatsCollisions' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.16.1.1.1.13'
+ Found item [etherStatsCollisions='0 Collisions'] index: 1 [from value]
+ Found item [etherStatsCollisions='0 Collisions'] index: 2 [from value]

=-=-=

Data query is showing index and values.

Issues
1) Internal data source name is not fitting in data templates
2) post adding Associated Graph Templates in data query... data sources are not showing


Attachments:
File comment: Data Source: no dropdown
associate data template issue.JPG
associate data template issue.JPG [ 34.99 KiB | Viewed 251 times ]
data query.JPG
data query.JPG [ 34.75 KiB | Viewed 251 times ]
Top
 Profile  
 
 Post subject: Re: Associated Data Templates issue
PostPosted: Thu Jan 19, 2017 9:40 am 
Offline
Cacti User
User avatar

Joined: Mon Oct 02, 2006 1:22 pm
Posts: 189
Location: Belgium
You have to set the data sources you want the dropdown box for to "output" not "input".

they won't show up in the "create graphs for this host" page then.

_________________
Joris.
http://www.routerjanitor.com


Top
 Profile  
 
 Post subject: Re: Associated Data Templates issue
PostPosted: Fri Jan 20, 2017 10:07 pm 
Offline

Joined: Wed Oct 13, 2010 3:22 am
Posts: 19
JorisFRST wrote:
You have to set the data sources you want the dropdown box for to "output" not "input".

they won't show up in the "create graphs for this host" page then.


Thanks.... Issue resolved.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], wellyh and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group