Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I have been reading any documentation i could find and searched the forums extensively but i am not sure if this is possible or not.
Basically i want to use an SNMP query with multiple OID's with no index.
An example of this is getting the memory information from SNMP informant.
Can i do this with the following query?
Note : I put the oid_index stuff to make the parsing work with cacti.
If this is not the correct way to do it, whats the simplest way to do it without creating external scripts or anything? I like the structured way that is used for indexed queries and i want to use something similar.
+ Running data query [30].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/apache/Apache2/htdocs/cacti/resource/snmp_queries/snmp_informant_standard_memory.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.2'
+ Found data query XML file at 'C:/apache/Apache2/htdocs/cacti/resource/snmp_queries/snmp_informant_standard_memory.xml'
+ Found data query XML file at 'C:/apache/Apache2/htdocs/cacti/resource/snmp_queries/snmp_informant_standard_memory.xml'
+ Found data query XML file at 'C:/apache/Apache2/htdocs/cacti/resource/snmp_queries/snmp_informant_standard_memory.xml'
No datasources are created.
Is this the correct approach to create a multiple OID query with no index?
TheWitness wrote:You should instead create a multiple DS Data Template the have each tab in the Data Template have it's own OID.
Unless something has changed in the past several versions, I thought a DS data template could only do one OID. At least in the past when I've tried to use multiple OID's for a DS template, it only saved one...
I have tried the multiple DS approach per data template in the past but on each DS tab the same OID was showing which lead me to believe that I cannot put multiple DS on a data template. Is there a trick to making this work?
Is there a specific version that this feature was implemented?
I am using cacti-0.8.6j
OK i think i have figured it out, i am currently graphing the memory information of a server running SNMP informant.
I dont think the memory info has an SNMP index but the following query works and gives me all the memory related information in one RRD which then i can create graphs from.
This is the SNMP query i am using. Note that this is an indexed query.
I guess that this approach shouldn't have worked because there is no SNMP index as such but by using the memory OID as input i can get the information that i need.
Well, what about the much fabled mutli-DS data template?
Is this beast at all possible?
I've seen a post in the forum that it shouldn't be allowed for some reason or another.
Still cant figure out a way to do it, all DS tabs share the same OID
Yea, I'm going to look at it. But the next release of Cacti is feature frozen at the moment, so it won't be out for a while, and it would be an awfull coplicated and risky patch. So, the DQ method may be the best way to go for now.
TheWitness
True understanding begins only when we realize how little we truly understand...