0 Data Query Returned, Mikrotik Cacti Plugin v1.x

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

Moderators: Developers, Moderators

ptaabodi
Posts: 1
Joined: Mon Jun 03, 2019 3:03 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by ptaabodi »

Hi
I have the same Problem, do you Finally find any solutions to fix it.
tanx :wink: :wink:
hahanson
Posts: 3
Joined: Thu Jul 04, 2013 4:34 pm

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by hahanson »

Same. No solutions?
christianbudiman
Posts: 1
Joined: Wed Sep 11, 2019 6:04 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by christianbudiman »

gunzip ./cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz
it will fix the problem
StarGate88
Posts: 1
Joined: Thu Oct 07, 2021 2:47 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by StarGate88 »

Hi to all,

I still have the problem described here with the mikrotik v2.4 plugin in cacti 1.2.17. Thank you for any idea.

Screenshot:
Attachments
cacti.jpg
cacti.jpg (190.74 KiB) Viewed 2873 times
skywalkerznz
Posts: 21
Joined: Mon Jan 02, 2023 11:43 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by skywalkerznz »

I have the same issue, Ubuntu 22.04, cacti 1.2.23,and the latest plugin, tried 2.2 same issue, something is not working.
skywalkerznz
Posts: 21
Joined: Mon Jan 02, 2023 11:43 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by skywalkerznz »

Seems like my Mikrotik poller not working, I tried to disable and enable, logs don't show API or mikrotik logs.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by TheWitness »

Show your cacti.log, just the MIKROTIK entries
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
skywalkerznz
Posts: 21
Joined: Mon Jan 02, 2023 11:43 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by skywalkerznz »

Hello Witness!

There are no Mikrotik entries, I have restarted, reinstalled plugin, but it does show any API / Mikrotik polls.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by TheWitness »

That means that the data collection is disabled. You need to go to the Microtik settings panel and enable data collection once your Microtiks are being monitored.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by TheWitness »

You can force the poller to run. Go to the plugin folder and there is a file called 'poller_mikrotik.php' you can run it with the --force --debug options.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
skywalkerznz
Posts: 21
Joined: Mon Jan 02, 2023 11:43 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by skywalkerznz »

sudo -u www-data php /var/www/html/cacti/plugins/mikrotik/poller_mikrotik.php --host-id=2 --force --debug
WARNING: The MikroTik Collection is Down! Exiting
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by Osiris »

Well, good confirmation.
Before history, there was a paradise, now dust.
skywalkerznz
Posts: 21
Joined: Mon Jan 02, 2023 11:43 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by skywalkerznz »

How do I make it work? I have tried to create the devices again, reinstalling but the Mikrotik poller does not start. Can you please point me in the right direction? Thank you.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by Osiris »

Make sure it's enabled from settings and press save again. Then run that command again.
Before history, there was a paradise, now dust.
skywalkerznz
Posts: 21
Joined: Mon Jan 02, 2023 11:43 am

Re: 0 Data Query Returned, Mikrotik Cacti Plugin v1.x

Post by skywalkerznz »

I tried that, disabled and enabled it again, I tried even to reboot, but the Mikrotik poller does not start.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests