Killspike integration in webinterface
Moderators: Developers, Moderators
- Instigater
- Cacti User
- Posts: 141
- Joined: Mon Dec 13, 2004 5:14 pm
- Location: Jurmala, Latvia
Killspike integration in webinterface
It would be nice to have killspike feature in web interface. It is quite hard to find the right filename for specific graph if they are thousands. Spikes in that amount of graphs show up quite frequenty.
- Attachments
-
- killspike_from_web.gif (5.82 KiB) Viewed 25855 times
Nice ideea
Done.
use killspike as any ordinary plugin (grant access to users first).
also, unpack removespikes.zip in <cacti_dir>/scripts (removespikes.pl)
WARNING: The user that runs the webserver MUST have r/w access to the rra files.
Done.
use killspike as any ordinary plugin (grant access to users first).
also, unpack removespikes.zip in <cacti_dir>/scripts (removespikes.pl)
WARNING: The user that runs the webserver MUST have r/w access to the rra files.
- Attachments
-
- killspike.zip
- Plugin
- (2.12 KiB) Downloaded 1505 times
-
- removespikes.zip
- perl script to remove spikes
- (1.83 KiB) Downloaded 1702 times
[url=http://www.x-graphs.com/]http://www.x-graphs.com[/url] [color=red]X[/color]-[color=blue]graphs[/color] :: All kind of graphs
- Instigater
- Cacti User
- Posts: 141
- Joined: Mon Dec 13, 2004 5:14 pm
- Location: Jurmala, Latvia
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I added this to the known list of Plugins.
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'm not sure why, but I am receiving the same error after installing this plugin that I did when installing the dataquery plugin (before pestilence fixed it). The error is "Notice: Undefined index: index.php: in /var/www/cacti/lib/functions.php on line 1420". This is on a fresh install of cacti-0.8.6i that I am putting up to test with. Any ideas on how I can fix this?
I have no ideea.
I get a lot of errors in the apache log too:
[Wed Nov 15 01:28:29 2006] [error] [client 192.168.200.21] PHP Notice: Undefined index: killspike.php:kill in /home/cacti/lib/functions.php on line 1421
[Wed Nov 15 01:29:04 2006] [error] [client 192.168.200.21] PHP Notice: Undefined index: graph_view.php:tree in /home/cacti/lib/functions.php on line 1421,
I get a lot of errors in the apache log too:
[Wed Nov 15 01:28:29 2006] [error] [client 192.168.200.21] PHP Notice: Undefined index: killspike.php:kill in /home/cacti/lib/functions.php on line 1421
[Wed Nov 15 01:29:04 2006] [error] [client 192.168.200.21] PHP Notice: Undefined index: graph_view.php:tree in /home/cacti/lib/functions.php on line 1421,
[url=http://www.x-graphs.com/]http://www.x-graphs.com[/url] [color=red]X[/color]-[color=blue]graphs[/color] :: All kind of graphs
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Alice,
The plugin is incomplete. Every command/subcommand must be registered. If you look at the MacTrack plugin, for example, there is a register function that makes sure that all the variables are set. This registration allows the navigation to work correctly. Look for the keyword "nav" in your search of the setup.php for that plugin.
TheWitness
The plugin is incomplete. Every command/subcommand must be registered. If you look at the MacTrack plugin, for example, there is a register function that makes sure that all the variables are set. This registration allows the navigation to work correctly. Look for the keyword "nav" in your search of the setup.php for that plugin.
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: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Alice,
Also, being that this is an operation that you actually have "Write" access to, it should have a security setting per user. So, make sure you setup a distinct security pick for this so that not all users have accesss.
TheWitness
Also, being that this is an operation that you actually have "Write" access to, it should have a security setting per user. So, make sure you setup a distinct security pick for this so that not all users have accesss.
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?
That was the answer, TheWitness. Thanks. If you place
after
but before the trailing
then the "Notice: Undefined index: index.php: in /var/www/cacti/lib/functions.php on line 1420" error is resolved.
Code: Select all
return $nav;
Code: Select all
function killspike_draw_navigation_text ($nav) {
$nav["killspike.php:"] = array("title" => "killspike", "mapping" => "graph_view.php:,?,graph.php:view", "level" => "3");
Code: Select all
}
Who is online
Users browsing this forum: No registered users and 1 guest