CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

:( Since upgrading to version 1.6.3, AUTOPURGE seems to be broken. I have mine set at 30,000 records, but now have 70,000+ ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
erickbe
Cacti User
Posts: 52
Joined: Sat Jan 17, 2009 1:01 am

Post by erickbe »

I was on version 1.5.4 previously and been awhile since I did updates, and tried to use the 1.6.3 update and I uninstalled the 1.5.4 one and moved the camm folder to a temp location and unarchived the 1.6.3 camm plugin into the plugins folder and installed it, enabled it and set it up.

Now the tree doesn't show any items and the syslogs show up. If I double click on a syslog message it saids loading for a minute or so and displays a blank window. The recreate tree item just sits there and the tree doesn't seem to get populated with 1.6.3.

I also see windows pop up sometimes about transaction aborted.

If I uninstall camm 1.6.3 plugin and put the 1.5.4 version back, everything is fine.

I am using this with version 0.8.7d of cacti and PA 2.4.

Any ideas on what I need to do to get 1.6.3 working right?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

mcutting wrote::( Since upgrading to version 1.6.3, AUTOPURGE seems to be broken. I have mine set at 30,000 records, but now have 70,000+ ?
If I remember correctly - this is repeated the third camm update. Perhaps an error somewhere in the process of updating. And every time all the restored after some time alone.

Try to go to the Settings page to change any setting, and click Save. Then change the setting back and save again.
erickbe wrote: Any ideas on what I need to do to get 1.6.3 working right?
1. Have you cleared your browser cache? (CTRL+F5)
2. The update does not require removal of the plugin. You can make a copy of the old and then just overwrite the files with new version

--------------------------------------------------------

One more fix (create sql for rule not work)
Attachments
cacti.plugin.camm-min.rar
(53.11 KiB) Downloaded 152 times
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Try to go to the Settings page to change any setting, and click Save. Then change the setting back and save again.
Done - let's see what happens
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

:) Seems to work now after changing settings back and forth ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

mcutting wrote::) Seems to work now after changing settings back and forth ?
This is a good thing.
But that would define the problem the next time you need to do dump the table [settings] before updating and after. Аnd then compare them.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
erickbe
Cacti User
Posts: 52
Joined: Sat Jan 17, 2009 1:01 am

Post by erickbe »

Ok,

I copied the 1.6.3 over my 1.5.4 and had same sort of issues until I deleted the entries from the syslog db and then stuff started working fine. My syslog was like 2 gig in size so probably just to much data to go through. My Camm settings were at 50,000 though so wonder why the autopurge wasn't working. Is there a way to manually run the purge from the web page? I went in through PhpMyAdmin and just deleted all the records in the syslog table.
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

erickbe wrote:Ok,

I copied the 1.6.3 over my 1.5.4 and had same sort of issues until I deleted the entries from the syslog db and then stuff started working fine. My syslog was like 2 gig in size so probably just to much data to go through. My Camm settings were at 50,000 though so wonder why the autopurge wasn't working.
Also take into account the parameter - [Data purge delay]. Ie poller will delete only those records that are older than this period.
erickbe wrote:Is there a way to manually run the purge from the web page? I went in through PhpMyAdmin and just deleted all the records in the syslog table.
At the moment - no, but I will try to do it in the next version
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
pthaynes
Cacti User
Posts: 56
Joined: Mon Apr 20, 2009 1:29 am
Location: Australia

Rule creation under 1.6.3

Post by pthaynes »

gthe wrote:One more fix (create sql for rule not work)
I just had a need to create a new rule from scratch (first time I have needed to change the "filtering" in one of my camm rules since I upgraded from 1.6.2). I have updated the cacti.plugin.camm-min.js file on my cacti server with the one contained in the rar file above. I have also cleared my browser cache. When I click on the "Done" button on the "Edit filter for rule" I get the little exclaimation mark on the bottom left of my internet explorer window. The cancel button works, it is just the done button that doesn't.

I am using IE7 (in case that makes a difference).

I also noticed a slight cosmetic error - the "Rule order" on the initial rule creation screen is spelled wrongly.

Lastly but not least - it would be nice to be able to copy a rule from within the web interface. Some of my rules have quite complex filtering, and I can see that in the future I will want to copy one of those rules and change just one thing in the filter. I imagine I should be able to do that with an sql statement, it would be nice to be able to do it in the web interface though.

Thanks again for all the work on this plugin.

Regards,

Peter
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Re: Rule creation under 1.6.3

Post by gthe »

pthaynes wrote:
gthe wrote:One more fix (create sql for rule not work)
I just had a need to create a new rule from scratch (first time I have needed to change the "filtering" in one of my camm rules since I upgraded from 1.6.2). I have updated the cacti.plugin.camm-min.js file on my cacti server with the one contained in the rar file above. I have also cleared my browser cache. When I click on the "Done" button on the "Edit filter for rule" I get the little exclaimation mark on the bottom left of my internet explorer window. The cancel button works, it is just the done button that doesn't.

I am using IE7 (in case that makes a difference).
you need to select the type of rule (snmptt or syslog) before creating sql
pthaynes wrote:
I also noticed a slight cosmetic error - the "Rule order" on the initial rule creation screen is spelled wrongly.
Thanks.
pthaynes wrote: Lastly but not least - it would be nice to be able to copy a rule from within the web interface. Some of my rules have quite complex filtering, and I can see that in the future I will want to copy one of those rules and change just one thing in the filter. I imagine I should be able to do that with an sql statement, it would be nice to be able to do it in the web interface though.

Thanks again for all the work on this plugin.

Regards,

Peter
ok.
Added to the feature list
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
pthaynes
Cacti User
Posts: 56
Joined: Mon Apr 20, 2009 1:29 am
Location: Australia

Re: Rule creation under 1.6.3

Post by pthaynes »

gthe wrote:you need to select the type of rule (snmptt or syslog) before creating sql
Yes I tried that - also tried changing the rule to "enabled" before doing the sql.

I also selected an existing rule and attempted to modify it. When I did that I got the same result - an exclaimation mark in the bottom left in Internet Explorer. I'll click on the exclamation mark tomorrow when I am next in front of the machine and see what the error actually says. (I should have done that in the first place).

Thanks for your help.

Regards,

Peter
erickbe
Cacti User
Posts: 52
Joined: Sat Jan 17, 2009 1:01 am

Post by erickbe »

I have my syslog set to autopurge after 25000 entries older then 3 days and I have almost 350k rows.

Running 1.6.3 CAMM. Any ideas on why the purge isn't happening?

Erick
Attachments
stats.jpg
stats.jpg (29.84 KiB) Viewed 3822 times
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Same issue for me - works for a couple of days (after changing settings to something else, then back to what they were), then stops working again.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
pthaynes
Cacti User
Posts: 56
Joined: Mon Apr 20, 2009 1:29 am
Location: Australia

Re: Rule creation under 1.6.3

Post by pthaynes »

gthe,

I have confirmed that the problem definitely happens when I fill in each of the items in order on the rule creation screen. I did find that if I locate a syslog item in the syslog tab and click the "cog" icon the rule creation works fine. I have attached the error message (and screenshots of how I tried to create the rule when it failed) below.

Hope this helps.

Regards,

Peter
Attachments
The error message
The error message
error.JPG (26.23 KiB) Viewed 3805 times
Editing the filter
Editing the filter
editfilter.JPG (19.47 KiB) Viewed 3805 times
Adding the rule
Adding the rule
addrule.JPG (28.02 KiB) Viewed 3805 times
pthaynes
Cacti User
Posts: 56
Joined: Mon Apr 20, 2009 1:29 am
Location: Australia

Syslog and SNMP Purge

Post by pthaynes »

mcutting wrote:Same issue for me - works for a couple of days (after changing settings to something else, then back to what they were), then stops working again.
I don't seem to have a problem, my syslog entries and SNMP traps are purging fine.
Cacti Version - 0.8.7c
Plugin Architecture - 2.2
Poller Type - Cactid v
Server Info - Linux 2.6.9-78.0.13.ELvm-smp
I am using CAMM plugin version 1.6.3 with the fix from the rar file above.

Regards,

Peter
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests