Spikekill 1.0 - Released
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Post your analysis with both STD Dev and Variance. Oh, yes, your PHP Needs more memory. Please set to 256MB and restart Apache.
TheWitness
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?
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?
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.PHP Needs more memory. Please set to 256MB and restart Apache.
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!
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
Any clue what I've mis-configured somewhere?
thanks
Steve
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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:
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
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>
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?
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?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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:
TheWitness
Code: Select all
/path/to/php -v
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?
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?
There was no php_bin_path but there was a path_php_binary. The results of running the -v are:
Steve
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
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You have the gd module loaded twice for some reason. You need to fix that...
TheWitness
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?
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?
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'
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?
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?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
-
- Posts: 7
- Joined: Mon Jan 14, 2008 1:58 pm
errormessage when running spikekiller
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
Any idea how to fix?
Thanks in advance
@lex
- Attachments
-
- spike1.jpg (25.67 KiB) Viewed 9098 times
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
Who is online
Users browsing this forum: No registered users and 2 guests