Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Feb 25, 2018 1:00 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 305 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21
Author Message
 Post subject: Re: Place Your Feature Requests & Bug Reports Here
PostPosted: Mon Mar 20, 2017 10:50 am 
Offline

Joined: Mon Mar 20, 2017 10:27 am
Posts: 1
Code:
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 )


Top
 Profile  
 
 Post subject: Re: Place Your Feature Requests & Bug Reports Here
PostPosted: Tue Apr 04, 2017 2:49 pm 
Offline
User avatar

Joined: Mon Mar 06, 2017 4:06 pm
Posts: 21
Code:
PHP Notice:  Undefined variable: sql_limmit in /var/www/html/plugins/mactrack/mactrack_snmp.php on line 506

Last changes:
Quote:
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;

_________________
http://morawiec.info


Top
 Profile  
 
 Post subject: Re: Place Your Feature Requests & Bug Reports Here
PostPosted: Wed May 10, 2017 4:19 am 
Offline
Cacti Pro User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 565
Those things should be logged in github.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: Place Your Feature Requests & Bug Reports Here
PostPosted: Fri Dec 22, 2017 5:02 am 
Offline

Joined: Mon Jun 15, 2009 1:09 am
Posts: 23
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:
Attachment:
get_cisco_dot1x_table.png
get_cisco_dot1x_table.png [ 86.4 KiB | Viewed 143 times ]


At each cycle mactrack in the cacti log there is an error for each device:
Code:
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:
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?


Top
 Profile  
 
 Post subject: Re: Place Your Feature Requests & Bug Reports Here
PostPosted: Fri Dec 22, 2017 6:06 am 
Offline
Cacti User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 471
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:
Attachment:
get_cisco_dot1x_table.png


At each cycle mactrack in the cacti log there is an error for each device:
Code:
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:
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 Resources:
Cacti Website
Cacti Issues
Cacti Releases

My resources:
How to submit Pull Requests
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 305 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group