Spikekill 1.0 - Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Post your analysis with both STD Dev and Variance. Oh, yes, your PHP Needs more memory. Please set to 256MB and restart Apache.

TheWitness
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?
mattl
Posts: 6
Joined: Mon Feb 11, 2008 11:44 am

Post by mattl »

PHP Needs more memory. Please set to 256MB and restart Apache.
I've tried to increase the memory value in php.ini and restart apache, it didn't work. Seems to work fine with the ini_set though. Not sure if this is ideal.

Here are my settings for spikekill.
Removal Method: Variance Based w/Outliers Removed
Replacement Method: Average
Number of Standard Deviations: 5
Variance Percentage: 300
Variance Number of Outliers: 5
Max Kills Per RRA: 5

stddev analysis
http://216.10.32.22/stddev_graph.php.html

variation analysis
http://216.10.32.22/variance_graph.php.html

Thanks!
SteveA
Posts: 13
Joined: Fri Nov 20, 2009 3:28 pm

Post by SteveA »

I've installed the plugin, given myself permission to use it, and can see the icon to run spikekill against a graph. When I select a menu option to remove or analyze I get a results popup that says "This script is only meant to run at command line".

Any clue what I've mis-configured somewhere?

thanks

Steve
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What is your web server?
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?
SteveA
Posts: 13
Joined: Fri Nov 20, 2009 3:28 pm

Post by SteveA »

Apache version 1.3.41_1

Cacti Version 0.8.7e

spikekill Version: 1.0 8 Mar 2009

FreeBSD 8.0
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This might have something to do with the Apache PHP interaction.
Since spikekill is exec'd from the PHP shell it should not have any of the variables that cause this type of message. So, the solution is to look at those few lines of code, and then when it's exec'd, dump it's information to a text file to find out "how" the request variables are being set.

It might just be that you have too old of a PHP, or that you don't have a CLI mode. In other words:

Code: Select all

php -q <script>
is CGI only and assumes everything is a web site. So, in that case, upgrade PHP to something more modern. Take your time though, I don't want to get one of those rant and rave posts where you did an upgrade, messed things up and could not get back in operation for days as a result.

TheWitness
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?
SteveA
Posts: 13
Joined: Fri Nov 20, 2009 3:28 pm

Post by SteveA »

php5-5.2.11

How new must the PHP be?

The system was built from a new BSD ISO with a ports update. Runs nothing significant except cacti + weathermap and supporting programs.
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's new enough. Look in the database for the php_bin_path, it'll be in the settings table in MySQL. Capture that path and then run the following. Post the results:

Code: Select all

/path/to/php -v
TheWitness
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?
SteveA
Posts: 13
Joined: Fri Nov 20, 2009 3:28 pm

Post by SteveA »

There was no php_bin_path but there was a path_php_binary. The results of running the -v are:

Code: Select all

# /usr/local/bin/php -v
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Mar  9 2010 12:25:10)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Steve
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You have the gd module loaded twice for some reason. You need to fix that...

TheWitness
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?
SteveA
Posts: 13
Joined: Fri Nov 20, 2009 3:28 pm

Post by SteveA »

I'll track down the unknown, but it is only a warning. A module already loaded should not be a fatal error, as evidenced by the command line version of spikekiller running just fine with the same error:

Code: Select all

# php removespikes.php --rrdfile=/usr/local/share/cacti/rra/ln204_traffic_in_1079.rrd --stddev=1 --number=2
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
NOTE: Creating XML file '/tmp/ln204_traffic_in_1079.dump.132779741' from '/usr/local/share/cacti/rra/ln204_traffic_in_1079.rrd'
NOTE: Searching for Spikes in XML file '/tmp/ln204_traffic_in_1079.dump.132779741'
NOTE: Backing Up '/usr/local/share/cacti/rra/ln204_traffic_in_1079.rrd' to '/tmp/ln204_traffic_in_1079.rrd.132779741'
NOTE: Re-Importing '/tmp/ln204_traffic_in_1079.dump.132779741' to '/usr/local/share/cacti/rra/ln204_traffic_in_1079.rrd'
SteveA
Posts: 13
Joined: Fri Nov 20, 2009 3:28 pm

Post by SteveA »

I did have to change into the spikekiller folder to run the command line version. It did not like running from the rra folder in the format "php /usr/local/share/cacti/spikekiller/removespikes.php...." .

Once I executed from the spikekiller folder instead and used the full path for the rrd file, the command line worked fine.

Since this server is FreeBSD, could there be an file path hardcoded into the web version that does not like the freebsd includes paths?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Understood, if you want to submit a patch, you may do it here: http://bugs.cacti.net

TheWitness
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?
derklugewolf
Posts: 7
Joined: Mon Jan 14, 2008 1:58 pm

errormessage when running spikekiller

Post by derklugewolf »

Hi, I do not get this tool running. I can't find a solution for the error below.

Any idea how to fix?

Thanks in advance

@lex
Attachments
spike1.jpg
spike1.jpg (25.67 KiB) Viewed 9098 times
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like your PHP version is too old.
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 2 guests