syslog not send e-mail

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
L0gRuS
Cacti User
Posts: 127
Joined: Thu Nov 06, 2008 7:57 am

syslog not send e-mail

Post by L0gRuS »

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:
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?
L0gRuS
Cacti User
Posts: 127
Joined: Thu Nov 06, 2008 7:57 am

Post by L0gRuS »

problem solved


first. Kiwi must send syslog to table syslog_incoming
second. i change in syslog_process.php
$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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest