ClearFoundation Tracker - ClearOS
View Issue Details
0001417ClearOSapp-network-visualizer - Network Visualizerpublic2013-11-04 12:292020-03-02 08:19
bchambers 
 
normalfeaturealways
closedsuspended 
6.5.0 Beta 2 
 
0001417: Would be nice to see hostnames in addition to IP's on src and dest
5.x used to display IP and hostnames in the tables. Would be nice to add setting to toggle.
To play around with hostnames, edit:

/usr/clearos/apps/network_visualiser/htdocs/network_visualiser.js.php

On the detailed report section, change:

} else if ($('#report_type').val() == report_detailed) {
    table_report.fnAddData([
      json.data[index].src,
      json.data[index].srcport,
      json.data[index].proto,
      json.data[index].dst,
      json.data[index].dstport,
      field
    ]);
}

To this to view hostnames:

} else if ($('#report_type').val() == report_detailed) {
    table_report.fnAddData([
      json.data[index].srcname,
      json.data[index].srcport,
      json.data[index].proto,
      json.data[index].dstname,
      json.data[index].dstport,
      field
    ]);
}

Or to view both IP and hostname:

} else if ($('#report_type').val() == report_detailed) {
    table_report.fnAddData([
      json.data[index].src + ' (' + json.data[index].srcname + ')',
      json.data[index].srcport,
      json.data[index].proto,
      json.data[index].dst + ' (' + json.data[index].dstname + ')',
      json.data[index].dstport,
      field
    ]);
}
No tags attached.
Issue History
2013-11-04 12:29bchambersNew Issue
2013-11-04 12:29bchambersStatusnew => assigned
2013-11-04 12:29bchambersAssigned To => bchambers
2013-12-20 13:28user2Target Version6.5.0 Beta 2 =>
2020-03-02 08:18NickHNote Added: 0013121
2020-03-02 08:19NickHStatusassigned => closed
2020-03-02 08:19NickHAssigned Tobchambers =>
2020-03-02 08:19NickHResolutionopen => suspended

Notes
(0013121)
NickH   
2020-03-02 08:18   
Transferred to https://gitlab.com/clearos/clearfoundation/app-network-visualiser/issues/2 [^]