-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No Graph Generated with good install #58
Comments
07/04/2022 13:55:08 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mikrotik/poller_mikrotik.php[136]:getLatestVersion(), /plugins/mikrotik/poller_mikrotik.php[146]:file_get_contents(), CactiErrorHandler())07/04/2022 13:55:08 - ERROR PHP WARNING in Plugin 'mikrotik': file_get_contents(http://upgrade.mikrotik.com/routeros/LATEST.6): failed to open stream: Connection timed out in file: /opt/cacti/plugins/mikrotik/poller_mikrotik.php on line: 146 |
You likely don't have access to the internet, or they changed the link. Let me check. |
That's the issue. I guess that we may need to add an option to suppress the message, or add a proxy. We added proxy support in Cacti 1.3, but that project is still stalled. |
I think the problem is that the code must access the Mikrotik site (http://upgrade.mikrotik.com/routeros/LATEST.6). Do you think this is the problem why mikrotik plugins dont generate the graph ? I can check the cacti can join the mikrotik site now. |
Under your user profile, you should select to show graph names, then we can see what Graphs are broken. |
The others work well like the queue and SNMP - Interface Statistics for example |
mine on the interface always 0 rows even though i can see that it was able to pull data from snmp |
I used this command for install the template : php /opt/cacti/cli/import_package.php --filename=/opt/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz |
I think the basic howto should be updated and mentioned that the plugin after installed should be activated and last but not the least after adding device make sure that you have read only users via mikrotik api and this plugins will start to work beautifully |
I don't know what else to add in this ticket in order to be able to give you information to be able to help me or to be able to solve this bug. What additional information would be needed? |
Sorry busy you know. |
ok I understand let me know when you have time to test the plugin ;) |
hello I come to the news for that. Did you work on it? |
Hi, Also having the same issue of graphs not showing when using Mikrotik template, the interface gives error, and for some reason the Mikrotik plugging drop the mysql server and regain access to cacti after disabling the mikrotik pluging Edit: This is error i get when activating the Mikrotik Plugin |
hello do you recommend deactivating the plugin for it to work or do you think an update is necessary? |
Should we add or verify the application of rights in execution of certain files? |
Okay now look in the documentation for how to test a script server script and see if you actually get data back from those individual polar items calls. |
That is NOT how to test the script server. |
can you please tell me how to do it? |
MicroTik interfaces template uses the data in the Database and by ifName (I hope) and not the name. If you want to use SNMP, just add the normal Interface traffic Data Query to the device. |
Yikes, that's scary. Cacti depends on that name to generate the graph. Most devices have a consistent ifName or ifDescr (two different things) and use ifAlias for the user configurable name. So, a real bummer, and I've got Tiks all over the place. |
Means the poller is not running. So, either the plugin is installed and not enabled, or mtik polling is not enabled, interface polling is disabled or the device SNMP setting are wrong. |
already the snmp works since I have reassembled cpu, disk, …. I make graphics and it works only interface does not work. Can you give me a procedure for reinstalling the plugins? because I don't know how to check the poller? are you using snmp v1 or v2? how do you configure the MikroTik? I have mounted the same MikroTik sure librenms and it works perfectly.. |
Always v2. You can manually run the poller for the specific device in debug. Use --help for some guidance. |
OK u:0,00 s:0,01 r:11,01 |
php /opt/cacti/plugins/mikrotik/poller_mikrotik.php --host-id=37 Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyStart ::= { netSnmpNotifications 1 } |
root@cacti:~# php /opt/cacti/plugins/mikrotik/poller_mikrotik.php -M |
Yikes, I would get those mib errors fixed so you can see the forest from the trees. |
On the nasty one use the --debug option. But fix those mibs. |
hello that's it I think I found the problem in fact we use the Mikrotik on its VM Proxmox format call Chr and I think the SNMP does not work the same way because I tried with Mikrotik equipment (router RBD53GR) and there the interface graphics are created correctly. https://mikrotik.com/download I think the Chr format uses something other than ifname and uses ifalias or something else which matches this thread on the forum. for the MIB I put you the link below: |
Cacti does not depend on MIB files. So, get that cleaned up. You can always load them if you need help when performing template development. |
What is |
the CHR format the version of routeros in VM version that can be installed on proxmox for infrastructure routers it is the same software as in hardware equipment but much more powerful I use it at operator level for my clients |
Describe the bug
A clear and concise description of what the bug is.
Hello, I'm opening the ticket for you because I have a problem with the Mikrotik plugin.
I did the 'import_package.php but the system does not create a graph although it retrieves the data well. I checked the rights of the files and folders they are all good (it seems to me) I do not see what to look for. There were no errors during installation.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Plugin (please complete the following information):
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
root@cacti:~# php /opt/cacti/cli/import_package.php --filename=/opt/cacti/plugin s/mikrotik/templates/MikroTik_Device.xml.gz
Read 131417 bytes of Package data
Résultat de l'importation Cacti has imported the following items for the Package :
Package Files
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_snmpget.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_count_oids.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_cpu.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_procs.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_mem.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_disk.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_users.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_uptime.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_health.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_wapcount.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_wrcount.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_trees.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_qcount.php [written]
/opt/cacti/plugins/mikrotik/templates/resource/script_server/mikrotik_wireless_r eg.xml [written]
/opt/cacti/plugins/mikrotik/templates/resource/script_server/mikrotik_queues.xml [written]
/opt/cacti/plugins/mikrotik/templates/resource/script_server/mikrotik_trees.xml [written]
/opt/cacti/plugins/mikrotik/templates/resource/script_server/mikrotik_qusers.xml [written]
/opt/cacti/plugins/mikrotik/templates/resource/script_server/mikrotik_interfaces .xml [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_wireless_reg.php [writ ten]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_queues.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_qtrees.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_qusers.php [written]
/opt/cacti/plugins/mikrotik/templates/scripts/ss_mikrotik_interfaces.php [writte n]
CDEF
[succès] Turn Bytes into Bits [unchanged]
[succès] Turn Seconds into Hours [nouveau]
[succès] Make Per 5 Minutes [unchanged]
GPRINT Preset
[succès] Normal [unchanged]
[succès] Exact Numbers [unchanged]
[succès] Percentage as Decimal [nouveau]
Méthode d'acquisition des données
[succès] MikroTik - Device - SNMP Get [nouveau]
[succès] MikroTik - Device - Count Oids [nouveau]
[succès] MikroTik - Device - CPU Utilization [nouveau]
[succès] MikroTik - Device - Processes [nouveau]
[succès] MikroTik - Device - Memory Utilization [nouveau]
[succès] MikroTik - Device - Disk Utilization [nouveau]
[succès] MikroTik - Device - Users [nouveau]
[succès] MikroTik - Device - Uptime [nouveau]
[succès] MikroTik - Device - Health [nouveau]
[succès] MikroTik - Device - Wireless APs [nouveau]
[succès] MikroTik - Device - Wireless Reg [nouveau]
[succès] MikroTik - Device - Trees [nouveau]
[succès] MikroTik - Device - Queues [nouveau]
Modèle de données
[succès] MikroTik - Device - PPP Active [nouveau]
[succès] MikroTik - Device - IP Routes [nouveau]
[succès] MikroTik - Device - Wireless Connections [nouveau]
[succès] MikroTik - Device - IP/ARP Entries [nouveau]
[succès] MikroTik - Device - CPU Utilization [nouveau]
[succès] MikroTik - Device - Processes [nouveau]
[succès] MikroTik - Device - Memory Utilization [nouveau]
[succès] MikroTik - Device - Disk Utilization [nouveau]
[succès] MikroTik - Device - Users [nouveau]
[succès] MikroTik - Device - Uptime [nouveau]
[succès] MikroTik - Device - Health - 12.0 Voltage [nouveau]
[succès] MikroTik - Device - Health - 5.0 Voltage [nouveau]
[succès] MikroTik - Device - Health - 3.3 Voltage [nouveau]
[succès] MikroTik - Device - Health - Core Voltage [nouveau]
[succès] MikroTik - Device - Health - Voltage [nouveau]
[succès] MikroTik - Device - Health - CPU Temperature [nouveau]
[succès] MikroTik - Device - Health - Processor Temperature [nouveau]
[succès] MikroTik - Device - Health - Sensor Temperature [nouveau]
[succès] MikroTik - Device - Health - Temperature [nouveau]
[succès] MikroTik - Device - Health - Power [nouveau]
[succès] MikroTik - Device - Health - Current [nouveau]
[succès] MikroTik - Device - Wireless APs [nouveau]
[succès] MikroTik - Device - Wireless Reg [nouveau]
[succès] MikroTik - Device - Trees [nouveau]
[succès] MikroTik - Device - Queues [nouveau]
[succès] MikroTik - DHCP - Leases [nouveau]
[succès] MikroTik - Wireless Reg - Data Rates [nouveau]
[succès] MikroTik - Wireless Reg - Packets [nouveau]
[succès] MikroTik - Wireless Reg - Traffic [nouveau]
[succès] MikroTik - Wireless Reg - Uptime [nouveau]
[succès] MikroTik - Queue - Packets [nouveau]
[succès] MikroTik - Queue - Traffic [nouveau]
[succès] MikroTik - Queue - Queues/Drops [nouveau]
[succès] MikroTik - Trees - Packets [nouveau]
[succès] MikroTik - Trees - Bytes [nouveau]
[succès] MikroTik - Users - Total Packets In/Out [nouveau]
[succès] MikroTik - Users - Current Packets In/Out [nouveau]
[succès] MikroTik - Users - Total Bytes In/Out [nouveau]
[succès] MikroTik - Users - Current Bytes In/Out [nouveau]
[succès] MikroTik - Users - Connect Time [nouveau]
[succès] MikroTik - Interfaces - Bytes Tx/Rx [nouveau]
[succès] MikroTik - Interfaces - Packets Tx/Rx [nouveau]
[succès] MikroTik - Interfaces - Rx Distribution [nouveau]
[succès] MikroTik - Interfaces - Special Tx/Rx [nouveau]
[succès] MikroTik - Interfaces - Tx Distribution [nouveau]
[succès] MikroTik - Interfaces - Tx Errors [nouveau]
[succès] MikroTik - Interfaces - Rx Errors [nouveau]
Modèle de graphique
[succès] MikroTik - Device - PPP Active [nouveau]
[succès] MikroTik - Device - IP Routes [nouveau]
[succès] MikroTik - Device - Wireless Connections [nouveau]
[succès] MikroTik - Device - IP/ARP Entries [nouveau]
[succès] MikroTik - Device - CPU Utilization [nouveau]
[succès] MikroTik - Device - Processes [nouveau]
[succès] MikroTik - Device - Memory Utilization [nouveau]
[succès] MikroTik - Device - Disk Utilization [nouveau]
[succès] MikroTik - Device - Users [nouveau]
[succès] MikroTik - Device - Uptime [nouveau]
[succès] MikroTik - Device - Health - 12.0 Voltage [nouveau]
[succès] MikroTik - Device - Health - 5.0 Voltage [nouveau]
[succès] MikroTik - Device - Health - 3.3 Voltage [nouveau]
[succès] MikroTik - Device - Health - Core Voltage [nouveau]
[succès] MikroTik - Device - Health - Voltage [nouveau]
[succès] MikroTik - Device - Health - CPU Temperature [nouveau]
[succès] MikroTik - Device - Health - Processor Temperature [nouveau]
[succès] MikroTik - Device - Health - Sensor Temperature [nouveau]
[succès] MikroTik - Device - Health - Temperature [nouveau]
[succès] MikroTik - Device - Health - Power [nouveau]
[succès] MikroTik - Device - Health - Current [nouveau]
[succès] MikroTik - Device - Wireless APs [nouveau]
[succès] MikroTik - Device - Wireless Regs [nouveau]
[succès] MikroTik - Device - Trees [nouveau]
[succès] MikroTik - Device - Queues [nouveau]
[succès] MikroTik - DHCP - Leases [nouveau]
[succès] MikroTik - Wireless Reg - Data Rates [nouveau]
[succès] MikroTik - Wireless Reg - Packets [nouveau]
[succès] MikroTik - Wireless Reg - Traffic (bytes/sec) [nouveau]
[succès] MikroTik - Wireless Reg - Traffic (bits/sec) [nouveau]
[succès] MikroTik - Wireless Reg - Uptime [nouveau]
[succès] MikroTik - Queues - Packets In/Out [nouveau]
[succès] MikroTik - Queues - Traffic (bytes/sec) [nouveau]
[succès] MikroTik - Queues - Traffic (bits/sec) [nouveau]
[succès] MikroTik - Queues - Drops [nouveau]
[succès] MikroTik - Queues - Queues In/Out [nouveau]
[succès] MikroTik - Trees - Packets Total [nouveau]
[succès] MikroTik - Trees - Traffic (bits/sec) [nouveau]
[succès] MikroTik - Users - Total Packets In/Out [nouveau]
[succès] MikroTik - Users - Current Packets In/Out [nouveau]
[succès] MikroTik - Users - Total Bytes In/Out [nouveau]
[succès] MikroTik - Users - Current Bytes In/Out [nouveau]
[succès] MikroTik - Users - Connect Time [nouveau]
[succès] MikroTik - Interfaces - Bytes Tx/Rx [nouveau]
[succès] MikroTik - Interfaces - Packets Tx/Rx [nouveau]
[succès] MikroTik - Interfaces - Rx Distribution [nouveau]
[succès] MikroTik - Interfaces - Special Tx/Rx [nouveau]
[succès] MikroTik - Interfaces - Tx Distribution [nouveau]
[succès] MikroTik - Interfaces - Tx Errors [nouveau]
[succès] MikroTik - Interfaces - Rx Errors [nouveau]
Interrogation avancée
[succès] MikroTik - Wireless Reg [nouveau]
[succès] MikroTik - Queues [nouveau]
[succès] MikroTik - Trees [nouveau]
[succès] MikroTik - Users [nouveau]
[succès] MikroTik - Interfaces [nouveau]
Modèle d'équipement
[succès] MikroTik Device [nouveau]
The text was updated successfully, but these errors were encountered: