New Field at IP addresses view

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
wpoveda
Posts: 2
Joined: Tue Aug 22, 2017 6:45 am

New Field at IP addresses view

Post by wpoveda »

Hi,

Could be possible the addition of the field "Name" at this view as is showed at the "Interfaces" one?

Thanks
wpoveda
Posts: 2
Joined: Tue Aug 22, 2017 6:45 am

Re: New Field at IP addresses view

Post by wpoveda »

Hi people,

This is my workaround

551 -- > $query_string = "SELECT mac_track_ips.*, mac_track_sites.site_name, mac_track_oui_database.*, mac_track_interfaces.ifName
FROM mac_track_ips
LEFT JOIN mac_track_sites
ON (mac_track_ips.site_id = mac_track_sites.site_id)
LEFT JOIN mac_track_oui_database
ON (mac_track_oui_database.vendor_mac=SUBSTRING(mac_track_ips.mac_address, 1, 8))
LEFT JOIN mac_track_interfaces ON (mac_track_interfaces.device_id=mac_track_ips.device_id AND mac_track_interfaces.ifIndex=mac_track_ips.port_number)
$sql_where
$sql_order
$sql_limit";



mac_track_view_ips{ ...
echo '<td>' . $port_result['port_number'] .'::'. $port_result['ifName'] . '</td>';
...}
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: New Field at IP addresses view

Post by Osiris »

Github pulling request is a better place for this.
Before history, there was a paradise, now dust.
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: New Field at IP addresses view

Post by Pucho »

This has been done and it's already on github version (develop branch).
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests