Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Apr 21, 2019 1:52 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Can I get a Template for Meraki MX devices?
PostPosted: Fri Jul 24, 2015 9:15 am 
Offline

Joined: Fri May 15, 2015 7:08 pm
Posts: 20
Do you mean you're wanting to graph cpu usage or interface utilization? Your debugs are for interface utilization, not cpu. If you're needing cpu (I don't see a standard cpu Cacti query), you need to go into Data Queries & look at the xml utility being used. Then you need to find the xml utility on disk and look for the 'output' stanzas. You will see the oids that the switch needs to return (like .1.3.6.1.4.1.9.whatever might be cpu). If you snmpwalk .1.3.6.1.4.1.9.whatever and it doesn't return any data, then the cpu template you are using won't work for that switch because the switch does not support it.


Top
 Profile  
 
 Post subject: Re: Can I get a Template for Meraki MX devices?
PostPosted: Fri Oct 09, 2015 2:51 pm 
Offline

Joined: Mon Sep 28, 2015 1:07 pm
Posts: 16
Thanks for the scripts and the work here.

I have tried to implement however I'm getting the following error in the "Create Graphs for this host"

Warning: file(/var/www/html/resource/snmp_queries/merakiout.xml): failed to open stream: Permission denied in /var/www/html/lib/data_query.php on line 79 Warning: implode(): Invalid arguments passed in /var/www/html/lib/data_query.php on line 79

If I do a get or walk from the prompt, I can query the cloud controller to get the values for clients using:

host: snmp.meraki.com
community: what's listed in the cloud
port: 16100
SNMP v:2

When I look at the verbose mode of the Data Queries, I get the following

+ Running data query [26].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/MerDQ.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/html/resource/snmp_queries/MerDQ.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/MerDQ.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/MerDQ.xml'

Not sure what's causing this issue above.

Would appreciate some help.

TY!

_________________
CactiEZ v0.7 running Cacti 0.8.8a


Top
 Profile  
 
 Post subject: Re: Can I get a Template for Meraki MX devices?
PostPosted: Fri Oct 09, 2015 5:38 pm 
Offline

Joined: Fri May 15, 2015 7:08 pm
Posts: 20
It looks to be a permissions problem in your setup:
http://forums.cacti.net/about22150.html


Top
 Profile  
 
 Post subject: Re: Can I get a Template for Meraki MX devices?
PostPosted: Tue Oct 13, 2015 7:52 am 
Offline

Joined: Mon Sep 28, 2015 1:07 pm
Posts: 16
ddunlap123 wrote:
It looks to be a permissions problem in your setup:
http://forums.cacti.net/about22150.html


Thank you sir! This helped me and I managed to get the graphs working.

I'm just curious on this line (both for Mearkiout and MerDQ) I get this: "<oid_num_indexes> missing in XML file".
Is this normal behaviour?

+ Running data query [26].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/MerDQ.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries

Thanks again!!

_________________
CactiEZ v0.7 running Cacti 0.8.8a


Top
 Profile  
 
 Post subject: Re: Can I get a Template for Meraki MX devices?
PostPosted: Sat Oct 24, 2015 3:01 pm 
Offline

Joined: Fri May 15, 2015 7:08 pm
Posts: 20
The 'can't get number of indexes' is normal because unlike rfc1213 interfaces mib, there is no interface count. Cacti counts the number of lines returned.


Top
 Profile  
 
 Post subject: Re: Can I get a Template for Meraki MX devices?
PostPosted: Mon Jan 14, 2019 2:48 pm 
Offline

Joined: Wed Jan 09, 2019 11:30 am
Posts: 1
Ok I know this is old, but for those struggling to get the graphs to print something other than Nan values you have come to the right place. Turn on the debug to Statistics, Errors,Results, I/O and program flow. Then search for these errors:

2019/01/14 10:15:03 - POLLER: Poller[1] Device[2] DS[99] WARNING: Result from SNMP not valid. Partial Result: U
2019/01/14 10:15:03 - POLLER: Poller[1] Device[2] DS[99] SNMP: v3: snmp.meraki.com, dsname: devClientCount, oid: .1.3.6.1.4.1.29671.1.1.4.1.5..12.141.219.101.97.23, output: U

If you see the above you have the same issue I did and that was the syntax for the REGEX that ddunlap123 has in MerDQ.xml and merakiout.xml is wrong.

AFTER SEARCHING FOREVER I fixed it myself. I wont attach my files as all you have to do is change the OID PARSE line which in ddunlap's files is:
<oid_index_parse>OID/REGEXP:^.{28}(.*)</oid_index_parse>
change the above line in BOTH MerDQ.xml and merakiout.xml TO:
<oid_index_parse>OID/REGEXP:^.{28}\.(.*)</oid_index_parse>
What my code says is AFTER THE DECIMAL concatenate the OIDs

This fixd the double decimal issue I was having. and NOW I HAVE SEXY GRAPHS!!!!

If this helps anyone out there please let me know as I was going to not post this.
Thanks!


Top
 Profile  
 
 Post subject: Re: Can I get a Template for Meraki MX devices?
PostPosted: Tue Jan 15, 2019 4:34 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2391
I will have to keep that one in mind when I'm looking at others for people. Simple but easy to miss, good job!

_________________
Official Cacti Developer

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

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 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