I have looked everywhere I know to look, and I cannot find where/how to enable an email on the discovery of a new mac. Could someone point me in the right direction?
I just recently updated to 2.9.
Thanks,
Jared
email on new mac address found
Moderators: Developers, Moderators
Re: email on new mac address found
Hi,
this is the part of poller_mactrack where it checks for the mac addresses in mac watch.
/* process macwatch data */
$macwatches = db_fetch_assoc("SELECT * FROM mac_track_macwatch");
if (sizeof($macwatches)) {
$from = read_config_option("mt_from_email");
$fromname = read_config_option("mt_from_name");
foreach($macwatches as $record) {
/* determine if we should check this one */
$found = db_fetch_row("SELECT *
FROM mac_track_temp_ports
WHERE mac_address='" . $record["mac_address"] . "'");
If I read this correctly it checks the mac_track_macwatch table against all mac addresses found,
so unless you populate the mac_track_macwatch table with ALL mac addresses in the world it won't work this way.
I think using Mac Authorizations is a better thing for what you want to do ?
In Settings / Device tracking you can setup MacAuth Report E-Mail Addresses.
this is the part of poller_mactrack where it checks for the mac addresses in mac watch.
/* process macwatch data */
$macwatches = db_fetch_assoc("SELECT * FROM mac_track_macwatch");
if (sizeof($macwatches)) {
$from = read_config_option("mt_from_email");
$fromname = read_config_option("mt_from_name");
foreach($macwatches as $record) {
/* determine if we should check this one */
$found = db_fetch_row("SELECT *
FROM mac_track_temp_ports
WHERE mac_address='" . $record["mac_address"] . "'");
If I read this correctly it checks the mac_track_macwatch table against all mac addresses found,
so unless you populate the mac_track_macwatch table with ALL mac addresses in the world it won't work this way.
I think using Mac Authorizations is a better thing for what you want to do ?
In Settings / Device tracking you can setup MacAuth Report E-Mail Addresses.
Joris.
http://www.routerjanitor.com
http://www.routerjanitor.com
Re: email on new mac address found
Did anybody find a way for receiving macwatch notifications on any new MAC address detected in the network?
May be some kind of wildcard address should be specified in macwatch?
May be some kind of wildcard address should be specified in macwatch?
Who is online
Users browsing this forum: No registered users and 3 guests