Can I get a Template for Meraki MX devices?

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

Moderators: Moderators, Developers

Author
Message
ddunlap123
Posts: 20
Joined: Fri May 15, 2015 7:08 pm

Re: Can I get a Template for Meraki MX devices?

#16 Post by ddunlap123 » Fri Jul 24, 2015 9:15 am

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.

vodka
Posts: 16
Joined: Mon Sep 28, 2015 1:07 pm

Re: Can I get a Template for Meraki MX devices?

#17 Post by vodka » Fri Oct 09, 2015 2:51 pm

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

ddunlap123
Posts: 20
Joined: Fri May 15, 2015 7:08 pm

Re: Can I get a Template for Meraki MX devices?

#18 Post by ddunlap123 » Fri Oct 09, 2015 5:38 pm

It looks to be a permissions problem in your setup:
http://forums.cacti.net/about22150.html

vodka
Posts: 16
Joined: Mon Sep 28, 2015 1:07 pm

Re: Can I get a Template for Meraki MX devices?

#19 Post by vodka » Tue Oct 13, 2015 7:52 am

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

ddunlap123
Posts: 20
Joined: Fri May 15, 2015 7:08 pm

Re: Can I get a Template for Meraki MX devices?

#20 Post by ddunlap123 » Sat Oct 24, 2015 3:01 pm

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.

troubledwaters
Posts: 1
Joined: Wed Jan 09, 2019 11:30 am

Re: Can I get a Template for Meraki MX devices?

#21 Post by troubledwaters » Mon Jan 14, 2019 2:48 pm

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!

netniV
Cacti Guru User
Posts: 2872
Joined: Sun Aug 27, 2017 12:05 am

Re: Can I get a Template for Meraki MX devices?

#22 Post by netniV » Tue Jan 15, 2019 4:34 am

I will have to keep that one in mind when I'm looking at others for people. Simple but easy to miss, good job!

Post Reply