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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
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 »

lasylve wrote:Gthe, Are you dead ???

As I needed it, I brought some extra feature on this plugin to keep non-important traps in an history.

Gthe, if you see this post, can you contact me ????
Last time I had some problems, but now I'm ready to spend a few free time to further work on the plugin.

Iа I understand correct from your post it made by ​​the transfer of data to another table.
I do not like it because:
1. additional tables.
2. Additional tabs require additional memory for the plugin (and not so small).
3. The fact that all this should be replicated and to syslog.
But the idea I like - I suggest to make it due to the additional field in existing tables. And to show the existing tabs with the choice of display modes (all, ack, not ack).
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
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 »

lightenup wrote:Another suggestion I have is to let you modify the sql select statement directly. I think the editor is great to get folks started, however, I have a need for more complex rules that combine AND, OR and NOT statements.
The idea is good, but it is a direct path for sql injection.

But if the majority of users want this functionality - I'll add it.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
lasylve
Posts: 22
Joined: Fri Oct 02, 2009 1:34 am

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

Post by lasylve »

gthe wrote: Iа I understand correct from your post it made by ​​the transfer of data to another table.
I do not like it because:
1. additional tables.
2. Additional tabs require additional memory for the plugin (and not so small).
3. The fact that all this should be replicated and to syslog.
But the idea I like - I suggest to make it due to the additional field in existing tables. And to show the existing tabs with the choice of display modes (all, ack, not ack).
I agree with you, as I did not create any new table but just added a "ack" field in plugin_camm_snmptt table.
eqq
Posts: 26
Joined: Fri May 27, 2011 4:40 am
Location: HK

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

Post by eqq »

Anyone has this mib file for alcatel?

1. HPOV-NNM-MIB

Many thanks :oops:

Alex
phamtankiet
Posts: 3
Joined: Tue Apr 05, 2011 3:54 am

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

Post by phamtankiet »

ALL YOU CAN TELL ME INSTALL CAMM V1.6.75 STEP BY STEP NO PROBLEM!
I INSTALL CAMM IN CACTIEZ V6 0.8.7C PIA 2.2 STILL ERROR
CAN YOU HELP ME ABOUT THIS PROBLEM?
THKS SO MUCH :D
enz0
Posts: 1
Joined: Thu Oct 06, 2011 2:24 am

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

Post by enz0 »

Hi guys,

I'm relatively new to Cacti, Linux and MySQL but I managed to set up a Cacti-server on Ubuntu.
I 'm running ntop, smokeping and weathermaps just fine for a while, but now I want to use the CaMM plugin.

I installed the latest version (1.6.7) and the syslog-part is working fine, but I can't get the snmp-traps in the CaMM database.
I see that the traps arrive on my server using tcpdump with a filter on udp 162, but they never appear in the database.

When I look at the "Stats and Charts" page in the CaMM plugin I see that the tables that are related to snmptt are never updated...
I configured snmptt according to the manual at the first page of this topic.

Any ideas of what I'm missing or where to look?

Thanks in advance.
artiflo
Cacti User
Posts: 76
Joined: Wed Dec 19, 2007 2:00 pm

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

Post by artiflo »

I try to install camm 1.6.75 with cacti 0.8.7h / PIA 3.0 / settings 0.5.

In my database I found all camm table :
plugin_camm_keys
plugin_camm_rule
plugin_camm_snmptt
plugin_camm_snmptt_stat
plugin_camm_snmptt_unk
plugin_camm_syslog
plugin_camm_syslog_incoming
plugin_camm_temp
plugin_camm_tree2


But, when a try to click for the first time on camm tab I don't have auto-upgrade process, I have only "Loading Cacti camm plugin..." and lot of error on http log :

Code: Select all

[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/include, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/tab_console.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/tab_graphs.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/transparent_line.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/tab_console.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/tab_graphs.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/transparent_line.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/plugins, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/cacti_backdrop.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
[Tue Nov 22 15:30:42 2011] [error] [client 192.168.131.49] File does not exist: /var/www/cacti/plugins/camm/images/shadow.gif, referer: http://192.168.130.33/cacti/plugins/camm/camm_view.php
EDIT : SOLVED, that my fault I don't configure include/config.php properly with $url_path = "/cacti/"; instead of $config['url_path'] = '/cacti/';
ZerGa
Posts: 4
Joined: Fri Dec 03, 2010 6:06 am
Location: RU
Contact:

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

Post by ZerGa »

Hi. The sheaf snmptt + camm doesn't work. In log snmptt writes that trap accepts, but doesn't write in mysql. Prompt that else it is possible to look.
system: freebsd
Sorry for English, from Russia
mikecarel
Cacti User
Posts: 68
Joined: Thu Jun 03, 2010 10:00 pm

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

Post by mikecarel »

hi gthe,

Just a simple feature comments/request for this wonderful plugins:
1. Add snmptt-community search in Rules creation and search filters?
2. Color alerts for critical, minor alarms, current version(1.6.75) only support colors in Major and Warning.
3. for the edit filter rule, using "=" and "!=" only accepts values which already exist in the database, it doesn't allow entries not existing in the database, I suggest that it should accept values even it doesn't exist in the database yet.

Hope you can consider this request. tnx.

Mike
vkaroly
Posts: 2
Joined: Tue Jan 10, 2012 2:37 pm

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

Post by vkaroly »

Hi there,

Although CaMM is great, I have an issue with it when using CaMM v.1.6.7 with syslog and snmptt. My Cacti server is 0.8.7i running on CentOS6.2 x64.

Clicking on a tree item in the Syslog tab narrows the messages on the right to the selected field only, that's great. But it doesn't work for me in the SNMP Traps section. Practically, nothing happens when I click on any of the items on the SNMPTT tree. I don't think it is a normal behavior, but it can be the case that it doesn't work for me only. Therefore will you please (anyone) confirm that this is working for him/her?

The other issue I have is related to SNMPTT. I know that this forum is not supporting officially SNMPTT, but maybe some of you had this problem and found a solution for it. The problem comes from the EVENT line of snmptt.conf, especially the severity field at the end of the line. Some devices work in a way that they have one generic trap (therefore one OID) to send whenever it is needed and the nature of the trap and severity is defined in a varbind, which can be queried in the FORMAT string, but not in the EVENT string. As a result, "coloring" in the SNMP Trap list doesn't work. Does anyone have a solution or a fix in the perl script of SNMPTT or a workaround by any means?

Thanks.

Karoly
vkaroly
Posts: 2
Joined: Tue Jan 10, 2012 2:37 pm

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

Post by vkaroly »

vkaroly wrote:Practically, nothing happens when I click on any of the items on the SNMPTT tree. I don't think it is a normal behavior, but it can be the case that it doesn't work for me only. Therefore will you please (anyone) confirm that this is working for him/her?
Okay, after digging more on it, I found out that:
1) nothing happens when I click on a tree item in Safari 5.1.2 (on OSX Lion)
2) nothing happens when I click on a tree item in Firefox 10.0.2 (on OSX Lion)
3) the following error message appears when I click on a tree item in IE8 (on WinXP SP2):

Code: Select all

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Timestamp: Tue, 21 Feb 2012 21:59:26 UTC


Message: 'sys_grid' is undefined
Line: 1
Char: 346742
Code: 0
URI: http://10.91.5.120/cacti/plugins/camm/js/cacti.plugin.camm-min.js
What shall I do to make it work? Any suggestions are welcome.

Thanks,

Karoly

EDIT: SOLVED. I went through a bunch of posts and found this to be modified in the cacti.plugin.camm-min.js file:
cruxx wrote:found it :D

replace "sys_grid" with "d".

Code: Select all

var h=d.getStore()
Greetings :wink:
Tree is working just fine.

Karoly
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 »

Hi gthe,
do you plan a plugin update (extra feature, ecc.)?

Regards
Alessio
Cacti Version 0.8.8c production / 0.8.8c test W2008 -- Plugin:Weathermap - Monitor - CAMM 1.6.7 :) - Nectar - GPS Map
User avatar
classen
Cacti User
Posts: 116
Joined: Thu Nov 12, 2009 3:07 pm

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

Post by classen »

I use rsyslogd instead of syslog-ng so modified my /etc/rsyslogd.conf file thusly in order to insert syslog data into CAMM MySQL table.

Code: Select all

$ModLoad ommysql
$template cacti_camm_syslog,"INSERT INTO plugin_camm_syslog(host, sourceip, facility, priority, sys_date, message, status) values ('%HOSTNAME%', '%FROMHOST-IP%', '%SYSLOGFACILITY-TEXT%', '%SYSLOGPRIORITY-TEXT%', '%TIMEREPORTED:::date-mysql%', '%MSG%', '0')", SQL


*.*;user.warning					>localhost,cacti,cactiuser,cactiuser-password;cacti_camm_syslog
So far it looks OK. the table is filling up with syslog messages and I can begin to play around with CAMM.
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 »

Hi Gthe,
is possible to have in the next release a tab for 10 top reccurent syslog message for every device?
So is possible to find easily some device issue or some message that is possible to delete to free some wasted space in db.

Regards
Alessio
Cacti Version 0.8.8c production / 0.8.8c test W2008 -- Plugin:Weathermap - Monitor - CAMM 1.6.7 :) - Nectar - GPS Map
wavilen
Posts: 1
Joined: Fri May 04, 2012 12:38 am
Location: RU

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

Post by wavilen »

I have the following problem
after import cacti_graph_template_local_-_camm_poller_unk_snmptt_statistics.xml
return
CDEF
[success] Make Stack Negative [update]

GPRINT Preset
[success] Normal [update]
[success] Exact Numbers [update]

Data Input Method
[success] Local - CaMM Poller Unk. Snmptt Statistics [update]

Data Template
[success] Local - CaMM Poller Unk. Snmptt Statistics [update]
+ Found Dependency: (Data Input Method) Local - CaMM Poller Unk. Snmptt Statistics
+ Found Dependency: (Data Input Field) temp count for graph
+ Found Dependency: (Data Input Field) All count rows in unk snmptt table
+ Found Dependency: (Data Input Field) count_unksnmptt_old
+ Unmet Dependency: (Data Input Field) Count traps, deleted by autopurge
+ Found Dependency: (Data Input Field) All count unk snmptt rows

Graph Template
[success] Local - CaMM Poller Unk. Snmptt Statistics [update]
+ Found Dependency: (Data Template Item) count_unksnmptt
+ Found Dependency: (GPRINT Preset) Normal
+ Found Dependency: (Data Template Item) count_unksnmptt_old
+ Found Dependency: (Data Template Item) t1
+ Found Dependency: (Data Template Item) camm_unksnmptt_max_
+ Found Dependency: (GPRINT Preset) Exact Numbers
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Make Stack Negative
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest