Plugin Architecture for Cacti and Monitoring Module
Moderators: Developers, Moderators
Hi cigamit,
the plugin is running now on my cacti 0.8.6d with thold 2.1a (FC3) and I have a problem that other users then admin have no access to the monitor tab.
I have changed the user permission to allow access to the monitor plugin but they get only the login mask.
I can remember a solution from you for thold to send the threshold image as embedded gif into a html mail messeage instead pointing only to a link or ?
Is this working with my mix ?
the plugin is running now on my cacti 0.8.6d with thold 2.1a (FC3) and I have a problem that other users then admin have no access to the monitor tab.
I have changed the user permission to allow access to the monitor plugin but they get only the login mask.
I can remember a solution from you for thold to send the threshold image as embedded gif into a html mail messeage instead pointing only to a link or ?
Is this working with my mix ?
Could it be i'm experiencing the same error as MGB?cigamit wrote:I was going off what you said.. you said that you didmgb wrote:@cigamit
I'm pretty sure I used your Thold patch. Don't know what went wrong. Is it possible to post all the patched files complete? Cacti 0.8.6d + Thold 2.1a
That would be great.
Michael
patch -p1 -N < cacti-plugin-arch.diff
and cacti-plugin-arch.diff is the non-thold version
cacti-plugin-arch-thold.diff is the one you needed.
I will post a complete set of files tomorrow sometime (not all of cacti, just the changed files, so you just have to override them)
Guess the patching didn't go 100% correct. I used the cacti-plugin-arch-thold.diff one because i already got thold 2.1a installed.
Cacti seems to work fine accept for the following error i get at every page:
- Attachments
-
- error.jpg (33.34 KiB) Viewed 12560 times
- mpdsville1
- Cacti User
- Posts: 71
- Joined: Wed Mar 16, 2005 12:11 pm
- Location: Albany , NY , USA
Monitor layout
What file determines 10 icons across on the monitor "view" ?
.....edited next day...
Oops ..Stupid question.... the <cactiroot>/plugins/monitor/monitor.php
is the answer.
.....edited next day...
Oops ..Stupid question.... the <cactiroot>/plugins/monitor/monitor.php
is the answer.
Last edited by mpdsville1 on Fri Jun 10, 2005 1:39 pm, edited 2 times in total.
Mike Donnelly , Albany , NY
| Cacti 0.8.7g | Spine 0.8.7g | MySQL 5.0.77 | Net-SNMP 5.3.2.2 | Apache 2.2.3 | PHP 5.3.3 | RRDtool 1.2.27 | Rhel6 | Dual Xeon E5410@2.33ghz | Sunfire x4150
| Cacti 0.8.7g | Spine 0.8.7g | MySQL 5.0.77 | Net-SNMP 5.3.2.2 | Apache 2.2.3 | PHP 5.3.3 | RRDtool 1.2.27 | Rhel6 | Dual Xeon E5410@2.33ghz | Sunfire x4150
tubbie wrote: Could it be i'm experiencing the same error as MGB?
Guess the patching didn't go 100% correct. I used the cacti-plugin-arch-thold.diff one because i already got thold 2.1a installed.
Cacti seems to work fine accept for the following error i get at every page:
none of my graph's are showing correctly after applying the patch and monitor plugin, just a red X. Is it possible i'm missing some other required patch? Guess this means throwing in the backup .
I can't find the complete set of changed files mentioned by Cigamit earlier so i can't compare them with the patched ones.
Is there anyone who uses the thold 2.1a with cacti 0.8.6d and this monitor plugin succesfully and willing to share a working install / patch (complete file sets) order? That would be great.
Thnx
Dennis
I’m running cacti-0.8.6d with thold2.1a for cacti-0.8.6d install on CentOS 4.0. When I try to install plugin architecture patch I get the following output below. Any ideas as to what the problem is?
# patch -p1 -N < cacti-plugin-arch-thold.diff
patching file include/config_arrays.php
Hunk #1 FAILED at 433.
1 out of 1 hunk FAILED -- saving rejects to file include/config_arrays.php.rej
patching file include/config_form.php
patching file include/config.php
Hunk #1 succeeded at 31 with fuzz 2.
patching file include/config_settings.php
Hunk #1 FAILED at 784.
1 out of 1 hunk FAILED -- saving rejects to file include/config_settings.php.rej
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #1 FAILED at 90.
Hunk #2 FAILED at 107.
Hunk #3 FAILED at 123.
Hunk #4 FAILED at 135.
Hunk #5 FAILED at 143.
5 out of 5 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 45.
Hunk #2 FAILED at 58.
Hunk #3 FAILED at 70.
Hunk #4 FAILED at 79.
Hunk #5 FAILED at 91.
5 out of 5 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file lib/api_device.php
patching file lib/functions.php
Hunk #1 FAILED at 1365.
1 out of 1 hunk FAILED -- saving rejects to file lib/functions.php.rej
patching file plugins/index.php
# patch -p1 -N < cacti-plugin-arch-thold.diff
patching file include/config_arrays.php
Hunk #1 FAILED at 433.
1 out of 1 hunk FAILED -- saving rejects to file include/config_arrays.php.rej
patching file include/config_form.php
patching file include/config.php
Hunk #1 succeeded at 31 with fuzz 2.
patching file include/config_settings.php
Hunk #1 FAILED at 784.
1 out of 1 hunk FAILED -- saving rejects to file include/config_settings.php.rej
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #1 FAILED at 90.
Hunk #2 FAILED at 107.
Hunk #3 FAILED at 123.
Hunk #4 FAILED at 135.
Hunk #5 FAILED at 143.
5 out of 5 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 45.
Hunk #2 FAILED at 58.
Hunk #3 FAILED at 70.
Hunk #4 FAILED at 79.
Hunk #5 FAILED at 91.
5 out of 5 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file lib/api_device.php
patching file lib/functions.php
Hunk #1 FAILED at 1365.
1 out of 1 hunk FAILED -- saving rejects to file lib/functions.php.rej
patching file plugins/index.php
Actually thats not the case, in the patch command you will see this "-p1"NHDave wrote:Got the same thing myself. From the looks of it, the patch file has the directory listed as cacti-0.8.6d so you have to edit the diff file to reflect what you cacti folder name is.
From "patch --help"
Code: Select all
-p NUM --strip=NUM Strip NUM leading components from file names.
-----
I have now released the already patched version of the files at the beginning of this thread
http://forums.cacti.net/viewtopic.php?p=32790#32790
Look at the second post for a file entitled "plugins-arch-cacti-0.8.6d.zip". It contains the already patched files for both normal cacti-0.8.6d and for when you have thold installed. Be sure you use the correct version for your setup!!
Also, I am working on another module that may or may not be of interest to some users. It basically is an integrated SNMP Trap viewer (For my purposes, we call then events).
You would have to install net-snmp's trap deamon, and snmptt. The events are all logged to a table (newly created in your cacti database). After that, you just add users access to view it. I am currently working on the administrative part of it (removing, ect...) but we are already using the viewing portion in our production systems.
You would have to install net-snmp's trap deamon, and snmptt. The events are all logged to a table (newly created in your cacti database). After that, you just add users access to view it. I am currently working on the administrative part of it (removing, ect...) but we are already using the viewing portion in our production systems.
- Attachments
-
- View of SNMP Traps received
- events.jpg (147.35 KiB) Viewed 12347 times
-
- Posts: 27
- Joined: Fri Jul 30, 2004 2:38 pm
cigamit,
I have a suggestion/request. Everything you have done so far to greatly expand the functionality of cacti has been just awesome. How hard would it be to go one step further with this and add some form of syslog management to cacti? I currently centralize the logging of about 30 servers but it is extremely tedious looking through all those text files on a daily basis. I think it would be very useful if cacti had this type of functionality built in, or at least an add-on module like the ones you have been able to create. Thanks again on making this already great product so much more.
Mike
I have a suggestion/request. Everything you have done so far to greatly expand the functionality of cacti has been just awesome. How hard would it be to go one step further with this and add some form of syslog management to cacti? I currently centralize the logging of about 30 servers but it is extremely tedious looking through all those text files on a daily basis. I think it would be very useful if cacti had this type of functionality built in, or at least an add-on module like the ones you have been able to create. Thanks again on making this already great product so much more.
Mike
Who is online
Users browsing this forum: No registered users and 0 guests