Sort IP address by its numerical order

Support questions about the MAC Track plugin

Moderators: Moderators, Developers

Post Reply
Posts: 9
Joined: Wed Aug 26, 2015 3:46 am

Sort IP address by its numerical order

#1 Post by jab50 » Fri Sep 11, 2015 6:03 am

Attached is a patched version of the excellent mactrack plugin for files mactrack_view_macs.php and mactrack_view_arp.php files which will change the sorting order of the "ED IP Address" column (and on the IP tab also the hostname) to be true number order instead of text order.
It just uses the MySQL function INET_ATON in the order by part of the select query clause to make the adjustment so it might be MySQL version dependant mine is 5.5.
From mactrack plugin V2.9 cacti 0.8.8f
(12.33 KiB) Downloaded 104 times

Post Reply