Cacti / plugin_mikrotik

Mikrotik Plugin for Cacti
GNU General Public License v2.0
60 stars 24 forks source link

Mikrotik graph error #33

Closed Rameshkc998 closed 4 years ago

Rameshkc998 commented 5 years ago

I just fresh installed Latest Cacti Version 1.2.4 in centos 7 with latest Mikrotik Plugin v1.x installed from github. But I cannot create graph for my Mikrotik Device, because the system said Data Query Returned 0 like this images image

Rameshkc998 commented 5 years ago

When i open the graph in debuugging mode i get image

Rameshkc998 commented 5 years ago

Only few graphs are showing currently image

cigamit commented 5 years ago

Have you set the data collection frequencies and enabled data collection? Settings > MikroTik.

ptaabodi commented 5 years ago

Have you set the data collection frequencies and enabled data collection? Settings > MikroTik.

Hi I have the same Problem with same error message and I set data collection frequencies and I enabled data collection in Settings > MikroTik, but i still have problem and no interface and queue information displayed. do you have any ideas? tanx

huangchao-shanghai commented 5 years ago

image

/lib/data_query.php sizeof($script_num_index_array) return 0 looks like a bug

netniV commented 5 years ago

That would mean nothing was returned by the MySQL query. You could try var_dump'ing the $script_num_index_array

huangchao-shanghai commented 5 years ago

var_dump($script_num_index_array) return empty

but foreach working normally.

foreach ($script_num_index_array as $element) {
    query_debug_timer_offset('data_query', __('Found number of indexes: %s' , $element));
}

comment out //return false;can be solved temporarily. image

cigamit commented 5 years ago

What data query is this for. I don't see any microtik device templates that use arg_num_indexes, which is what you have commented out.

cigamit commented 5 years ago

My guess is that if you update Cacti to 1.2.5, this issue will be resolved on it's own.

huangchao-shanghai commented 5 years ago

Data query MikroTik - Interfaces MikroTik - Queues image

huangchao-shanghai commented 5 years ago

commented out: return false; image

bvr373 commented 5 years ago

same problem with cacti 1.2.5, php73, mariadb10.4, rrdtool1.8+

any update?

cigamit commented 4 years ago

This issue is solved here. It will be a part of 1.2.7.

https://github.com/Cacti/cacti/issues/2974