Place Your Feature Requests & Bug Reports Here

Support questions about the MAC Track plugin

Moderators: Moderators, Developers

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

Re: Place Your Feature Requests & Bug Reports Here

#301 Post by coozoo » Mon Mar 20, 2017 10:50 am

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: 22
Joined: Mon Mar 06, 2017 4:06 pm
Contact:

Re: Place Your Feature Requests & Bug Reports Here

#302 Post by Cramin » Tue Apr 04, 2017 2:49 pm

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 Pro User
Posts: 835
Joined: Mon Jan 05, 2015 10:10 am

Re: Place Your Feature Requests & Bug Reports Here

#303 Post by Osiris » Wed May 10, 2017 4:19 am

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

#304 Post by ivan-impuls » Fri Dec 22, 2017 5:02 am

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 865 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: 2682
Joined: Sun Aug 27, 2017 12:05 am

Re: Place Your Feature Requests & Bug Reports Here

#305 Post by netniV » Fri Dec 22, 2017 6:06 am

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

Post Reply