Closed mehransalehian closed 2 years ago
Okay, I see the version now.
I would try to access the router using ssh first. If you can get to it through ssh, then you should be able to access it through the API.
If you have setup the router for SSH access using a key, this might be problematic, I mean to login with a password.
No response.
@TheWitness I have the same issue, I put in the correct password and port. but the Connection Result is failed
CMDPHP ERROR: Device[Deveice name] for RouterOS API Call Timed Out. Check for an invalid API password!
Did you fill out as below?
What version of RouterOS?
Are you running through SSL or simply clear connection?
@TheWitness Now its working after changing default port
but templet is not working
The question was are you running with ssl enabled?
No, I just port 8728
Why don't you do a TCP dump and send the output to thewitness at cacti.net
Just that port nothing else else.
Oh, I did not see that you got it working. What Cacti release?
Cacti Version 1.2.23
I have the same issue, Centos7, Cacti 1.2.21, plugin 2.6. and template error. Sorry for my ignorance, where do I put the API credentials, I could not find mikrotik login info. Thank you.
disabling and enabling the plugin fixed this, but the interface are still showing errors.
on dev, template/script and resources directory are empty, I tried to roll back to 2.4, the script runs but interface returns 0. Thank you.
There are two packages in the install/templates
directory of the Cacti 1.2.x branch. You should install those and the reindex your devices followed by repopulating the poller cache.
All the resources and script files have been moved to the normal locations.
Thank you, I tried to install it from Cacti 1.2 template, but end up with this error, php -q /var/lib/cacti/cli/import_package.php --filename=/usr/share/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz Read 176931 bytes of Package data ERROR: file /usr/share/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz import process failed due to errors with the XML file
Okay, it's likely has the new key we are using in 1.2.23. I'll check that this morning. Do me a favor and don't install it. I've been waiting for the 1.2.23 release before doing a formal re-release.
I started from scratch, Ubuntu 22.04, Cacti 1.2.22, installed the plugin, and landed with the same error on interfaces. If I copy the files to /the resource directory, Cacti find the file but still complains on the interface returning empty. Install is pretty straight forward, not sure where I am going wrong. Thank you for your time.
Total: 0.000000, Delta: 0.000000, Running Data Query [27].
Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Server Query].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.070000, Delta: 0.070000, Data Query returned no indexes.
Total: 0.070000, Delta: 0.000000,
@TheWitness I installed the packages from install/templates, and resources and script files have been moved to the correct location. but still, there is data queue error occurring.
Hi; I have a problem connecting Mikrotik through API ; on my mikrotik "IP->Services API is active on port 8728 " and I have a readonly user on my mikrotik. My mikrotik is CCR1036 and software version is 6.47 the last version my cacti find all my graphs and works well ,but cannot connect to mikrotik by "MikroTik Credentials"and it says : "Connection Failed" I think maybe this version of cacti template cannot connect to API with new versions in mikrotik.