Skip to content
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

Open
fredouil66 opened this issue Apr 4, 2022 · 116 comments
Open

No Graph Generated with good install #58

fredouil66 opened this issue Apr 4, 2022 · 116 comments
Assignees
Labels
started Work started

Comments

@fredouil66
Copy link

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:

  1. Go to 'cli' via putty
  2. php /opt/cacti/cli/import_package.php --filename=/opt/cacti/plugins/mikrotik/templates/MikroTik_Device.xml.gz
  3. add graph with device
  4. Graph is empty

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):

  • Version: [e.g. 1.2]
  • Source: [github]
  • Identifer: [github commit ref]

Desktop (please complete the following information):

  • OS: all
  • Browser all
  • Version all

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]

@fredouil66
Copy link
Author

Data ok
image
image
image

But the graph is empty or not generated (only cpu usage is generated):
image

@fredouil66
Copy link
Author

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

@TheWitness
Copy link
Member

You likely don't have access to the internet, or they changed the link. Let me check.

@TheWitness
Copy link
Member

TheWitness commented Apr 7, 2022

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.

@fredouil66
Copy link
Author

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.

@fredouil66
Copy link
Author

I just did a test with wget to check if cacti can access the link and it works. I erased the faulty graphs and I regenerated them but the problem persists. I look at the logs in debug I do not see anything in error..

image

@TheWitness
Copy link
Member

Under your user profile, you should select to show graph names, then we can see what Graphs are broken.

@fredouil66
Copy link
Author

all these graphs don't work:
image

@fredouil66
Copy link
Author

image

@fredouil66
Copy link
Author

The others work well like the queue and SNMP - Interface Statistics for example

@fredouil66
Copy link
Author

For information :
image

@loloski
Copy link

loloski commented Apr 8, 2022

mine on the interface always 0 rows even though i can see that it was able to pull data from snmp

@fredouil66
Copy link
Author

i just found that in /cacti/data_input.php the mikrotik scripts have not input or output field. Do think this is the problem ? if yes how do repair this ?
image

@fredouil66
Copy link
Author

image

@fredouil66
Copy link
Author

image

@fredouil66
Copy link
Author

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

@fredouil66
Copy link
Author

image

@loloski
Copy link

loloski commented Apr 9, 2022

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

@fredouil66
Copy link
Author

API is OK :
image

Install plugins is OK :
image

Install template with cli is OK

But the data input method is incomplete and the cacti not create graph ...

I tried to reinstall, nothing ..

@fredouil66
Copy link
Author

image

for information

@fredouil66
Copy link
Author

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?

@TheWitness
Copy link
Member

TheWitness commented Apr 12, 2022

Graph Title Shown Below:

image

Edit your User Profile and Toggle the Show Graph Title

image

@TheWitness
Copy link
Member

Sorry busy you know.

@fredouil66
Copy link
Author

image
image
image
image
image

@fredouil66
Copy link
Author

Didn't work :
image

And didn't work MikroTik - Interfaces, MikroTik - Users

But work well the MikroTik - Trees :
image

@fredouil66
Copy link
Author

ok I understand let me know when you have time to test the plugin ;)

@fredouil66
Copy link
Author

hello I come to the news for that. Did you work on it?

@insane91
Copy link

insane91 commented Jun 6, 2022

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
2022-06-06 10:12:01 - PLUGIN WARNING: Function does not exist config_form with function mikrotik_config_form

@fredouil66
Copy link
Author

hello do you recommend deactivating the plugin for it to work or do you think an update is necessary?

@fredouil66
Copy link
Author

Should we add or verify the application of rights in execution of certain files?

@TheWitness
Copy link
Member

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.

@TheWitness
Copy link
Member

That is NOT how to test the script server.

@fredouil66
Copy link
Author

can you please tell me how to do it?

@TheWitness
Copy link
Member

@fredouil66
Copy link
Author

Thanks

image

@fredouil66
Copy link
Author

excuse-me :

image

@fredouil66
Copy link
Author

image

I think I understood the system via the Data query goes back from the name interfaces that exist on my router and that it works perfectly but no value is returned when it is consulted. I think it should use other name than Interface Names how can I change it where does it need a fix from you?

@fredouil66
Copy link
Author

image
The Data Query [SNMP - Interface Statistics] works perfectly because it uses oids and not names. And you it possible to change something or to link the oid with the name?

@fredouil66
Copy link
Author

image

@TheWitness
Copy link
Member

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.

@TheWitness
Copy link
Member

Confirming it uses ifName

image

@fredouil66
Copy link
Author

image

@fredouil66
Copy link
Author

@TheWitness
Copy link
Member

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.

@TheWitness
Copy link
Member

Your seeing this on the Interfaces page right?
image

@fredouil66
Copy link
Author

You can already see that the data query detects the interfaces well:
image

when I want to add graphs I have the 157 interfaces that correspond to what I have in interface in the mikrotik:
image
image

in the tab mikrotik > interface there is nothing:
image

as a reminder, the graph cpu, ppp connection, disk work perfectly :
image

If I use SNMP - Interface statistics the graphs are created that's why I think there is simply something to correct in the code of the plugin

@fredouil66
Copy link
Author

erratum if I uncheck Active in mikrotik interface I have the interfaces that appear but no stats:

image

@TheWitness
Copy link
Member

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.

@fredouil66
Copy link
Author

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..

@TheWitness
Copy link
Member

Always v2. You can manually run the poller for the specific device in debug. Use --help for some guidance.

@fredouil66
Copy link
Author

OK u:0,00 s:0,01 r:11,01
OK u:0,00 s:0,01 r:11,01
19/03/2023 20:54:57 - SYSTEM STATS: Time:12.2339 Method:spine Processes:2 Threads:8 Hosts:140 HostsPerProcess:70 DataSources:263 RRDsProcessed:172
Total[12.2439] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /opt/cacti/poller_reports.php]
Total[12.2463] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/opt/cacti/poller_spikekill.php']
Total[12.2489] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/opt/cacti/poller_automation.php' -M]
Total[12.2651] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q '/opt/cacti/poller_maintenance.php']
Total[12.2748] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /opt/cacti/plugins/flowview/flowview_process.php]
Total[12.3092] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /opt/cacti/plugins/mactrack/poller_mactrack.php]
19/03/2023 20:54:59 - SYSTEM STATS: WEATHERMAP Time:1.47 Maps:5 Warnings:0 Notes:None
Total[13.8110] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /opt/cacti/plugins/mikrotik/poller_mikrotik.php -M]

@fredouil66
Copy link
Author

php /opt/cacti/plugins/mikrotik/poller_mikrotik.php --host-id=37

Cannot adopt OID in NET-SNMP-AGENT-MIB: nsNotifyStart ::= { netSnmpNotifications 1 }
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (SNMPv2-SMI): At line 6 in /usr/share/snmp/mibs/SNMP-TSM-MIB.txt
Cannot find module (SNMPv2-TC): At line 10 in /usr/share/snmp/mibs/SNMP-TSM-MIB.txt
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/SNMP-TSM-MIB.txt)
Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/SNMP-TSM-MIB.txt)
Unlinked OID in SNMP-TSM-MIB: snmpTsmMIB ::= { mib-2 190 }
Undefined identifier: mib-2 near line 13 of /usr/share/snmp/mibs/SNMP-TSM-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 10 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
Cannot find module (SNMPv2-SMI): At line 8 in /usr/share/snmp/mibs/NET-SNMP-MIB.txt
Did not find 'enterprises' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-MIB.txt)
Unlinked OID in NET-SNMP-MIB: netSnmp ::= { enterprises 8072 }
Undefined identifier: enterprises near line 10 of /usr/share/snmp/mibs/NET-SNMP-MIB.txt
Cannot find module (SNMPv2-TC): At line 12 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
Cannot find module (INET-ADDRESS-MIB): At line 13 in /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
Did not find 'netSnmp' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
Did not find 'RowStatus' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
Did not find 'StorageType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
Did not find 'InetAddressType' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
Did not find 'InetAddress' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt)
Unlinked OID in NET-SNMP-EXAMPLES-MIB: netSnmpExamples ::= { netSnmp 2 }
Undefined identifier: netSnmp near line 16 of /usr/share/snmp/mibs/NET-SNMP-EXAMPLES-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt)
Did not find 'netSnmpExamples' in module NET-SNMP-EXAMPLES-MIB (/usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt)
Unlinked OID in NET-SNMP-PASS-MIB: netSnmpPassExamples ::= { netSnmpExamples 255 }
Undefined identifier: netSnmpExamples near line 14 of /usr/share/snmp/mibs/NET-SNMP-PASS-MIB.txt
Cannot find module (SNMPv2-TC): At line 13 in /usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt
Did not find 'netSnmpObjects' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt)
Did not find 'netSnmpModuleIDs' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt)
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt)
Unlinked OID in NET-SNMP-MONITOR-MIB: netSnmpMonitorMIB ::= { netSnmpModuleIDs 3 }
Undefined identifier: netSnmpModuleIDs near line 16 of /usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt
Unlinked OID in NET-SNMP-MONITOR-MIB: nsLog ::= { netSnmpObjects 24 }
Undefined identifier: netSnmpObjects near line 37 of /usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt
Unlinked OID in NET-SNMP-MONITOR-MIB: nsFile ::= { netSnmpObjects 23 }
Undefined identifier: netSnmpObjects near line 36 of /usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt
Unlinked OID in NET-SNMP-MONITOR-MIB: nsDisk ::= { netSnmpObjects 22 }
Undefined identifier: netSnmpObjects near line 35 of /usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt
Unlinked OID in NET-SNMP-MONITOR-MIB: nsProcess ::= { netSnmpObjects 21 }
Undefined identifier: netSnmpObjects near line 34 of /usr/share/snmp/mibs/NET-SNMP-MONITOR-MIB.txt
Did not find 'netSnmpModuleIDs' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-TC.txt)
Did not find 'netSnmpAgentOIDs' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-TC.txt)
Did not find 'netSnmpDomains' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-TC.txt)
Unlinked OID in NET-SNMP-TC: unknown ::= { netSnmpAgentOIDs 255 }
Undefined identifier: netSnmpAgentOIDs near line 97 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: dragonfly ::= { netSnmpAgentOIDs 17 }
Undefined identifier: netSnmpAgentOIDs near line 96 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: macosx ::= { netSnmpAgentOIDs 16 }
Undefined identifier: netSnmpAgentOIDs near line 95 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: aix ::= { netSnmpAgentOIDs 15 }
Undefined identifier: netSnmpAgentOIDs near line 94 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: hpux11 ::= { netSnmpAgentOIDs 14 }
Undefined identifier: netSnmpAgentOIDs near line 93 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: win32 ::= { netSnmpAgentOIDs 13 }
Undefined identifier: netSnmpAgentOIDs near line 92 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: openbsd ::= { netSnmpAgentOIDs 12 }
Undefined identifier: netSnmpAgentOIDs near line 91 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: bsdi ::= { netSnmpAgentOIDs 11 }
Undefined identifier: netSnmpAgentOIDs near line 90 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: linux ::= { netSnmpAgentOIDs 10 }
Undefined identifier: netSnmpAgentOIDs near line 89 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: irix ::= { netSnmpAgentOIDs 9 }
Undefined identifier: netSnmpAgentOIDs near line 88 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: freebsd ::= { netSnmpAgentOIDs 8 }
Undefined identifier: netSnmpAgentOIDs near line 87 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netbsd ::= { netSnmpAgentOIDs 7 }
Undefined identifier: netSnmpAgentOIDs near line 86 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: hpux10 ::= { netSnmpAgentOIDs 6 }
Undefined identifier: netSnmpAgentOIDs near line 85 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: ultrix ::= { netSnmpAgentOIDs 5 }
Undefined identifier: netSnmpAgentOIDs near line 84 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: osf ::= { netSnmpAgentOIDs 4 }
Undefined identifier: netSnmpAgentOIDs near line 83 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: solaris ::= { netSnmpAgentOIDs 3 }
Undefined identifier: netSnmpAgentOIDs near line 82 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: sunos4 ::= { netSnmpAgentOIDs 2 }
Undefined identifier: netSnmpAgentOIDs near line 81 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: hpux9 ::= { netSnmpAgentOIDs 1 }
Undefined identifier: netSnmpAgentOIDs near line 80 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpTCs ::= { netSnmpModuleIDs 1 }
Undefined identifier: netSnmpModuleIDs near line 14 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpTLSTCPDomain ::= { netSnmpDomains 10 }
Undefined identifier: netSnmpDomains near line 126 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpDTLSSCTPDomain ::= { netSnmpDomains 9 }
Undefined identifier: netSnmpDomains near line 125 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpDTLSUDPDomain ::= { netSnmpDomains 8 }
Undefined identifier: netSnmpDomains near line 124 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpAliasDomain ::= { netSnmpDomains 7 }
Undefined identifier: netSnmpDomains near line 123 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpCallbackDomain ::= { netSnmpDomains 6 }
Undefined identifier: netSnmpDomains near line 122 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpTCPIPv6Domain ::= { netSnmpDomains 5 }
Undefined identifier: netSnmpDomains near line 121 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpUDPIPv6Domain ::= { netSnmpDomains 4 }
Undefined identifier: netSnmpDomains near line 120 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpAAL5PVCDomain ::= { netSnmpDomains 3 }
Undefined identifier: netSnmpDomains near line 119 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpUnixDomain ::= { netSnmpDomains 2 }
Undefined identifier: netSnmpDomains near line 118 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Unlinked OID in NET-SNMP-TC: netSnmpTCPDomain ::= { netSnmpDomains 1 }
Undefined identifier: netSnmpDomains near line 117 of /usr/share/snmp/mibs/NET-SNMP-TC.txt
Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt
Did not find 'netSnmpObjects' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt)
Did not find 'netSnmpModuleIDs' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt)
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt)
Unlinked OID in NET-SNMP-SYSTEM-MIB: netSnmpSystemMIB ::= { netSnmpModuleIDs 4 }
Undefined identifier: netSnmpModuleIDs near line 18 of /usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt
Unlinked OID in NET-SNMP-SYSTEM-MIB: nsDiskIO ::= { netSnmpObjects 35 }
Undefined identifier: netSnmpObjects near line 39 of /usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt
Unlinked OID in NET-SNMP-SYSTEM-MIB: nsLoad ::= { netSnmpObjects 34 }
Undefined identifier: netSnmpObjects near line 38 of /usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt
Unlinked OID in NET-SNMP-SYSTEM-MIB: nsCPU ::= { netSnmpObjects 33 }
Undefined identifier: netSnmpObjects near line 37 of /usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt
Unlinked OID in NET-SNMP-SYSTEM-MIB: nsSwap ::= { netSnmpObjects 32 }
Undefined identifier: netSnmpObjects near line 36 of /usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt
Unlinked OID in NET-SNMP-SYSTEM-MIB: nsMemory ::= { netSnmpObjects 31 }
Undefined identifier: netSnmpObjects near line 35 of /usr/share/snmp/mibs/NET-SNMP-SYSTEM-MIB.txt
Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Cannot find module (SNMPv2-TC): At line 37 in /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Did not find 'enterprises' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
Did not find 'TruthValue' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB.txt)
Unlinked OID in UCD-SNMP-MIB: ucdavis ::= { enterprises 2021 }
Undefined identifier: enterprises near line 39 of /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
Did not find 'ucdavis' in module UCD-SNMP-MIB (/usr/share/snmp/mibs/UCD-SNMP-MIB-OLD.txt)
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-SNMP-MIB-OLD.txt)
Unlinked OID in UCD-SNMP-MIB-OLD: loadaves ::= { ucdavis 7 }
Undefined identifier: ucdavis near line 528 of /usr/share/snmp/mibs/UCD-SNMP-MIB-OLD.txt
Unlinked OID in UCD-SNMP-MIB-OLD: disk ::= { ucdavis 6 }
Undefined identifier: ucdavis near line 417 of /usr/share/snmp/mibs/UCD-SNMP-MIB-OLD.txt
Unlinked OID in UCD-SNMP-MIB-OLD: extensible ::= { ucdavis 3 }
Undefined identifier: ucdavis near line 146 of /usr/share/snmp/mibs/UCD-SNMP-MIB-OLD.txt
Unlinked OID in UCD-SNMP-MIB-OLD: processes ::= { ucdavis 1 }
Undefined identifier: ucdavis near line 67 of /usr/share/snmp/mibs/UCD-SNMP-MIB-OLD.txt
Cannot find module (SNMPv2-TC): At line 10 in /usr/share/snmp/mibs/UCD-DLMOD-MIB.txt
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt)
Did not find 'ucdExperimental' in module UCD-SNMP-MIB (/usr/share/snmp/mibs/UCD-DLMOD-MIB.txt)
Unlinked OID in UCD-DLMOD-MIB: ucdDlmodMIB ::= { ucdExperimental 14 }
Undefined identifier: ucdExperimental near line 13 of /usr/share/snmp/mibs/UCD-DLMOD-MIB.txt
Cannot find module (SNMPv2-SMI): At line 5 in /usr/share/snmp/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
Did not find 'mib-2' in module #-1 (/usr/share/snmp/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt)
Unlinked OID in IANA-ADDRESS-FAMILY-NUMBERS-MIB: ianaAddressFamilyNumbers ::= { mib-2 72 }
Undefined identifier: mib-2 near line 8 of /usr/share/snmp/mibs/IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
Cannot find module (SNMPv2-TC): At line 15 in /usr/share/snmp/mibs/LM-SENSORS-MIB.txt
Did not find 'DisplayString' in module #-1 (/usr/share/snmp/mibs/LM-SENSORS-MIB.txt)
Did not find 'ucdExperimental' in module UCD-SNMP-MIB (/usr/share/snmp/mibs/LM-SENSORS-MIB.txt)
Unlinked OID in LM-SENSORS-MIB: lmSensors ::= { ucdExperimental 16 }
Undefined identifier: ucdExperimental near line 32 of /usr/share/snmp/mibs/LM-SENSORS-MIB.txt
Cannot find module (SNMP-FRAMEWORK-MIB): At line 9 in /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt
Cannot find module (SNMPv2-TC): At line 21 in /usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt
Did not find 'SnmpAdminString' in module #-1 (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt)
Did not find 'netSnmpObjects' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt)
Did not find 'netSnmpModuleIDs' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt)
Did not find 'netSnmpNotifications' in module NET-SNMP-MIB (/usr/share/snmp/mibs/NET-SNMP-AGENT-MIB.txt)

@fredouil66
Copy link
Author

root@cacti:~# php /opt/cacti/plugins/mikrotik/poller_mikrotik.php -M
NOTE: Processing Hosts Begins
NOTE: Auto Discovery Starting
NOTE: Auto Discovery Complete
NOTE: Launching Collectors Starting
NOTE: Launching Host Collector For: '-VRB[80.245.52.5]'
NOTE: All Hosts Launched, proceeding to wait for completion
NOTE: All Processees Complete, Exiting
NOTE: Updating Last Run Statistics
NOTE: Auto Purging Hosts
NOTE: Updating Summary Statistics for Each Host
NOTE: Detecting Host Types Based Upon Host Types Table
19/03/2023 21:03:55 - SYSTEM MIKROTIK STATS: Time:5.02 Processes:10 Hosts:1 Interfaces:160 Queues:0 Users:0 Trees:26 Waps:0 Wreg:0
NOTE: MikroTik Polling Completed, Time:5.02 Processes:10 Hosts:1 Interfaces:160 Queues:0 Users:0 Trees:26 Waps:0 Wreg:0

@TheWitness
Copy link
Member

Yikes, I would get those mib errors fixed so you can see the forest from the trees.

@TheWitness
Copy link
Member

On the nasty one use the --debug option. But fix those mibs.

@fredouil66
Copy link
Author

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
Section CHR

I think the Chr format uses something other than ifname and uses ifalias or something else which matches this thread on the forum.
I know that libreNMS handles it well it would be interesting to know how they do it.

for the MIB I put you the link below:
https://download.mikrotik.com/routeros/6.49.7/mikrotik.mib

@TheWitness
Copy link
Member

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.

@TheWitness
Copy link
Member

What is Chr format? You are using UTF8 characters?

@fredouil66
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
started Work started
Projects
None yet
Development

No branches or pull requests

4 participants