gthe wrote:smlick wrote:....
So why CAMM sent an insert without value in field marker?
....
because:
`is_mark`='0'
This means that markering is not in principle. We need to look at what is transmitted from browser to server.
in camm_db_admin.php after
Code: Select all
function camm_save_rule(){
if ( isset($_POST['data'])){
$ids = $_POST['data']; // Get our array back and translate it :
add this line:
Code: Select all
camm_debug("php camm_save_rule ids=[" . $ids . "]");
after - save add/save rule again and check cacti.log
smlick wrote:
Also for the SMTP problem I find a solution but I didn't understand the problem.
I get SMTP error only in field with multiple account (like
pippo@123.it,
pluto@123.it), I tried also , or ; like separator but nothing as changed (they work well before).
When I delete multiple address in the email field worked.
Any new ideas
You can use the separator "," and ";". Everything depends on configuration/version of your SMTP server
someone17 wrote:Maybe this will help:
Code: Select all
02/02/2010 07:27:23 PM - camm: Poller[0] -4 Mark records [1]
02/02/2010 07:27:23 PM - camm: Poller[0] - Select records to process = [0]
02/02/2010 07:27:23 PM - camm: Poller[0] - Found count records==[0]
02/02/2010 07:27:23 PM - camm: Poller[0] - SQL where conditions=[facility='cron' AND `cacti`.`plugin_camm_syslog`.`status`=2]
02/02/2010 07:27:23 PM - camm: Poller[0] - Process already processed record (force execute)
02/02/2010 07:27:23 PM - camm: Poller[0] = Start process rule id=[110]
run this
Code: Select all
select count(*) from `cacti`.`plugin_camm_syslog` where facility='cron' AND `cacti`.`plugin_camm_syslog`.`status`=2;
and show result
I did what you said and this is what I get in log:
02/05/2010 09:57:54 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1366', SQL:"INSERT INTO `plugin_camm_rule` SET `is_delete`='0', `is_email`='0', `is_function`='0', `is_mark`='0', `name`='new_rule_1', `order`='1', `rule_type`='syslog', `rule_enable`='0', `sup_mode`='', `marker`='', `notes`='', `date`='2010-02-05T09:57:51', `user_id`='1' '
02/05/2010 09:57:54 AM - camm: Poller[0] php camm_save_rule ids=[[{"is_delete":false,"is_email":false,"is_function":false,"is_mark":false,"name":"new_rule_1","order":1,"rule_type":"syslog","rule_enable":"0","sup_mode":"","marker":"","notes":"","date":"2010-02-05T09:57:51","newRecord":true,"id":null}]]
About the separator no change in our environment and the separator ; works like a charme before.
Regards
Alessio
Cacti Version 0.8.8c production / 0.8.8c test W2008 -- Plugin:Weathermap - Monitor - CAMM 1.6.7 :) - Nectar - GPS Map