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

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
ayinger
Posts: 21
Joined: Tue Apr 13, 2010 9:04 am

Post by ayinger »

any update?
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

CaMM (Cacti Message Management) plugin v1.6.62 2010-07-02

Post by hammer733 »

Hey folks,
1st thing, I am a noob with Cacti and even Linux, so please be kind.
I installed CactiEZ (cacti v0.8.7c) running on CentOS. Things are working great as far as my normal syslogs that was pre-installed in the package. I would like to be able to also get traps though, so I am trying to get the Camm plugin up and running but keep getting the following when I install the latest version of Camm 1.6.62. I noticed a few others also had experienced this but I have tried the suggestions of forcing a new update, changing the syslo-ng.conf file etc, and so far nothing. Does anyone understand why this error is appearing. Any help is much appreciated. Thanks.
Attachments
2010-08-20_202634.jpg
2010-08-20_202634.jpg (84.82 KiB) Viewed 4108 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

ayinger wrote:Didn't work, I still have all devices listed under "not_defined" after hitting F5

Also, there were errors with the upgrade:

2. ERROR: Execute SQL, Add Column Table
plugin_camm_syslog_incoming

I use plugin_camm_syslog as the default incoming database under Settings:
hammer733 wrote:Hey folks,
1st thing, I am a noob with Cacti and even Linux, so please be kind.
I installed CactiEZ (cacti v0.8.7c) running on CentOS. Things are working great as far as my normal syslogs that was pre-installed in the package. I would like to be able to also get traps though, so I am trying to get the Camm plugin up and running but keep getting the following when I install the latest version of Camm 1.6.62. I noticed a few others also had experienced this but I have tried the suggestions of forcing a new update, changing the syslo-ng.conf file etc, and so far nothing. Does anyone understand why this error is appearing. Any help is much appreciated. Thanks.
This issue concerns the table plugin_camm_syslog_incoming - and not important if you not use it, but I will try to find the cause and correct

ayinger wrote:Sorry for all the posts, but I found out how to add the "device id" to the syslog. Every host within "not_defined" is set to 0. One example is I have a device ID of 143 within cacti, but within the camm syslog it is 0.
What value is set in Hostname field in cacti for this device ?
And what in host field of syslog messages from this host ?
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 wrote:
ayinger wrote:Didn't work, I still have all devices listed under "not_defined" after hitting F5

Also, there were errors with the upgrade:

2. ERROR: Execute SQL, Add Column Table
plugin_camm_syslog_incoming

I use plugin_camm_syslog as the default incoming database under Settings:
hammer733 wrote:Hey folks,
1st thing, I am a noob with Cacti and even Linux, so please be kind.
I installed CactiEZ (cacti v0.8.7c) running on CentOS. Things are working great as far as my normal syslogs that was pre-installed in the package. I would like to be able to also get traps though, so I am trying to get the Camm plugin up and running but keep getting the following when I install the latest version of Camm 1.6.62. I noticed a few others also had experienced this but I have tried the suggestions of forcing a new update, changing the syslo-ng.conf file etc, and so far nothing. Does anyone understand why this error is appearing. Any help is much appreciated. Thanks.
This issue concerns the table plugin_camm_syslog_incoming - and not important if you not use it, but I will try to find the cause and correct

ayinger wrote:Sorry for all the posts, but I found out how to add the "device id" to the syslog. Every host within "not_defined" is set to 0. One example is I have a device ID of 143 within cacti, but within the camm syslog it is 0.
What value is set in Hostname field in cacti for this device ?
And what in host field of syslog messages from this host ?


Must be missing something. To bypass the install problem I did the following, and am still getting errors in my Catai Log ( See attached )

In the Plugin Camm/Settings & Utils I simply changed the DB name to syslog and then changed the table name to syslog_incoming since data seems to be coming in there. There must be something else to edit though. Any help would be much appreciated.
Attachments
2010-08-23_102414.jpg
2010-08-23_102414.jpg (136.67 KiB) Viewed 4030 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

hammer733 wrote: Must be missing something. To bypass the install problem I did the following, and am still getting errors in my Catai Log ( See attached )

In the Plugin Camm/Settings & Utils I simply changed the DB name to syslog and then changed the table name to syslog_incoming since data seems to be coming in there. There must be something else to edit though. Any help would be much appreciated.
This is wrong.
Must be 2 tables:
plugin_camm_syslog and plugin_camm_syslog_incoming.
Data will be received at that table, which is set up in syslog-ng.conf
Usually this table is plugin_camm_syslog.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
ayinger
Posts: 21
Joined: Tue Apr 13, 2010 9:04 am

Post by ayinger »

hammer733 wrote:
gthe wrote:
ayinger wrote:Didn't work, I still have all devices listed under "not_defined" after hitting F5

Also, there were errors with the upgrade:

2. ERROR: Execute SQL, Add Column Table
plugin_camm_syslog_incoming

I use plugin_camm_syslog as the default incoming database under Settings:
hammer733 wrote:Hey folks,
1st thing, I am a noob with Cacti and even Linux, so please be kind.
I installed CactiEZ (cacti v0.8.7c) running on CentOS. Things are working great as far as my normal syslogs that was pre-installed in the package. I would like to be able to also get traps though, so I am trying to get the Camm plugin up and running but keep getting the following when I install the latest version of Camm 1.6.62. I noticed a few others also had experienced this but I have tried the suggestions of forcing a new update, changing the syslo-ng.conf file etc, and so far nothing. Does anyone understand why this error is appearing. Any help is much appreciated. Thanks.
This issue concerns the table plugin_camm_syslog_incoming - and not important if you not use it, but I will try to find the cause and correct

ayinger wrote:Sorry for all the posts, but I found out how to add the "device id" to the syslog. Every host within "not_defined" is set to 0. One example is I have a device ID of 143 within cacti, but within the camm syslog it is 0.
What value is set in Hostname field in cacti for this device ?
And what in host field of syslog messages from this host ?


Must be missing something. To bypass the install problem I did the following, and am still getting errors in my Catai Log ( See attached )

In the Plugin Camm/Settings & Utils I simply changed the DB name to syslog and then changed the table name to syslog_incoming since data seems to be coming in there. There must be something else to edit though. Any help would be much appreciated.
hostname is 192.168.93.2 in cacti, and host field in syslog is also 192.168.93.2.
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

ayinger wrote: hostname is 192.168.93.2 in cacti, and host field in syslog is also 192.168.93.2.
Which database you are use for syslog (cacti or syslog-ng) ?
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
ayinger
Posts: 21
Joined: Tue Apr 13, 2010 9:04 am

Post by ayinger »

gthe wrote:
ayinger wrote: hostname is 192.168.93.2 in cacti, and host field in syslog is also 192.168.93.2.
Which database you are use for syslog (cacti or syslog-ng) ?
Neither - rsyslog on Red Hat 5.3

/etc/rsyslog.conf
------------------------------------------

#CaMM Settings

#Use MySQL
$ModLoad ommysql.so
# Provides UDP syslog reception
$ModLoad imudp.so
$UDPServerRun 514

$template camm,"insert into plugin_camm_syslog(host, facility, priority, sys_date, message) values ('%hostname:::UPPERCASE%', '%syslogfacility-text%', '%syslogpriority-text%', '%timereported:::date-mysql%', '%msg%')", SQL

*.* :ommysql:127.0.0.1,cacti,mysql-user,mysql-pass;camm
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

ayinger wrote:
gthe wrote:
ayinger wrote: hostname is 192.168.93.2 in cacti, and host field in syslog is also 192.168.93.2.
Which database you are use for syslog (cacti or syslog-ng) ?
Neither - rsyslog on Red Hat 5.3

/etc/rsyslog.conf
------------------------------------------

#CaMM Settings

#Use MySQL
$ModLoad ommysql.so
# Provides UDP syslog reception
$ModLoad imudp.so
$UDPServerRun 514

$template camm,"insert into plugin_camm_syslog(host, facility, priority, sys_date, message) values ('%hostname:::UPPERCASE%', '%syslogfacility-text%', '%syslogpriority-text%', '%timereported:::date-mysql%', '%msg%')", SQL

*.* :ommysql:127.0.0.1,cacti,mysql-user,mysql-pass;camm
Well, that's the source of error.
You need insert IP from message to sourceip field (VARCHAR(45)) of plugin_camm_syslog
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
ayinger
Posts: 21
Joined: Tue Apr 13, 2010 9:04 am

Post by ayinger »

gthe wrote:
ayinger wrote:
gthe wrote: Which database you are use for syslog (cacti or syslog-ng) ?
Neither - rsyslog on Red Hat 5.3

/etc/rsyslog.conf
------------------------------------------

#CaMM Settings

#Use MySQL
$ModLoad ommysql.so
# Provides UDP syslog reception
$ModLoad imudp.so
$UDPServerRun 514

$template camm,"insert into plugin_camm_syslog(host, facility, priority, sys_date, message) values ('%hostname:::UPPERCASE%', '%syslogfacility-text%', '%syslogpriority-text%', '%timereported:::date-mysql%', '%msg%')", SQL

*.* :ommysql:127.0.0.1,cacti,mysql-user,mysql-pass;camm
Well, that's the source of error.
You need insert IP from message to sourceip field (VARCHAR(45)) of plugin_camm_syslog
Beautiful, I made the change, truncated the table, and now it looks good =)

Here's the correct syntax incase anyone else needs it.

sourceip = %fromhost-ip%

#CaMM Settings
$template camm,"insert into plugin_camm_syslog(host, sourceip, facility, priority, sys_date, message) values ('%hostname:::UPPERCASE%', '%fromhost-ip%', '%syslogfacility-text%', '%syslogpriority-text%', '%timereported:::date-mysql%', '%msg%')", SQL
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

New version in first post!
CAMM --- 1.6.7 ---2010-08-26
- Add Chart on stats tab. You can view the schedule of income during the selected messages from the selected interval and build the graph of the distribution of messages by hosts. Or you can go to view the specific messages.
- Change to use rule_id as marker_id and rule_name as marker_name. Will no longer be confusion with the marker_id anr rule_id;

- Fix old-time bug with autocreate of trees (thanks torstentfk);
- Fix many minor bugs;
Screens from chart:
Attachments
camm_chart_2.JPG
camm_chart_2.JPG (48.26 KiB) Viewed 3883 times
camm_chart_1.JPG
camm_chart_1.JPG (84.59 KiB) Viewed 3883 times
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
antw1
Posts: 3
Joined: Wed Mar 03, 2010 12:02 pm

Post by antw1 »

Where can we download it?
ayinger
Posts: 21
Joined: Tue Apr 13, 2010 9:04 am

Post by ayinger »

antw1 wrote:Where can we download it?
His first post on page 1.
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

This looks great. Fix of tree bug? Is this related to the issue I am having during install (noted in a few posts back)???
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

hammer733 wrote:This looks great. Fix of tree bug? Is this related to the issue I am having during install (noted in a few posts back)???
It's fixed for clean install.
Will be fixed for update soon.
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 5 guests