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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

smlick wrote:
TheWitness wrote:Partitioning will fix this problem. Gthe just needs some help with the light bulb. It's still off.

TheWitness
Can you tell us some tips to succesfully partitioning the plugin_camm_syslog db?

Regards
Alessio
Gthe has to do it. I have provided direction. You should ask him. It's not too much work.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

just for info:
I have a partioned DB, but it does not speed up or work as wanted; profit is only for incremental backup (not backuping the whole db, only part of it on a daily mission).
speed : see image
Attachments
camm.gif
camm.gif (8.13 KiB) Viewed 2984 times
User avatar
TheWitness
Developer
Posts: 16997
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What does the query look like? If you are not "limiting" the number or rows searched by date, CAMM will never scale. As the date range increases, so will the query time. In this case, partitioning does not help.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

torstentfk wrote:just for info:
I have a partioned DB, but it does not speed up or work as wanted; profit is only for incremental backup (not backuping the whole db, only part of it on a daily mission).
speed : see image
smlick wrote:
TheWitness wrote:Partitioning will fix this problem. Gthe just needs some help with the light bulb. It's still off.

TheWitness
Can you tell us some tips to succesfully partitioning the plugin_camm_syslog db?

Regards
Alessio
That's the file that will create an additional (plugin_camm_syslog_parted) table in the default database. All data will be duplicated in this table. Then we can inspect the difference in the performance of queries.
Attachments
camm_upgrade.rar
run it from camm plugin folder
(1.94 KiB) Downloaded 92 times
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
Ever
Posts: 11
Joined: Sat Jun 12, 2010 9:38 pm

Post by Ever »

Hi gthe, I am trying to install CAMM plugin but i couldn't, can you help me. I have this message:

FATAL: Database or Table does not exist
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ever wrote:Hi gthe, I am trying to install CAMM plugin but i couldn't, can you help me. I have this message:

FATAL: Database or Table does not exist
Ever,

You really should search the forums before posting
http://forums.cacti.net/post-158796.htm ... ist#158796
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Ever
Posts: 11
Joined: Sat Jun 12, 2010 9:38 pm

Post by Ever »

I did, but I don't know what to do.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

The thread I included tells you how to get round this. Also, you need to ensure that you have the latest copy, as this was addressed a while back.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Ever
Posts: 11
Joined: Sat Jun 12, 2010 9:38 pm

Post by Ever »

Ok man thanks for the help I already read the other post, but I dont know how to import tables and how to create db in syslog, can you help me
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ok.

You'll need access to something like PHPMyAdmin, or a GUI for your MySQL installation - are you running Windows or Linux ?

I also recommend that you create a new database, and DON'T use your Cacti DB for this, as the syslog tables can get very large very quickly, dependant on what you are logging.

1. In the CAMM directory, locate the SQL subdirectory
2. In here, there are two files. Take the "plugin_camm_syslog_incoming_memory.sql" file, as this is more efficient
3. Login to your MySQL (this is a command line example)

Now enter

CREATE DATABASE syslog;

Now from a command line (from the mysql\bin directory)

mysql -u root -p <your password> < /path/to/camm/sql/plugin_camm_syslog_incoming_memory.sql

The database should get imported.

That should be it.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Ever
Posts: 11
Joined: Sat Jun 12, 2010 9:38 pm

Post by Ever »

Hi I already did that but nothing happened. Can you check it please.
Attachments
camm.JPG
camm.JPG (40.15 KiB) Viewed 2879 times
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ok. You didn't follow my instructions :(

As you appear to be using linux, install phpmyadmin, and use this to

1. Create the database "syslog"
2. Import the sql file
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Ever
Posts: 11
Joined: Sat Jun 12, 2010 9:38 pm

Post by Ever »

Sorry I am new using Cacti. I already installed phpmyadmin and now what should I do????
Attachments
phpmyadmin.JPG
phpmyadmin.JPG (86.9 KiB) Viewed 2864 times
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

If you've not already installed PhpMyAdmin, then choose all the defaults. I'm using a Blackberry at the moment, and can't easily tell if you've already got this installed and are just reconfiguring the package.
If it's installed already, just:

1. Go to http://localhost/phpmyadmin
2. Login using your mysql root user and password
3. Create a new database called syslog
4. Import the sql file I mentioned earlier

PhpMyAdmin is very intuitive, and is also self-explanatory.

Once you've done this, enable the CAMM plugin. If it complains "FATAL......":

Click the back button on your browser, go to Settings / Camm, and change the database name at the bottom of the screen to reflect yours, and then save

Make sure the plugin is enabled, and you've given yourself rights to use it. To do this

1. In Cacti, go to user management
2. Select your login
3. Place a tick in all Camm plugin related realms (there's two or three)
4. Click save

The Camm tab should appear


If this part works, then you now need to configure a mysql pipe to get syslog entries into your database. Search the forums for "syslog" - there is a raft or info in here on how to create this pipe.

The last thing to do is setup yóur devices to forward syslogs to your Cacti server. If the pipe is open, Camm will begin to accept logs.


Hope this helps.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Ever
Posts: 11
Joined: Sat Jun 12, 2010 9:38 pm

Post by Ever »

Hi I couldn't, I have Cacti in Ubuntu Server using an Ip address, if you have time Could you please give me some advice to finish to install the plugin. Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests