Can I get a Template for Meraki MX devices?
Moderators: Developers, Moderators
-
- Posts: 28
- Joined: Fri May 15, 2015 7:08 pm
Re: Can I get a Template for Meraki MX devices?
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.
Re: Can I get a Template for Meraki MX devices?
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!
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
-
- Posts: 28
- Joined: Fri May 15, 2015 7:08 pm
Re: Can I get a Template for Meraki MX devices?
It looks to be a permissions problem in your setup:
http://forums.cacti.net/about22150.html
http://forums.cacti.net/about22150.html
Re: Can I get a Template for Meraki MX devices?
Thank you sir! This helped me and I managed to get the graphs working.ddunlap123 wrote:It looks to be a permissions problem in your setup:
http://forums.cacti.net/about22150.html
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
-
- Posts: 28
- Joined: Fri May 15, 2015 7:08 pm
Re: Can I get a Template for Meraki MX devices?
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.
-
- Posts: 1
- Joined: Wed Jan 09, 2019 11:30 am
Re: Can I get a Template for Meraki MX devices?
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!
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!
Re: Can I get a Template for Meraki MX devices?
I will have to keep that one in mind when I'm looking at others for people. Simple but easy to miss, good job!
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Can I get a Template for Meraki MX devices?
hoping this is still a valid template, but i am getting this error when trying to use it
NOTE: Graph not added for Data Query MerakiOut and index .0.24.10.127.60.218 due to Data Source verification failure
NOTE: Graph not added for Data Query MerakiOut and index .0.24.10.127.60.218 due to Data Source verification failure
Re: Can I get a Template for Meraki MX devices?
as a follow up,i ran verbose mode from the device, and im getting this as a response..
Total: 0.000000, Delta: 0.000000, Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/snmp_queries/MerDQ.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [27].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.000000, Delta: 0.000000, Auto Bulk Walk Size Selected.
Total: 25.630000, Delta: 25.630000, Tested Bulk Walk Size 1 with a response of 25.6283.
Total: 32.810000, Delta: 7.180000, Tested Bulk Walk Size 5 with a response of 7.1767.
Total: 35.670000, Delta: 2.860000, Tested Bulk Walk Size 10 with a response of 2.8599.
Total: 38.220000, Delta: 2.550000, Tested Bulk Walk Size 15 with a response of 2.5514.
Total: 39.390000, Delta: 1.170000, Tested Bulk Walk Size 20 with a response of 1.1710.
Total: 40.310000, Delta: 0.910000, Tested Bulk Walk Size 25 with a response of 0.9143.
Total: 41.610000, Delta: 1.300000, Tested Bulk Walk Size 30 with a response of 1.2995.
Total: 41.610000, Delta: 0.000000, Bulk Walk Size selected was 25.
Total: 41.610000, Delta: 0.000000, <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
Total: 41.610000, Delta: 0.000000, Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.29671.1.1.4.1.1' Index Count: 371
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.27.192' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.121.96' value: 'y`'
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.204.144' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.225.32' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.105.224' value: 'i'
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.170.240' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.181.48' value: '0'
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.200.32' value: ''
Total: 0.000000, Delta: 0.000000, Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/snmp_queries/MerDQ.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [27].
Total: 0.000000, Delta: 0.000000, Found Type = '3' [SNMP Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.000000, Delta: 0.000000, Auto Bulk Walk Size Selected.
Total: 25.630000, Delta: 25.630000, Tested Bulk Walk Size 1 with a response of 25.6283.
Total: 32.810000, Delta: 7.180000, Tested Bulk Walk Size 5 with a response of 7.1767.
Total: 35.670000, Delta: 2.860000, Tested Bulk Walk Size 10 with a response of 2.8599.
Total: 38.220000, Delta: 2.550000, Tested Bulk Walk Size 15 with a response of 2.5514.
Total: 39.390000, Delta: 1.170000, Tested Bulk Walk Size 20 with a response of 1.1710.
Total: 40.310000, Delta: 0.910000, Tested Bulk Walk Size 25 with a response of 0.9143.
Total: 41.610000, Delta: 1.300000, Tested Bulk Walk Size 30 with a response of 1.2995.
Total: 41.610000, Delta: 0.000000, Bulk Walk Size selected was 25.
Total: 41.610000, Delta: 0.000000, <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
Total: 41.610000, Delta: 0.000000, Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.29671.1.1.4.1.1' Index Count: 371
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.27.192' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.121.96' value: 'y`'
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.204.144' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.19.225.32' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.105.224' value: 'i'
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.170.240' value: ''
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.181.48' value: '0'
Total: 41.610000, Delta: 0.000000, Index found at OID: '.1.3.6.1.4.1.29671.1.1.4.1.1.0.24.10.20.200.32' value: ''
-
- Posts: 28
- Joined: Fri May 15, 2015 7:08 pm
Re: Can I get a Template for Meraki MX devices?
I've not looked at this in ages, but there is a discussion of how to debug that specific error here:
https://github.com/cacti/cacti/issues/4250
https://github.com/cacti/cacti/issues/4250
Re: Can I get a Template for Meraki MX devices?
apologies and thank you .. your change fixed my error. now im waiting to see if i also have sexy graphs LOL!troubledwaters wrote: ↑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!
Who is online
Users browsing this forum: No registered users and 2 guests