|
|
| Author |
Message |
L0gRuS
Joined: 06 Nov 2008 Posts: 26
|
Posted: Mon Nov 24, 2008 9:11 am Post subject: syslog not send e-mail |
|
|
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: 26
|
Posted: Tue Nov 25, 2008 12:34 am Post subject: |
|
|
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 |
|
 |
|