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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
cruxx
Posts: 16
Joined: Thu Sep 09, 2010 7:36 am
Location: Schwerin, Germany

Post by cruxx »

Dear gthe,

great job!

thanks a lot!
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

Color of Critical traps

Post by hahnn »

Hi there,

I've a cosmetic problem since ages with CAMM.

All snmp traps having severity to Critical are colored in white. Normal SNMP traps are in green, informational are in white, and warning are in orange, so no problem for them.

Critical ones should be in Red.

Any idea?

Thanks a lot for your help.

Regards.
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

Well after installing on a fresh Ubuntu machine all seems good except when Ubuntu boots I get this error:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I have found that if I delete /sbin/syslogtomysql file the error goes away. here is my scrip info. Did the chmod 755 and chown root:root on it but still not happy. Any thoughts?

Code:
#!/bin/bash
if [ ! -e /tmp/mysql.pipe ]; then
mkfifo /tmp/mysql.pipe
fi

while [ -e /tmp/mysql.pipe ]
do
mysql -u root --password=mypass cacti < /tmp/mysql.pipe
done
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

hammer733, check you process startup order. Mysql must be started before syslog/syslog-ng.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

gthe,
Thanks for the plugin and for all the help you give.
On the instruction page
http://forums.cacti.net/viewtopic.php?t=26040

Item # 7 says to

shell> chmod 755 /sbin/syslogtomysql
shell> chown root:root /sbin/syslogtomysql

I found that to be a problem with My Ubuntu install. Changed to chmod 777 and all is fine now.

Possibly I should have known that but I am still new at this. Thanks again.
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

no more emails?

Post by computer_guru »

I stopped receiving emails from CAMM for syslog or trap events. I have not changed anything. Emails stopped Wednesday night, now it is Friday morning. I just rebooted the whole server and still no emails from CAMM. Emails from cacti for host up and down still comes through fine, but no CAMM emails.

Any ideas how to fix? I am on version 1.6.6
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

hi,
while updating to v1.6.75, i get the following 2 error. the 2 parameter still exist, cause of line 1 & 2 (change parameter name). Everything is working fine.

thx for the new version
Attachments
error
error
bug1.jpg (71.81 KiB) Viewed 3339 times
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Re: no more emails?

Post by gthe »

computer_guru wrote:I stopped receiving emails from CAMM for syslog or trap events. I have not changed anything. Emails stopped Wednesday night, now it is Friday morning. I just rebooted the whole server and still no emails from CAMM. Emails from cacti for host up and down still comes through fine, but no CAMM emails.

Any ideas how to fix? I am on version 1.6.6
Sorry for the late reply/
Have you tried to "force run" of the rule?
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

hi there,
is camm1.6.75 save for cacti 0.8.7.g and PIA 2.8?
Its not on the requirements list on first page.

thx
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

uhtred wrote:hi there,
is camm1.6.75 save for cacti 0.8.7.g and PIA 2.8?
Its not on the requirements list on first page.

thx
Yes.
I develop and use it on
Cacti Version: 0.8.7g, Plugin Architecture Version: 2.8
p.s. I will update Requirements section.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

thx

please, (if u have some time) update http://docs.cacti.net/userplugin:camm too.
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

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

Post by hammer733 »

All logs now flowing in great. But this is confusing.
When on my Syslogs tab and in my tree on left, if I click on an IP, then the right hand pane will show only messages relative to the IP I clicked on. However, if I am on my SNMP Traps tab and in my tree on left, if I click on an IP, then the right hand pane will not change at all. Is there a way to fix this so it shows only messages relative to the IP??
User avatar
smlick
Cacti User
Posts: 267
Joined: Tue May 20, 2008 4:09 am
Location: Italy, Rome

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

Post by smlick »

hello gthe I would like to point camm on my test infrastructure to db in the production infrastructure so I can view on both syslog messages. is it possible?
In my test environment I have cacti db on localhost and in my production environment I have cacti and syslog-ng db on a separate machine.

Regards
Alessio
Cacti Version 0.8.8c production / 0.8.8c test W2008 -- Plugin:Weathermap - Monitor - CAMM 1.6.7 :) - Nectar - GPS Map
computer_guru
Cacti User
Posts: 141
Joined: Thu Apr 10, 2008 6:52 pm

Re: no more emails?

Post by computer_guru »

gthe wrote:
computer_guru wrote:I stopped receiving emails from CAMM for syslog or trap events. I have not changed anything. Emails stopped Wednesday night, now it is Friday morning. I just rebooted the whole server and still no emails from CAMM. Emails from cacti for host up and down still comes through fine, but no CAMM emails.

Any ideas how to fix? I am on version 1.6.6
Sorry for the late reply/
Have you tried to "force run" of the rule?
I found the solution my self. Apparently the PHP scripts to send the emails were timing out while compiling the email body. There were so many errors generated by a server crash that it broke the email functions of CAMM by causing the timeout. I updated the MySQL table to mark them as already processed, and now everything is fine again.
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

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

Post by gthe »

hammer733 wrote:All logs now flowing in great. But this is confusing.
When on my Syslogs tab and in my tree on left, if I click on an IP, then the right hand pane will show only messages relative to the IP I clicked on. However, if I am on my SNMP Traps tab and in my tree on left, if I click on an IP, then the right hand pane will not change at all. Is there a way to fix this so it shows only messages relative to the IP??
Which version of cacti you are use ?
This bag was fixed already.
smlick wrote:hello gthe I would like to point camm on my test infrastructure to db in the production infrastructure so I can view on both syslog messages. is it possible?
In my test environment I have cacti db on localhost and in my production environment I have cacti and syslog-ng db on a separate machine.

Regards
Alessio
Currently -no. Cacti and syslog db must be in one host.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests