[HELP] XML Data Queries

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

Moderators: Developers, Moderators

Post Reply
fabiomoreti10
Posts: 3
Joined: Mon Aug 20, 2018 10:10 am

[HELP] XML Data Queries

Post by fabiomoreti10 »

Hi Everybody,

How can I set a different community(not public) in the next xml ?
Is there a option ?


<query>
<name>Get SNMP </name>
<description>queries</description>
<oid_index>.1.3.6.1.2.1.2.2.1.1</oid_index>
<fields>
<ifName>
<name>Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.1</oid>
</ifName>

<ifAlias>
<name>Alias</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.18</oid>
</ifAlias>

<ifHCInOctets>
<name>TrafficInNokia</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.6</oid>
</ifHCInOctets>

<ifHCOutOctets>
<name>TrafficOutNokia</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.10</oid>
</ifHCOutOctets>
</fields>
</query>
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: [HELP] XML Data Queries

Post by netniV »

SNMP security settings are against the device, not the data source.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
fabiomoreti10
Posts: 3
Joined: Mon Aug 20, 2018 10:10 am

Re: [HELP] XML Data Queries

Post by fabiomoreti10 »

Ok, I got it and it works for that .xml. Thanks

But I have multiples data_queries that are necessary use different communities(public and NETMAN). Is there alternative for this case ?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: [HELP] XML Data Queries

Post by netniV »

Not that I'm aware of. SNMP settings have never been at the data source level as far as I know.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests