Plugin Architecture for Cacti and Monitoring Module
Moderators: Developers, Moderators
-
- Posts: 49
- Joined: Fri Mar 18, 2005 7:33 am
- Location: France
w2k compatible ?
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
------------------------------------------------------------------------------
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
Events addon
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
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
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.
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.
I hate Quicktime as much as cigamit. I use Quicktime Alternative instead and it plays the alert files just fine.I've got another question. To play the sound with Mozilla, which plugin i have to install ? Mozilla refused to found it online !
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.
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.
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.
Current software
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.
-
- Posts: 27
- Joined: Fri Jul 30, 2004 2:38 pm
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.imthemp3king wrote:Have there been any updates to this or has developement halted on it?
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.
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
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 (107.38 KiB) Viewed 7987 times
@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
to one line before
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
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();
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'] = '/';
hope this fix works for you,
best regards,
Schwan
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.
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.
@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
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
Who is online
Users browsing this forum: No registered users and 0 guests