Place Your Feature Requests & Bug Reports Here

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
coozoo
Posts: 1
Joined: Mon Mar 20, 2017 10:27 am

Re: Place Your Feature Requests & Bug Reports Here

Post by coozoo »

Code: Select all

Hi,

I've experienced problem that some output fields  "Data Input Methods"  of my custom script are stopped to work after upgrade.

Upgrade from some 0.8.8 (don't remember which letter at the end but I don't think that it's relevant) to cacti-1.0.4-1.el6.noarch (It is Cent OS 6.8 MySQL 5.6.35).

Can't find where it's in current sources. So posting here maybe someone will be able to check.

They're stopped to work because of this:
Table: poller_data_template_field_mappings
Column: data_name
Type: Varchar(25)

Yes I have some fields longer than 25 symbols, as result after upgrading all of them stopped to work.

For example:
processWorkingSetInMegabytes has been shorted to processWorkingSetInMegaby ... and wasn't parsed at all..

After enlarging to Varchar(255) and fixing names, everything started to work fine.

thanks
Sorry I see that it's wrong branch of forum and looks like I've found this on github loks like this fixed in 1.0.5 :)
db_install_execute('ALTER TABLE poller_data_template_field_mappings MODIFY COLUMN data_source_names varchar(191) NOT NULL default ""'

So if some moderator will see that he can delete this post )
User avatar
Cramin
Posts: 23
Joined: Mon Mar 06, 2017 4:06 pm
Contact:

Re: Place Your Feature Requests & Bug Reports Here

Post by Cramin »

Code: Select all

PHP Notice:  Undefined variable: sql_limmit in /var/www/html/plugins/mactrack/mactrack_snmp.php on line 506
Last changes:
FROM mac_track_snmp
$sql_where");

+ $sql_order = get_order_string();
+ $sql_limit = ' LIMIT ' . ($rows*(get_request_var('page')-1)) . ', ' . $rows;
+
$snmp_groups = db_fetch_assoc("SELECT *
FROM mac_track_snmp
$sql_where
- ORDER BY " . get_request_var('sort_column') . ' ' . get_request_var('sort_direction') . '
- LIMIT ' . ($rows*(get_request_var('page')-1)) . ',' . $rows);
+ $sql_order
+ $sql_limmit");

- $nav = html_nav_bar('mactrack_snmp.php?filter=' . get_request_var('filter'), MAX_DISPLAY_PAGES, get_request_var('page'), $rows, $total_rows, 12, __('SNMP Settings'));
+ $nav = html_nav_bar('mactrack_snmp.php?filter=' . get_request_var('filter'), MAX_DISPLAY_PAGES, get_request_var('page'), $rows, $total_rows, 12, __('SNMP Settings'), 'page', 'main');

print $nav;
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Place Your Feature Requests & Bug Reports Here

Post by Osiris »

Those things should be logged in github.
Before history, there was a paradise, now dust.
ivan-impuls
Posts: 23
Joined: Mon Jun 15, 2009 1:09 am

Re: Place Your Feature Requests & Bug Reports Here

Post by ivan-impuls »

Hello, all
My system:
Linux 4.13.0-1-686-pae #1 SMP Debian 4.13.13-1 (2017-11-16) i686 GNU/Linux
Debian GNU/Linux 9.2 (stretch)
cacti 1.1.28+ds1-2
cacti-spine 1.1.21-1
PHP 7.0.26-1
Apache/2.4.25 (Debian)
mariadb Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (i686) using readline 5.2

I have installed plugin mactrack - ver.4.2. I have added the devices.
In settings of each device there is a scanning function – get_cisco_dot1x_table:
get_cisco_dot1x_table.png
get_cisco_dot1x_table.png (86.4 KiB) Viewed 11738 times
At each cycle mactrack in the cacti log there is an error for each device:

Code: Select all

2017/12/11 17:31:23 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/mactrack/mactrack_scanner.php: 218 get_cisco_dot1x_table)(/plugins/mactrack/lib/mactrack_cisco.php: 694 CactiErrorHandler)(/lib/functions.php: 4408 cacti_debug_backtrace) 
2017/12/11 17:31:23 - ERROR PHP NOTICE in Plugin 'mactrack': Undefined variable: Dot1xEntries in file: /usr/share/cacti/site/plugins/mactrack/lib/mactrack_cisco.php on line: 694 
Perhaps, this function isn't necessary at all. In other version (2.9) this function wasn't.
But, when I remove this function (Not applicable), I receive an error in cacti log:

Code: Select all

2017/12/11 17:52:10 - MACTRACK WARNING:_______________________________________________ERROR: 802.1x Address Scanning Function Does Not Exist.
And the status of the device becomes "Error".
How to correct this?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Place Your Feature Requests & Bug Reports Here

Post by netniV »

ivan-impuls wrote:Hello, all
My system:
Linux 4.13.0-1-686-pae #1 SMP Debian 4.13.13-1 (2017-11-16) i686 GNU/Linux
Debian GNU/Linux 9.2 (stretch)
cacti 1.1.28+ds1-2
cacti-spine 1.1.21-1
PHP 7.0.26-1
Apache/2.4.25 (Debian)
mariadb Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (i686) using readline 5.2

I have installed plugin mactrack - ver.4.2. I have added the devices.
In settings of each device there is a scanning function – get_cisco_dot1x_table:
get_cisco_dot1x_table.png
At each cycle mactrack in the cacti log there is an error for each device:

Code: Select all

2017/12/11 17:31:23 - CMDPHP PHP ERROR NOTICE Backtrace: (/plugins/mactrack/mactrack_scanner.php: 218 get_cisco_dot1x_table)(/plugins/mactrack/lib/mactrack_cisco.php: 694 CactiErrorHandler)(/lib/functions.php: 4408 cacti_debug_backtrace) 
2017/12/11 17:31:23 - ERROR PHP NOTICE in Plugin 'mactrack': Undefined variable: Dot1xEntries in file: /usr/share/cacti/site/plugins/mactrack/lib/mactrack_cisco.php on line: 694 
Perhaps, this function isn't necessary at all. In other version (2.9) this function wasn't.
But, when I remove this function (Not applicable), I receive an error in cacti log:

Code: Select all

2017/12/11 17:52:10 - MACTRACK WARNING:_______________________________________________ERROR: 802.1x Address Scanning Function Does Not Exist.
And the status of the device becomes "Error".
How to correct this?
I have created a fix for this, if you apply the same to your local version it should correct the error.
https://github.com/Cacti/plugin_mactrack/pull/47
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
0815
Posts: 19
Joined: Sun Jun 07, 2020 2:47 pm

Re: Place Your Feature Requests & Bug Reports Here

Post by 0815 »

Adding a device to mactrack needs to add all parameters which are 90% alredy defined in the normal cacti device list/configuration.
Would it be possible to integrate mactrack directly to the existing cacti devicelist?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Place Your Feature Requests & Bug Reports Here

Post by TheWitness »

TBH, I thought it was already there. But it's been a while since I worked on it.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest