Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Hello!
We are using software CACTI and plugin MacTrack on it. By this software we are getting statistics from switches Dlink (35xx and 30xx series). One month ago we saw that we haven`t got the statistics from switches. We remember that in those time we started to use options "Port Security" in mode "Delete On Timeout". As the result, we have statistics from those ports where the mode is "Learned=Dynamic" (Port Security is off) and we haven`t from those ports where port status is "Learned=DeleteOnTimeout".
We use library mactrack_dlink_c1.php from forum http://forums.cacti.net/download.php?id=8868
In those library we found the block SNMP. We decided to compare two switches: switch from which we have statistic and switch from which we haven`t:
As we see there is no any difference in data structure. We checked another snmp-requests from this library - the structure is the same.
Could anybody help us?
Thank you.
Last edited by MaLblsH on Thu Dec 03, 2009 9:36 am, edited 2 times in total.
# php mactrack_scanner.php -id=127 -d
DEBUG: HOST: SWITCH_IP is alive, processing has begun.
DEBUG: Scanning function is 'get_dlink_l2_switch_ports'
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ipAddrTable scanning for link ports data collection complete.
DEBUG: ifInterfaces assembly complete.
INFO: HOST: SWITCH_IP, TYPE: DES-3526 Fast-Ethernet Switch, TOTAL PORTS: 0, OPER PORTS: 0
DEBUG: No user ports on this network.
# php mactrack_scanner.php -id=177 -d
DEBUG: HOST: SWITCH_IP2 is alive, processing has begun.
DEBUG: Scanning function is 'get_dlink_l2_switch_ports'
DEBUG: ifIndexes data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ipAddrTable scanning for link ports data collection complete.
DEBUG: ifInterfaces assembly complete.
INFO: HOST: SWITCH_IP2, TYPE: DES-3526 Fast-Ethernet Switch, TOTAL PORTS: 0, OPER PORTS: 0
DEBUG: No user ports on this network.
It is very strange but the scanner didn`t see the active ports on the both switches. When we started mactrack automatically - it see.
to count the number of active ports.
It may be better to return the status of the port from function build_InterfacesTable ?
It will require very little change: