How reduce time of Scanning Frequency on Mactrack

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
nocandcan
Posts: 6
Joined: Mon May 12, 2014 1:21 am

How reduce time of Scanning Frequency on Mactrack

Post by nocandcan »

Hello, all.
Minimize time of Scanning Frequency is 10 minutes. This is very long.
Could we change this value to 2 or 3 minutes to scan with real time ?.

Best regards,
Van Do.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: How reduce time of Scanning Frequency on Mactrack

Post by cigamit »

You can modify it yourself if you wish, but we will not change it in the code. Mactrack really isn't designed for real time checks. For your setup with a tiny amount of routers / switches 10 minutes may seem like a long time, but I have seen installs with 100s of switches and routers that takes an hour to scan them all. Its all about perspective.
nocandcan
Posts: 6
Joined: Mon May 12, 2014 1:21 am

Re: How reduce time of Scanning Frequency on Mactrack

Post by nocandcan »

cigamit wrote:You can modify it yourself if you wish, but we will not change it in the code. Mactrack really isn't designed for real time checks. For your setup with a tiny amount of routers / switches 10 minutes may seem like a long time, but I have seen installs with 100s of switches and routers that takes an hour to scan them all. Its all about perspective.
Thanks cigamit,

Because, in network system. A unauthorized device connected to network system in the short time after disconnect network
If Mactrack scan network 10 minutes per time, can not Mactrack be scanned this device ?.

Could we install more other plugin on Cacti to support for Mactrack to change this value ?.

Best regards,
Van Do
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: How reduce time of Scanning Frequency on Mactrack

Post by cigamit »

Just modify the source yourself, it most likely would only take a few minutes
nocandcan
Posts: 6
Joined: Mon May 12, 2014 1:21 am

Re: How reduce time of Scanning Frequency on Mactrack

Post by nocandcan »

cigamit wrote:Just modify the source yourself, it most likely would only take a few minutes
Could you guide me more clearly about modify the source?.

Best regards,
Van Do
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: How reduce time of Scanning Frequency on Mactrack

Post by cigamit »

open setup.php
file this array

Code: Select all

	$mactrack_poller_frequencies = array(
		"disabled" => "Disabled",
		"10" => "Every 10 Minutes",
		"15" => "Every 15 Minutes",
		"20" => "Every 20 Minutes",
		"30" => "Every 30 Minutes",
		"60" => "Every 1 Hour",
		"120" => "Every 2 Hours",
		"240" => "Every 4 Hours",
		"480" => "Every 8 Hours",
		"720" => "Every 12 Hours",
		"1440" => "Every Day");
Add the shorter intervals you want before the

Code: Select all

		"10" => "Every 10 Minutes",
Just an FYI, if you are running your Poller/Cron at 5 minute interval, the lowest you can go is 5 minutes.
nocandcan
Posts: 6
Joined: Mon May 12, 2014 1:21 am

Re: How reduce time of Scanning Frequency on Mactrack

Post by nocandcan »

cigamit wrote:open setup.php
file this array

Code: Select all

	$mactrack_poller_frequencies = array(
		"disabled" => "Disabled",
		"10" => "Every 10 Minutes",
		"15" => "Every 15 Minutes",
		"20" => "Every 20 Minutes",
		"30" => "Every 30 Minutes",
		"60" => "Every 1 Hour",
		"120" => "Every 2 Hours",
		"240" => "Every 4 Hours",
		"480" => "Every 8 Hours",
		"720" => "Every 12 Hours",
		"1440" => "Every Day");
Add the shorter intervals you want before the

Code: Select all

		"10" => "Every 10 Minutes",
Just an FYI, if you are running your Poller/Cron at 5 minute interval, the lowest you can go is 5 minutes.
Thanks cigamit,
I would like to ask you more problem.
I have installed one more Cacti Server.
After I configure device on Device Tracking completed, I run command "php mactrack_scanner.php -id=1 -d"
After this command run completed, it reported
DEBUG: MAC Address 'Mac address' on device 'Host' is NOT Authorized
DEBUG: MAC Address 'Mac address' on device 'Host' is NOT Authorized
and in log cacti report as follow:
CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_devices WHERE device_id ="
MACTRACK: Poller[0] ERROR: Device with Id of '' not found in database. Can not continue.

Could you guide me to solve this problem ?.

Best regards,
Van Do.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests