email on new mac address found

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
jsking
Posts: 2
Joined: Wed Apr 08, 2009 12:20 pm

email on new mac address found

Post by jsking »

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
User avatar
JorisFRST
Cacti User
Posts: 229
Joined: Mon Oct 02, 2006 1:22 pm
Location: Belgium
Contact:

Re: email on new mac address found

Post by JorisFRST »

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.
Joris.
http://www.routerjanitor.com
racingbg
Posts: 4
Joined: Tue Nov 29, 2011 8:56 am

Re: email on new mac address found

Post by racingbg »

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest