Plugin Architecture for Cacti and Monitoring Module

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

oh crap. i installed this on saturday. been busy and just now realized that my poller is running, my rrds are updating (date/time) but i have no more graphs in cacti!?!?!

help!!!!

can i back this patch out?
mlist
Cacti User
Posts: 50
Joined: Thu May 26, 2005 3:12 pm

Post by mlist »

Sorry....I did a bit of confusion using this post, please read next
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

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 ?
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

disregard my last post - i screwed up my crontab.

anyways, it would be great if this monitor map could link to the device page to drill into graphs or even using somekind of mouse over like weathermap does. just a thought to enhance it
tubbie
Posts: 5
Joined: Sat Feb 26, 2005 6:48 am

Post by tubbie »

cigamit wrote:
mgb 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
I was going off what you said.. you said that you did
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)
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:
Attachments
error.jpg
error.jpg (33.34 KiB) Viewed 12555 times
User avatar
mpdsville1
Cacti User
Posts: 71
Joined: Wed Mar 16, 2005 12:11 pm
Location: Albany , NY , USA

Monitor layout

Post by mpdsville1 »

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.
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
tubbie
Posts: 5
Joined: Sat Feb 26, 2005 6:48 am

Post by tubbie »

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 :-? :lol:.
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
chicago
Posts: 19
Joined: Fri Jul 09, 2004 9:52 am
Contact:

Post by chicago »

will this work on a windows system ?

how do I patch a windows CACTI system ?
d0n7p4n1c
Posts: 5
Joined: Wed Jun 15, 2005 12:15 pm
Location: Tampa, FL

Post by d0n7p4n1c »

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
User avatar
NHDave
Cacti User
Posts: 61
Joined: Sun Mar 20, 2005 9:14 am
Contact:

Post by NHDave »

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.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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.
Actually thats not the case, in the patch command you will see this "-p1"

From "patch --help"

Code: Select all

 -p NUM  --strip=NUM  Strip NUM leading components from file names.
This means when patching it will strip the "cacti-0.8.6d" off of the directory name.

-----

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!!
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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.
Attachments
View of SNMP Traps received
View of SNMP Traps received
events.jpg (147.35 KiB) Viewed 12342 times
ssams
Cacti User
Posts: 65
Joined: Tue Feb 01, 2005 5:54 pm
Location: Texas
Contact:

Post by ssams »

sounds good
d0n7p4n1c
Posts: 5
Joined: Wed Jun 15, 2005 12:15 pm
Location: Tampa, FL

Post by d0n7p4n1c »

cigamit,

The drop in files worked great!

Thanks
imthemp3king
Posts: 27
Joined: Fri Jul 30, 2004 2:38 pm

Post by imthemp3king »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests