Plugin Architecture for Cacti and Monitoring Module

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
aleto
Posts: 39
Joined: Wed May 25, 2005 3:57 am

Post by aleto »

Is there already patches for cacti 0.8.6.e???
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

aleto wrote:Is there already patches for cacti 0.8.6.e???
Not just yet, but give me a few minutes and I will create them.
scavenger67
Posts: 49
Joined: Fri Mar 18, 2005 7:33 am
Location: France

w2k compatible ?

Post by scavenger67 »

Is this new great addon compatible on windows ?

------------------------------------------------------------------------------
Apache 2.053 - Mysql 4.1.10a - rdtool 1.0.49 - Cacti 0.8.6.c - PHP 5.03 - netsnmp 5.2.1.1 - W2k-sp4
dinomir
Posts: 3
Joined: Wed Jun 08, 2005 11:02 am

Events addon

Post by dinomir »

Cigamit,

Your Events Addon sounds really really good! In fact , it is exacltly what I have been looking for!!

I dreamt it , Cigamit did it!

May you add it ( even if only the viewing version ) to the forum , please?

Thanks a lot!
dino
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

I will be releasing it fairly soon, its currently being revamped to include a few more things I wanted to add. It uses SNMPTT to do the translating, ect... which works on win32/unix so it should not be a problem as long as that part is setup correctly. My Event Viewer basically just reads the stuff out of the database, so its fairly simple.

The main thing I am doing at this point is writing the tutorials on how to get everything working together. I'm a little busy, but give me time and I will post it.
dinomir
Posts: 3
Joined: Wed Jun 08, 2005 11:02 am

thx

Post by dinomir »

Thanks!
trpascout
Posts: 1
Joined: Tue Jul 12, 2005 4:17 pm

Post by trpascout »

I've got another question. To play the sound with Mozilla, which plugin i have to install ? Mozilla refused to found it online !
I hate Quicktime as much as cigamit. I use Quicktime Alternative instead and it plays the alert files just fine.

Get it here: http://free-codecs.com

Or more specifically here: http://www.free-codecs.com/download/Qui ... native.htm
Hey, cigamit. Get back to work.
Acidfire
Posts: 4
Joined: Fri Jul 08, 2005 1:57 am

Post by Acidfire »

I've installed Cacti with Thold & Applied the Monitor Module with the Arch for Thold in the posts above..

Everything works well except the option to enable monitoring on the devices, i see view monitoring in user settings the monitor tab but no box to enable it.

the only devices that are monitored are ones that were set before i did thold and the monitor plugin together.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Current software

Post by chadd »

Can anyone tell me if there is a 'plugin-arch' and 'thold' for the current version 'latest version: 0.8.6f' of Cacti? If so what are they, and where can I get them. I just installed 'latest version: 0.8.6f' and it is working fine, but I wanted thresholds, and the ability to write 'plugins' of my own. If there is going to be a unified code base soon that incorporates all those things into cacti-current, then I can wait - still have lots of devices to discover in Cacti ;-). Thanks in advance.
imthemp3king
Posts: 27
Joined: Fri Jul 30, 2004 2:38 pm

Post by imthemp3king »

Have there been any updates to this or has developement halted on it?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

imthemp3king wrote:Have there been any updates to this or has developement halted on it?
Actually, I have just updated the Plugin Architecture to support a few more hooks, and fixed a few small bugs that cropped up. I have now converted the Threshold module to an actual plugin. You do not even need to setup a special Cron job for the plugin, as it uses the hook that I created to execute after the poller has ran. All that is required is for you to setup the table (I will have it auto-create later), drop the plugin in place, and then add it to the config file.

I will be updating the monitor plugin to take advantage of the new hook for refreshing the page, and I will package the "fast" poller with it. I will also be releasing the new plugin I have created. Its an Auto-Discovery plugin, that allows you to scan a subnet for hosts. It compares those hosts with what you have in Cacti, and displays a list of all the hosts that you are monitoring. It also checks these hosts for SNMP and will display information about these hosts that it finds. This makes it easy to find hosts that you haven't added to Cacti yet and to find rogue systems on your network.

I have created a site to hold my plugins to make them easy to find. The patch and the thold module are avaliable here.

I have throughly tested these new changes, but it would help to have others give it ago also.
qpduong
Posts: 11
Joined: Tue Jul 26, 2005 7:59 pm
Contact:

Post by qpduong »

I just installed ur plugin_arch and thold on my Win2K/0.8.6f:

C:\wamp\www\cacti>c:\cygwin\bin\patch -p1 -N < cacti-plugin-0.8.6f.diff
patching file data_sources.php
Hunk #1 FAILED at 1043.
1 out of 1 hunk FAILED -- saving rejects to file data_sources.php.rej
patching file graphs_new.php
patching file include/config_arrays.php
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
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file lib/api_device.php
Hunk #1 succeeded at 76 (offset 2 lines).
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file plugins/index.php
patching file poller.php

and change some params in include\config.php:

$plugins = array();
$plugins[] = 'thold';

/* This is full URL Path to the Cacti installation
For example, if your cacti was accessible by http://server/cacti/ you would user '/cacti/'
as the url path. For just http://server/ use '/'
*/

$config["url_path"] = '/cacti/';

after that I access into my cacti I receive cacti error page (pls check an attachment). Pls help me
Attachments
cacti_error.jpg
cacti_error.jpg (107.38 KiB) Viewed 7987 times
Schwan
Posts: 8
Joined: Sun Jul 31, 2005 11:10 am

Post by Schwan »

@qpduong

i got the same screen like you with 0.8.6f & official patches on suse pro 9.3.
(a few file i had to edit by hand to use the plugin patch togheter with the official
patches ;) )

fix:
edit the file config.php in the directory include. move the line

Code: Select all

$config = array();
to one line before

Code: Select all

$config['url_path'] = '/';

Code: Select all

/* This is full URL Path to the Cacti installation
   For example, if your cacti was accessible by http://server/cacti/ you would user '/cacti/'
   as the url path.  For just http://server/ use '/'
*/

$config = array();
$config['url_path'] = '/';
after this the start page is showing well, but i got now new errors for the graps/monitor tab windows wich i try to resolve.

hope this fix works for you,

best regards,
Schwan
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

The errors you are receiving appear to be with a bad patch on the config.php file. The patch was made to be used before you setup cacti or modify the config.php (if you use a RPM based solution, they may have already made modifications).

I have now added the actual patched files to the download, so you can redownload it and override your files with that version. Please test it that way, and see if it then works for you. I will see if I can add a little more fuzz to the patch to make it work in more situations.
qpduong
Posts: 11
Joined: Tue Jul 26, 2005 7:59 pm
Contact:

Post by qpduong »

@cigamit

it doesn't work for me, i used ur already patched files but the same errors .

@schwan

Yeah it works with the first page but with graphs/threshold tab I receive:
Parse error: syntax error, unexpected T_STRING in c:\wamp\www\cacti\include\top_graph_header.php on line 114

I am not php guy so i should stay still and wait good news from you
:D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests