Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Apr 24, 2017 2:09 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 302 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: 15
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 302 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