[SOLVED] Spikekill 1.0 Not Working on Linux
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
The httpd user must have rw to the RRDfiles. Without it, this plugin will not work. However, I could setup a command like RRDClean, but you would likely not see the results of your spike kill action immediately.
There are other options as well, but then I would have to spend more time on this, which right now, would be difficult.
I would like you all to conduct some "Analyze" run's and tweak your settings before you go hog wild using the plugin anyway.
Regards,
TheWitness
There are other options as well, but then I would have to spend more time on this, which right now, would be difficult.
I would like you all to conduct some "Analyze" run's and tweak your settings before you go hog wild using the plugin anyway.
Regards,
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?
In my case my entire rra directory is chmod'd 0777. So completely world readable and world writable. The error I received was above.
TheWitness wrote:The httpd user must have rw to the RRDfiles. Without it, this plugin will not work. However, I could setup a command like RRDClean, but you would likely not see the results of your spike kill action immediately.
There are other options as well, but then I would have to spend more time on this, which right now, would be difficult.
I would like you all to conduct some "Analyze" run's and tweak your settings before you go hog wild using the plugin anyway.
Regards,
TheWitness
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I think this is specific to Linux/UNIX. I tested on Windows only. If you search for "/tmp" in the removespike.php file and remove the trailing "/" from the path, see if that fixes it.
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 made the changes above and I still get the same error. You are correct however I am on a linux system.TheWitness wrote:I think this is specific to Linux/UNIX. I tested on Windows only. If you search for "/tmp" in the removespike.php file and remove the trailing "/" from the path, see if that fixes it.
TheWitness
I changed-
Code: Select all
}else{
$tempdir = "/tmp/";
$xmlfile = "/tmp/" . str_replace(".rrd", "", $rrdfile) . ".dump." . $seed;
Code: Select all
}else{
$tempdir = "/tmp";
$xmlfile = "/tmp" . str_replace(".rrd", "", $rrdfile) . ".dump." . $seed;
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
All,
I will be posting 1.0-2 momentarily. It is now tested on Linux/UNIX.
TheWitness
I will be posting 1.0-2 momentarily. It is now tested on Linux/UNIX.
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?
Who is online
Users browsing this forum: No registered users and 0 guests