CaMM (Cacti Message Management) plugin v1.6.7 2010-08-26
Moderators: Developers, Moderators
Can you run sql:
and show me the error from mysql
Code: Select all
INSERT INTO `syslog`.`plugin_camm_syslog` SELECT * FROM `syslog`.`plugin_camm_syslog_incoming` WHERE status=2
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
[size=75]Sorry for my English. [/size]
I think this is the fix in poller_camm.php:420
before
change to
before
Code: Select all
db_execute("INSERT INTO `" . read_config_option("camm_syslog_db_name") . "`.`plugin_camm_syslog` " . "SELECT * FROM " . $syslog_table . " WHERE status=2");
Code: Select all
db_execute("INSERT INTO `" . read_config_option("camm_syslog_db_name") . "`.`plugin_camm_syslog` (`host`, `sourceip`, `facility`, `priority`, `sys_date`, `message`, `status`, `alert`) " . " SELECT `host`, `sourceip`, `facility`, `priority`, `sys_date`, `message`, `status`, `alert` FROM " . $syslog_table . " WHERE status=2");
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
[size=75]Sorry for my English. [/size]
-
- Posts: 10
- Joined: Wed Feb 14, 2007 10:39 am
Hi gthe,
We have a few problems I am hoping you can help with.
1) Email address validation on the add rule window doesn't appear to allow a "-" before the @ in the email address. So first-last@domain.com doesn't work but first@last-domain.com does? Any ideas?
2) We have a test rule we cannot delete. When we attempt to delete it it ask if we are sure and after clicking yes I get an error window saying "no ID."
3) Final one is more of a feature request rather than a bug. Is it possible to have an option to send one mail per trap rather than grouping traps together and sending one mail with all traps?
Thanks
iain
We have a few problems I am hoping you can help with.
1) Email address validation on the add rule window doesn't appear to allow a "-" before the @ in the email address. So first-last@domain.com doesn't work but first@last-domain.com does? Any ideas?
2) We have a test rule we cannot delete. When we attempt to delete it it ask if we are sure and after clicking yes I get an error window saying "no ID."
3) Final one is more of a feature request rather than a bug. Is it possible to have an option to send one mail per trap rather than grouping traps together and sending one mail with all traps?
Thanks
iain
will try fix it in next versionsavagemindz wrote:Hi gthe,
We have a few problems I am hoping you can help with.
1) Email address validation on the add rule window doesn't appear to allow a "-" before the @ in the email address. So first-last@domain.com doesn't work but first@last-domain.com does? Any ideas?
use last version - 1.5.2savagemindz wrote: 2) We have a test rule we cannot delete. When we attempt to delete it it ask if we are sure and after clicking yes I get an error window saying "no ID."
need time to implement thissavagemindz wrote: 3) Final one is more of a feature request rather than a bug. Is it possible to have an option to send one mail per trap rather than grouping traps together and sending one mail with all traps?
Thanks
iain
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
[size=75]Sorry for my English. [/size]
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Gthe - have the colours (and all other issues you've ironed out) be in the next release ?
Also, I have a syslog which contains priority "ermerg", which I am sure was on my syslog config.php (see a couple of posts ago). However, when this alert arrives, it is with a white background, and not red (should be the same as crit)
Thanks
Also, I have a syslog which contains priority "ermerg", which I am sure was on my syslog config.php (see a couple of posts ago). However, when this alert arrives, it is with a white background, and not red (should be the same as crit)
Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
I think yesmcutting wrote:Gthe - have the colours (and all other issues you've ironed out) be in the next release ?
ermerg != emerg.mcutting wrote: Also, I have a syslog which contains priority "ermerg", which I am sure was on my syslog config.php (see a couple of posts ago). However, when this alert arrives, it is with a white background, and not red (should be the same as crit)
Thanks
But a found mistake (Emerg but not emerg) and fix it. will be in next release.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
[size=75]Sorry for my English. [/size]
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Gthe,
One thing I have noticed is that collected data is not in any order - can it be in alphabetical ? I expect that this has to do with the field joins ? Example is below
EDIT - looking at the code, this is an easy fix:
Locate line 845
Replace with
This works for me, as I am using the "IP only" join, and using the description field in CACTI to identify my devices.
One thing I have noticed is that collected data is not in any order - can it be in alphabetical ? I expect that this has to do with the field joins ? Example is below
EDIT - looking at the code, this is an easy fix:
Locate line 845
Code: Select all
$tree_lists = db_fetch_assoc("SELECT * FROM plugin_camm_tree WHERE `type`='" . $type_tree . "' order by device_type_name, agentip, eventname ");
Code: Select all
$tree_lists = db_fetch_assoc("SELECT * FROM plugin_camm_tree WHERE `type`='" . $type_tree . "' order by device_type_name asc, description, eventname ");
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Posts: 10
- Joined: Wed Feb 14, 2007 10:39 am
Hi gthe
Also thanks for taking a look at the other two things too. This is plugin is absolutely fantastic.
Thanks
iain
We are using 1.5.2?use last version - 1.5.2
2) We have a test rule we cannot delete. When we attempt to delete it it ask if we are sure and after clicking yes I get an error window saying "no ID."
Also thanks for taking a look at the other two things too. This is plugin is absolutely fantastic.
Thanks
iain
Who is online
Users browsing this forum: No registered users and 0 guests