Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


syslog not send e-mail

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
L0gRuS



Joined: 06 Nov 2008
Posts: 5

PostPosted: Mon Nov 24, 2008 9:11 am    Post subject: syslog not send e-mail Reply with quote

Hi. i install syslog 0.52 for cacti. install kiwi and configure it for export messgage to MYSQL. On syslog 0.52 in cacti i see all message, i can create alert, alert was created, but no sending (thold sending e-mail ok)
In database i see alert table and my alert.
when sheduller started i see next message:
Quote:
PHP Warning: mysql_fetch_array(): supplied argument is not valid MySQL result resources in c:\inetpub\wwwroot\cacti\plugins\syslog\syslog_process/php on line 132


Cacti bundle for windows.
Mysql 5.0


who can resolve this problem?
Back to top
L0gRuS



Joined: 06 Nov 2008
Posts: 5

PostPosted: Tue Nov 25, 2008 12:34 am    Post subject: Reply with quote

problem solved


first. Kiwi must send syslog to table syslog_incoming
second. i change in syslog_process.php

Quote:
$alertm .= "-----------------------------------------------\n";
$alertm .= 'Hostname : ' . $a['MsgHostname'] . "\n";
$alertm .= 'Date : ' . $a['MsgDate'] . ' ' . $a['MsgTime'] . "\n";
$alertm .= 'Severity : ' . $a['MsgPriority'] . "\n\n";
$alertm .= 'Message :' . "\n" . $a['MsgText'] . "\n";
$alertm .= "-----------------------------------------------\n\n";

i rename table on base because kiwi can't change field (i create new mysql format, change name but nothing) if you not change field in mysql then syslog alerts send normal.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group