CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by gabrifolle86 »

Hi everybody,
I have a problem adding my switch HPE OfficeConnect 1820 24G (J9983A) to mactrack plugin.

I have configured as following image but even though the device is online, Mactrack detects only the ports but no MAC addresses or IP addresses. My switch is configured with several VLANs untagged on the ports and tagged on the backbone. I was hoping that Mactrack would manage to detect at least the MAC addresses that transit through the trunk (port with tagged VLANs).

Here the status:
DEVICES.PNG
DEVICES.PNG (34.87 KiB) Viewed 948 times
DEVICE.PNG
DEVICE.PNG (36.42 KiB) Viewed 948 times
DEVICE TYPE.PNG
DEVICE TYPE.PNG (31.99 KiB) Viewed 948 times
SITES.PNG
SITES.PNG (30.93 KiB) Viewed 948 times
My SITE has only one device (the online HPE switch) maybe I need a specific "MAC address Scanning Function" and "IP Address Scanning Function for the HPE switch? If it is, how can I create it?

I really thanks anyone can help me!! :D
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

Try to change in device types function "MAC Address Scanning Function" to another
Let the Cacti grow!
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

try to use last develop branch version from here:
https://github.com/Cacti/plugin_mactrack/

not old 4.x releases
Let the Cacti grow!
User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by gabrifolle86 »

macan wrote: Fri Feb 23, 2024 6:13 am try to use last develop branch version from here:
https://github.com/Cacti/plugin_mactrack/

not old 4.x releases
Thanks for the help!
I have updated all (4.6) but nothing changed, I have tried different scanning type (device online but no mac or ip) :-?
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

It seems that it is supported:
https://support.hpe.com/hpesc/public/do ... cale=en_US
did you try h3c/3com or enterasys_n7?

You can try run debug:
php mactrack_scanner.php -d=your_host_id -d
Let the Cacti grow!
User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by gabrifolle86 »

macan wrote: Mon Feb 26, 2024 4:35 am It seems that it is supported:
https://support.hpe.com/hpesc/public/do ... cale=en_US
did you try h3c/3com or enterasys_n7?

You can try run debug:
php mactrack_scanner.php -d=your_host_id -d


Hello, thank you for your help.
Yes, I have tried all the scanning methods. Below, I'm sending you the debug output of the two methods you suggested (I've removed the ip address).

here's the enterasys:

Code: Select all

2024-02-26 14:02:11 - MACTRACK HOST: **.**.**.** is alive, processing has begun.
2024-02-26 14:02:11 - MACTRACK DEBUG: Scanning function is get_enterasys_N7_switch_ports
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: VLAN data collected. There are 27 VLANS.
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK ifIndexes data collection complete: 35
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifIndexes data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifTypes data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifNames data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ipAddrTable scanning for link ports data collection complete. '1' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifSpeed data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifHighSpeed data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifDuplex data collection complete. '0' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifDescr data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifMtu data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifPhysAddress data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifAdminStatus data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifOperStatus data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifLastChange data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifInOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifOutOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifHCInOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifHCOutOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifInMulticastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifOutMulticastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifInBroadcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifOutBroadcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifInUcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifOutUcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifInDiscards data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifInErrors data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifInUnknownProtos data collection complete. '0' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifOutDiscards data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:11 - MACTRACK DEBUG: ifOutErrors data collection complete. '35' rows found!
2024-02-26 14:02:11 - MACTRACK ifInterfaces assembly complete: 18565
2024-02-26 14:02:11 - MACTRACK DEBUG: Adding IfInterfaces Records
2024-02-26 14:02:11 - MACTRACK ifInterfaces assembly complete: 35
2024-02-26 14:02:11 - MACTRACK FUNCTION: get_enterasys_N7_dot1dTpFdbEntry_ports started
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:12 - MACTRACK get active ports: 35
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:12 - MACTRACK get bridgePortIfIndexes: 34
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:12 - MACTRACK get port_status: 0
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:12 - MACTRACK get port_numbers: 0
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:12 - MACTRACK get vlan_ids: 27
2024-02-26 14:02:12 - MACTRACK Port number information collected: 0
2024-02-26 14:02:12 - MACTRACK DEBUG: No user ports on this network.
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:02:12 - MACTRACK INFO: HOST:**.**.**.**, TYPE: HPE OfficeConnect Switch 1820 24G PoE+ (, TOTAL PORTS: 26, ACTIVE PORTS: 0
2024-02-26 14:02:12 - MACTRACK DEBUG: macs active on this switch:0
here's the h3c:

Code: Select all

2024-02-26 14:00:08 - MACTRACK HOST: **.**.**.** is alive, processing has begun.
2024-02-26 14:00:08 - MACTRACK DEBUG: Scanning function is get_h3c_3com_switch_ports
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: There are 0 VLANS.
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK ifIndexes data collection complete: 35
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifIndexes data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifTypes data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifNames data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ipAddrTable scanning for link ports data collection complete. '1' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifSpeed data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifHighSpeed data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifDuplex data collection complete. '0' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifDescr data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifMtu data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifPhysAddress data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifAdminStatus data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifOperStatus data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifLastChange data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifInOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifOutOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifHCInOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifHCOutOctets data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifInMulticastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifOutMulticastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifInBroadcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifOutBroadcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifInUcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifOutUcastPkts data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifInDiscards data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifInErrors data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifInUnknownProtos data collection complete. '0' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifOutDiscards data collection complete. '35' rows found!
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
Cannot find module (RFC-1215): At line 1 in (none)
2024-02-26 14:00:08 - MACTRACK DEBUG: ifOutErrors data collection complete. '35' rows found!
2024-02-26 14:00:08 - MACTRACK ifInterfaces assembly complete: 18616
2024-02-26 14:00:08 - MACTRACK DEBUG: Adding IfInterfaces Records
2024-02-26 14:00:08 - MACTRACK ifInterfaces assembly complete: 35
2024-02-26 14:00:09 - MACTRACK INFO: HOST: **.**.**.**, TYPE: HPE OfficeConnect Switch 1820 24G PoE+ (, No active devices on this network device.
It seems that the RFC-1215 module is missing. What is it about?

Thank you!
User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by gabrifolle86 »

I have made some search on google, and I tried to import the RFC-1215 txt in the mibs folder, now the debug says:

Code: Select all

root@cactivm:/var/www/html/cacti/plugins/mactrack# php mactrack_scanner.php -id=1 -d
2024-02-26 14:45:50 - MACTRACK HOST: xx.xx.xx.xx is alive, processing has begun.
2024-02-26 14:45:50 - MACTRACK DEBUG: Scanning function is get_h3c_3com_switch_ports
2024-02-26 14:45:50 - MACTRACK DEBUG: There are 0 VLANS.
2024-02-26 14:45:50 - MACTRACK ifIndexes data collection complete: 35
2024-02-26 14:45:50 - MACTRACK DEBUG: ifIndexes data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifTypes data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifNames data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ipAddrTable scanning for link ports data collection complete. '1' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifSpeed data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifHighSpeed data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifDuplex data collection complete. '0' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifDescr data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifMtu data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifPhysAddress data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifAdminStatus data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifOperStatus data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifLastChange data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifInOctets data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifOutOctets data collection complete. '35' rows found!
2024-02-26 14:45:50 - MACTRACK DEBUG: ifHCInOctets data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifHCOutOctets data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifInMulticastPkts data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifOutMulticastPkts data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifInBroadcastPkts data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifOutBroadcastPkts data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifInUcastPkts data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifOutUcastPkts data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifInDiscards data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifInErrors data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifInUnknownProtos data collection complete. '0' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifOutDiscards data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK DEBUG: ifOutErrors data collection complete. '35' rows found!
2024-02-26 14:45:51 - MACTRACK ifInterfaces assembly complete: 18381
2024-02-26 14:45:51 - MACTRACK DEBUG: Adding IfInterfaces Records
2024-02-26 14:45:51 - MACTRACK ifInterfaces assembly complete: 35
2024-02-26 14:45:51 - MACTRACK INFO: HOST: xx.xx.xx.xx, TYPE: HPE OfficeConnect Switch 1820 24G PoE+ (, No active devices on this network device.
but still no mac or ip found :(
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

I will look at it. I think that I have the same switch ...
Let the Cacti grow!
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

Sorry, I got you incorrect information. It seems that 1820 doesn't provide list of mac addresses via snmp
Let the Cacti grow!
User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by gabrifolle86 »

macan wrote: Tue Feb 27, 2024 9:50 am Sorry, I got you incorrect information. It seems that 1820 doesn't provide list of mac addresses via snmp
So, you mean that I can't use mactrack with this switch?
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

Yes cannot use. It isn't possible to read mac address via SNMP

I have read documentation and 1820 support only few basic SNMP MIBs, It is basic L2 switch
Let the Cacti grow!
User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by gabrifolle86 »

macan wrote: Tue Feb 27, 2024 10:49 am Yes cannot use. It isn't possible to read mac address via SNMP

I have read documentation and 1820 support only few basic SNMP MIBs, It is basic L2 switch
I have an update!
with the "get_dlink_l2_switch_ports" scanning function I have found all the macaddress but the log has this errors:

Code: Select all

2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 61 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 60 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 59 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 58 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 57 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 56 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 55 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 54 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 26 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 25 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 24 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 23 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 22 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 21 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 20 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 19 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 18 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 17 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 16 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 15 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 14 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 13 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 12 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 11 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 10 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 9 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 8 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 7 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 6 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 5 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 4 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 3 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 2 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
2024-02-29 10:23:35 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins/mactrack/mactrack_scanner.php[171]:get_dlink_l2_switch_ports(), /plugins/mactrack/lib/mactrack_dlink.php[66]:CactiErrorHandler())
2024-02-29 10:23:35 - ERROR PHP WARNING in Plugin 'mactrack': Undefined array key 1 in file: /var/www/html/cacti/plugins/mactrack/lib/mactrack_dlink.php on line: 66
I have tried to fix this error to chatgpt passing the file "mactrack_dlink.php" but with no success.
Could you please help me?

here's the debug log:

Code: Select all

root@cactivm:/var/www/html/cacti/plugins/mactrack# php mactrack_scanner.php -id=1 -d
2024-02-29 10:21:21 - MACTRACK HOST: xx.xx.xx.x is alive, processing has begun.
2024-02-29 10:21:21 - MACTRACK DEBUG: Scanning function is get_dlink_l2_switch_ports
2024-02-29 10:21:21 - MACTRACK DEBUG: ifIndexes data collection complete
2024-02-29 10:21:21 - MACTRACK DEBUG: ifTypes data collection complete.
2024-02-29 10:21:21 - MACTRACK DEBUG: ifNames data collection complete.
2024-02-29 10:21:21 - MACTRACK DEBUG: ipAddrTable scanning for Dlink ports data collection complete.
2024-02-29 10:21:21 - MACTRACK DEBUG: ifInterfaces assembly complete.
2024-02-29 10:21:22 - MACTRACK INFO: HOST: xx.xx.x.xx, TYPE: HPE OfficeConnect Switch 1820 24G PoE+ (, TOTAL PORTS: 26, OPER PORTS: 15
2024-02-29 10:21:22 - MACTRACK DEBUG: Port number information collected.
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:e0:4c:d5:xxxxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '18:a6:f7:eb:xxxx on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'ac:15:a2:02:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'd8:47:32:52:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:13:10:f8:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'ac:15:a2:02:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'd8:47:32:52:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:12:17:ac:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:12:31:09xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:12:31:3d:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:12:31:3d:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:12:41:8a:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:12:41:8a:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '38:af:29:f8:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '88:e6:28:a7:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'c0:b3:2a:96:xxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'c0:de:5a:b6:xxxxxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'c2:a8:9f:2e:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'c2:ac:e0:8c:xxxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'd8:47:32:52:xxxxx on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'e8:ab:fa:8b:xxxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'ec:3d:fd:fd:xxxx on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:0c:29:4fxxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:0c:29:67:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address '00:0c:29:f1:xxxx' on device 'SWITCH-HP' is  Authorized
2024-02-29 10:21:22 - MACTRACK DEBUG: MAC Address 'd8:47:32:52xxxxx' on device 'SWITCH-HP' is  Authorized
Maybe fixing that error you can add the "hpe-officeconnect" scanning function to the list

Thanks a lot!
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

Ok, I will check it next week
Let the Cacti grow!
macan
Cacti Pro User
Posts: 898
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by macan »

fixed here https://github.com/Cacti/plugin_mactrack/pull/206
You need download cahnged files or wait for merging changes and than download actual develop branch from
https://github.com/Cacti/plugin_mactrack
Let the Cacti grow!
User avatar
gabrifolle86
Cacti User
Posts: 57
Joined: Thu Sep 03, 2020 12:27 pm

Re: CACTI 1.2.23 - PLUGIN MACTRACK - NO MAC OR IP ON SWITCH HPE

Post by gabrifolle86 »

macan wrote: Tue Mar 05, 2024 3:29 pm fixed here https://github.com/Cacti/plugin_mactrack/pull/206
You need download cahnged files or wait for merging changes and than download actual develop branch from
https://github.com/Cacti/plugin_mactrack
Perfect thanks! It seems that everything is working without errors in the log.
Thanks! :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests