Plugin Architecture for Cacti and Monitoring Module

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
nahun
Cacti User
Posts: 92
Joined: Wed Feb 15, 2006 11:27 pm
Location: Idaho
Contact:

Post by nahun »

ksoliz wrote: At first glance it appears everything would work with the exception of the stuff for config.php which I assume I could fix manually. I was just wondering if the custom way apt-get installs cacti would cause issues.
If you did a "apt-get install cacti" it will cause problems. I did this too and it took me a while before I found this: https://wiki.ubuntu.com/CactiHowTo

The order Ubuntu installs the packages messes up when you just apt-get cacti.

And I've always had that one patch fail like that on config.php, but it doesn't cause any problems
[size=75]Solaris 10 x86 [color=red][b]||[/b][/color] Cacti - 0.8.7 [color=red][b]||[/b][/color] MySQL - 5.0.45 [color=red][b]||[/b][/color] PHP - 5.2.6 [color=red][b]||[/b][/color] RRDTool - 1.2.23 [color=red][b]||[/b][/color] NET-SNMP - 5.4.1 [color=red][b]||[/b][/color] Syslog-ng 2.0.5
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Feature Request

Post by streaker69 »

Any chance you could add a setting for what the monitor actuall says in alarm mode?

If not, could you spell out "knock" to the speech processor instead of NOC since it wants to say 'Attention N O C'.

thanks
ksoliz
Posts: 14
Joined: Wed Mar 01, 2006 6:34 pm

Post by ksoliz »

nahun wrote: If you did a "apt-get install cacti" it will cause problems. I did this too and it took me a while before I found this: https://wiki.ubuntu.com/CactiHowTo

The order Ubuntu installs the packages messes up when you just apt-get cacti.

And I've always had that one patch fail like that on config.php, but it doesn't cause any problems
That is the exact same guide I used... Im not sure what you mean "If you did a "apt-get install cacti" it will cause problems". If Im understanding you correctly that isnt the command I started with... I followed the wiki cacti on ubuntu guide.
User avatar
nahun
Cacti User
Posts: 92
Joined: Wed Feb 15, 2006 11:27 pm
Location: Idaho
Contact:

Post by nahun »

ksoliz wrote: That is the exact same guide I used... Im not sure what you mean "If you did a "apt-get install cacti" it will cause problems". If Im understanding you correctly that isnt the command I started with... I followed the wiki cacti on ubuntu guide.
sorry about that. But you're right, that was what I was saying. You should be fine then.
[size=75]Solaris 10 x86 [color=red][b]||[/b][/color] Cacti - 0.8.7 [color=red][b]||[/b][/color] MySQL - 5.0.45 [color=red][b]||[/b][/color] PHP - 5.2.6 [color=red][b]||[/b][/color] RRDTool - 1.2.23 [color=red][b]||[/b][/color] NET-SNMP - 5.4.1 [color=red][b]||[/b][/color] Syslog-ng 2.0.5
[url=http://www.indigo-networks.com]indigo-networks.com[/url][/size]
ksoliz
Posts: 14
Joined: Wed Mar 01, 2006 6:34 pm

Post by ksoliz »

nahun wrote: sorry about that. But you're right, that was what I was saying. You should be fine then.
No problem :) I figured thats what you meant but just wanted to be sure
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Post by JJX »

Is any to check which version i am running? (of plugin architecture and not cacti's version)
cacti rulez!
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

JJX wrote:Is any to check which version i am running? (of plugin architecture and not cacti's version)
Currently no, but my testing version has the ability to reports its version to the "Update" Plugin which then displays it for you. I will probably be pushing that version of the Plugin Architecture out as stable in the next week.
Mikkel
Posts: 32
Joined: Thu May 12, 2005 12:41 am

Post by Mikkel »

I'm running Cacti 0.8.6h with Cactid 0.8.6g with Plugin Architecture and Monitor plugin. I'm also running the fast poller for host up/down status every minute. However, I get the feeling that the host up/down status is still based on the regular poller instead of the fast poller. When a host goes down, it takes about 5 minutes until the status is actually "down". It should take 2 minutes at most, because the fast poller runs every minute and the host up/down failure count is set to 1.

Any ideas?
Mikkel
Posts: 32
Joined: Thu May 12, 2005 12:41 am

Post by Mikkel »

Kick!
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Mikkel wrote:I'm running Cacti 0.8.6h with Cactid 0.8.6g with Plugin Architecture and Monitor plugin. I'm also running the fast poller for host up/down status every minute. However, I get the feeling that the host up/down status is still based on the regular poller instead of the fast poller. When a host goes down, it takes about 5 minutes until the status is actually "down". It should take 2 minutes at most, because the fast poller runs every minute and the host up/down failure count is set to 1.

Any ideas?
Please submit a bug report over at http://cactiusers.org/bugs/ and I will look at it asap.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Hi,
I upgrade my cacti from 0.8.6g to 0.8.6h.
Then I wanna install plugin architecture.
I downloaded Plugin V.0.9
Then I extract and run this command:

Code: Select all

patch -p1 -N --dry-run < cacti-plugin-arch/cacti-plugin-0.8.6h.diff 
Aftrer that I get an output includes some errors:
(Stripping trailing CRs from patch.)
patching file data_sources.php
(Stripping trailing CRs from patch.)
patching file graphs_new.php
(Stripping trailing CRs from patch.)
patching file include/config_arrays.php
(Stripping trailing CRs from patch.)
patching file include/config_form.php
(Stripping trailing CRs from patch.)
patching file include/config.php
Hunk #1 FAILED at 27.
1 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
(Stripping trailing CRs from patch.)
patching file include/config_settings.php
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/plugins.php.rej
(Stripping trailing CRs from patch.)
patching file include/top_graph_header.php
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file include/top_graph_header.php.rej
(Stripping trailing CRs from patch.)
patching file include/top_header.php
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file include/top_header.php.rej
(Stripping trailing CRs from patch.)
patching file lib/api_device.php
(Stripping trailing CRs from patch.)
patching file lib/functions.php
(Stripping trailing CRs from patch.)
patching file lib/html_form.php
(Stripping trailing CRs from patch.)
patching file lib/html.php
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/index.php.rej
(Stripping trailing CRs from patch.)
patching file poller.php
(Stripping trailing CRs from patch.)
patching file utilities.php
Then I backup original files and try to patch usingthis command:

Code: Select all

patch -p1 -N  < cacti-plugin-arch/cacti-plugin-0.8.6h.diff 
After that I still get some errors
I check the cacti from browser. Somethibg weird. For example images are not shown, fonts are wrong, graph page not loaded. etc.
Then I turn tı original files.

What is the problem?
[/quote]
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

TFC wrote: patching file include/config.php
Hunk #1 FAILED at 27.
1 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/top_graph_header.php
Hunk #1 FAILED at 76.
1 out of 1 hunk FAILED -- saving rejects to file
patching file include/top_header.php
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file include/top_header.php.rej
There is your issue, use the prepatched files on these 3 files, and then re-edit your config.php file to include the proper database info. config.php will not patch correctly if you have already filled in the database info, as the patch doesn't have a proper reference point since the code comes directly after it. The others should have patched fine, but may have been modified at some time which causes them to fail.
chadd
Cacti User
Posts: 382
Joined: Thu Mar 24, 2005 3:53 pm
Location: Ocoee, Florida

Post by chadd »

I would like to know if there are any future plans to do any type of notification (particularly paging) when I device is down in the Monitor plugin? I know there is currently an alarm sound that can be played, but I am looking for alerting an on-call person via pager.
Jent
Posts: 4
Joined: Thu Dec 14, 2006 4:37 am

Thold and DHCPD statistics

Post by Jent »

I just installed thold plugin for cacti, and it is working great for traffic monitoring. But what I would especially like to use is for, is monitoring available addresses in DHCP pools.

We are using dhcpd-snmp.zip from http://forums.cacti.net/download.php?id=7162

DHCPD stats are being graphed nicely, but when I try to set some thold values for available leases (data sources->dhcpd statistics(snmp)) it can not locate the graph and due this can not get the current values which leads to fact that I can not use thold for monitoring available leases.

Has anyone come up with this problem and/or is there any solution. Thold seems to be very useful tool, and I can't come up with better use for it than monitoring DHCP pools.
liimuu
Posts: 12
Joined: Tue Jan 16, 2007 3:49 am

who can help me ?

Post by liimuu »

when i added "monitor" ,i meet this problem

Forbidden
You don't have permission to access /cacti/ on this server.
--------------------------------------------------------------------------------

Apache/2.2.0 (Fedora) Server at 10.4.1.148 Port 80

before ,my cacti works no problem

patch -p1 -N < cacti-plugin-0.8.6i.diff
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file include/auth.php
patching file include/config_arrays.php
patching file include/config_form.php
patching file include/config.php
Hunk #1 succeeded at 32 with fuzz 1.
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 index.php
patching file lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file lib/poller.php
patching file lib/variables.php
patching file plugins/index.php
patching file poller.php
patching file utilities.php
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest