Boost Plugin v1.6 Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
JakeE
Posts: 2
Joined: Wed Jun 20, 2007 7:59 pm

Post by JakeE »

I'm experiencing a problem when using the Boost plugin with Cacti (using Cactid) in that if I add a new graph, the associated rrd file is not created even after Boost has gone through it's rrd update cycle. Boost is otherwise updating pre-existing rrd's as it should. I can manually create the rrd file(s) but this is tedious particularly if I have a large number of devices/interfaces to add. If I disable Boost then any missing rrd files are generated as normal however my polling time shoots up to 15+ minutes.

Has anyone encountered this type of behavior that could possibly shed some light on the problem?
User avatar
gninja
Cacti User
Posts: 371
Joined: Tue Aug 24, 2004 5:02 pm
Location: San Francisco, CA
Contact:

Post by gninja »

TheWitness wrote:My guess is that #1, the `rcaston` temporary table is not being created as it must, or you have two boost processes running at the same time, causing the `rcaston` table not to be created for that reason. This does not make sense as it is supposed to be "HIDDEN" between sessions. Maybe it's a persistent connection issue.

I'll look at the code a little more. The changes were pretty esoteric.

Larry
Been letting this simmer, since it seemed best to just wait for 087, but I'm getting pressure to get this done now.

The statement for creating the rcaston table works fine. I'm seeing some data being submitted into the rrd files every few hours, but it's very spotty. What I'm seeing in the logs is a bit weird.
10/10/2007 02:10:01 PM - SYSTEM STATS: Time:1.1766 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:15:02 PM - SYSTEM STATS: Time:1.1695 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:20:01 PM - SYSTEM STATS: Time:1.1677 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:25:01 PM - SYSTEM STATS: Time:1.1718 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:30:01 PM - SYSTEM STATS: Time:1.1466 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:30:02 PM - CMDPHP: Poller[0] FATAL: RRD On Demand Updater Exceeded Runtime Limits!!!
10/10/2007 02:30:02 PM - SYSTEM BOOST STATS: Time:600.3926 RRDUpdates:4078560
10/10/2007 02:35:02 PM - SYSTEM STATS: Time:1.1753 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:40:01 PM - SYSTEM STATS: Time:1.1768 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:45:02 PM - SYSTEM STATS: Time:1.1714 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:50:01 PM - SYSTEM STATS: Time:1.1732 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 02:55:01 PM - SYSTEM STATS: Time:1.1874 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:00:02 PM - SYSTEM STATS: Time:1.1618 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:05:01 PM - SYSTEM STATS: Time:1.1736 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:10:01 PM - SYSTEM STATS: Time:1.1854 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:15:02 PM - SYSTEM STATS: Time:1.1758 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:20:01 PM - SYSTEM STATS: Time:1.1774 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:25:01 PM - SYSTEM STATS: Time:1.1665 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:30:02 PM - CMDPHP: Poller[0] FATAL: RRD On Demand Updater Exceeded Runtime Limits!!!
10/10/2007 03:30:02 PM - SYSTEM BOOST STATS: Time:600.4047 RRDUpdates:4120200
10/10/2007 03:30:02 PM - SYSTEM STATS: Time:1.1988 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:35:01 PM - SYSTEM STATS: Time:1.1788 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:40:01 PM - SYSTEM STATS: Time:1.1497 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
10/10/2007 03:45:02 PM - SYSTEM STATS: Time:1.1604 Method:cactid Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:19 RRDsProcessed:0
turning on debug and checking some more. Boost server is off, since this is a freebsd box and the boost server startup script doesn't seem to friendly to freebsd. Once I have this working I'll try making a new version.
FreeBSD/RHEL
cacti-0.8.7i, spine 0.8.7i, PIA 3.1+boost 5.1
MySQL 5.5/InnoDB
RRDtool 1.2.27, PHP 5.1.6
User avatar
gninja
Cacti User
Posts: 371
Joined: Tue Aug 24, 2004 5:02 pm
Location: San Francisco, CA
Contact:

Post by gninja »

Yea, 185 records in the boost table, and the on demand update's been running for 7 minutes now. Just churning over the same data, over and over again, from the looks of it.
FreeBSD/RHEL
cacti-0.8.7i, spine 0.8.7i, PIA 3.1+boost 5.1
MySQL 5.5/InnoDB
RRDtool 1.2.27, PHP 5.1.6
User avatar
gninja
Cacti User
Posts: 371
Joined: Tue Aug 24, 2004 5:02 pm
Location: San Francisco, CA
Contact:

Post by gninja »

Hrm. Looked at everything, noticed that the boost php files were in dos format. Removed the ^Ms, truncated the boost output table, reran a cactid poll cycle, then reran boost, and I'm getting the damn illegal update minimum 1 second step error.

I hate that error SO much. Thought that went away before 1.6
FreeBSD/RHEL
cacti-0.8.7i, spine 0.8.7i, PIA 3.1+boost 5.1
MySQL 5.5/InnoDB
RRDtool 1.2.27, PHP 5.1.6
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I can verify that the "illegal update" error is still happening for me also in 1.6. Seems to be an issue with the temp table, boost is constantly looping updating the rrds but not removing the entries from the table.

Reverting back to 1.5 fixes everything for me.
changsung
Posts: 17
Joined: Wed Feb 21, 2007 10:26 am
Contact:

Missing modified directory is missing on 1.7

Post by changsung »

From readme file

3) The files in the modified directory of this plugin must be moved to
Cacti's base directory. Please insure that you copy the files in
the lib directory as well.

But
I don't see that directory.
changsung
Posts: 17
Joined: Wed Feb 21, 2007 10:26 am
Contact:

Post by changsung »

That is for boost V1.7
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Ignore that part of the instructions, that is old and can be skipped.
Crescens
Posts: 29
Joined: Tue Jun 08, 2004 6:06 am
Location: Germany

Post by Crescens »

I'm not sure if anyone had this problem on the last 10 pages. I searched for it but didn't find anything.

I installed boost on a w2k3 box. It works very well except the boost status.
I click on the link View Boost Status (utilities.php?action=view_boost_status) but the page simply reloads and displays only the usual system utilities.

Is this already known?
Smux
Posts: 40
Joined: Mon Sep 10, 2007 2:47 pm

Post by Smux »

i have an problem with a new version:

Code: Select all

[root@svr02 boost]# chmod +x poller_boost.php
[root@svr02 boost]# php -q poller_boost.php

Fatal error: Call to undefined function  read_config_option() in /home/sigfbr/public_html/cacti/plugins/boost/poller_boost.php on line 153
how i do to solve this problem?
lostpckt
Posts: 14
Joined: Wed Sep 12, 2007 1:53 pm

Post by lostpckt »

Confused...

In the README, step 2 reads

" 2) Once you have the SQL in place, you must enable you plugin by adding
the boost plugin into cacti's <path_cacti>/include/config.php file not
unlike other plugins.
"

However, I have no idea how to do that and if it's in the past 10 pages of posts, I missed it. Attached is my current '<cacti_path>/include/config.php'

Code: Select all

<?php
/*
 +-------------------------------------------------------------------------+
 | Copyright (C) 2004-2007 The Cacti Group                                 |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | as published by the Free Software Foundation; either version 2          |
 | of the License, or (at your option) any later version.                  |
 |                                                                         |
 | This program is distributed in the hope that it will be useful,         |
 | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+
 | Cacti: The Complete RRDTool-based Graphing Solution                     |
 +-------------------------------------------------------------------------+
 | This code is designed, written, and maintained by the Cacti Group. See  |
 | about.php and/or the AUTHORS file for specific developer information.   |
 +-------------------------------------------------------------------------+
 | http://www.cacti.net/                                                   |
 +-------------------------------------------------------------------------+
*/

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactiuser";
$database_port = "3306";

/* Default session name - Session name must contain alpha characters */
#$cacti_session_name = "Cacti";

?>
This is (mostly) a brand new install. I am building up a new server to replace our old one so I installed 0.8.6j on the new box (matching the old box). mysqldump from the old box and pumped it into the new one. Then upgraded the new box to 0.8.7a.

I have PIA 1.4 installed as well as settings 0.3.

Code: Select all

Technical Support
General Information
Date 	Mon, 10 Dec 2007 14:34:32 -0800
Cacti Version 	0.8.7a
Cacti OS 	unix
SNMP Version 	net-snmp
RRDTool Version 	RRDTool 1.2.x
Hosts 	191
Graphs 	9942
Data Sources 	Script/Command: 5
SNMP: 181
SNMP Query: 18493
Script Query: 2
Script - Script Server (PHP): 14
Total: 18695
----------------------------------------------------
Poller Information
Interval 	300
Type 	spine
Items 	Action[0]: 24232
Action[1]: 9
Action[2]: 14
Total: 24255
Concurrent Processes 	4
Max Threads 	10
PHP Servers 	5
Script Timeout 	45
Max OID 	50
Last Run Statistics 	Time:14.5804 Method:spine Processes:4 Threads:10 Hosts:91 HostsPerProcess:23 DataSources:24255 RRDsProcessed:8528
-------------------------------------------------
PHP Information
PHP Version 	5.2.4
PHP OS 	Linux
PHP uname 	Linux syslog01b 2.6.23.1-21.fc7 #1 SMP Thu Nov 1 20:28:15 EDT 2007 x86_64
PHP SNMP 	Installed
max_execution_time 	30
memory_limit 	512M
This is probably a pretty n00b question, so I apologize for that, and hopefully I've included enough information.

Thanks in advance.
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Post by chrisgapske »

In version 0.8.7 and above they have mored the PIA where you would update the <path_cacti>/include/config.php but now you need to update the <path_cacti>/include/global.php.
lostpckt
Posts: 14
Joined: Wed Sep 12, 2007 1:53 pm

Post by lostpckt »

chrisgapske wrote:In version 0.8.7 and above they have mored the PIA where you would update the <path_cacti>/include/config.php but now you need to update the <path_cacti>/include/global.php.
That got it "installed", thanks. Now I see this in my log (nothing is turned on yet in the settings).

Code: Select all

12/11/2007 01:35:32 PM - BOOST SVR: Poller[0] ERROR: Detected Poller Boost Abend, Contact support
0.o
Posts: 9
Joined: Mon Nov 26, 2007 10:09 am

Post by 0.o »

----------EDIT -----------------
Found my own answer. Thanks!
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Post by timi »

I have an error

this is when i run poller.php: 01/14/2008 03:49:21 PM - POLLER: Poller[0] ERROR: The path: is invalid. Can not continue

I'm using cacti 0.8.7a pia 1.4, any ideea ?
Locked

Who is online

Users browsing this forum: No registered users and 0 guests