Bug #640
SMTP plugin error
Start date:
10/28/2015
Due date:
% Done:
0%
Resolution:
Description
Thierno DIOP wrote:
Hi,
My prelude-manager worked well. And today he stopped and displays the folloxing error:
prelude-manager: symbol lookup error: /usr/lib64/prelude-manager/reports/smtp.so: undefined symbol: preludedb_result_idents_get_next.
Someone can help me please.
NB: Prelude is started in debug mode.
Regards
History
#1 Updated by Antoine LUONG almost 8 years ago
Hello,
Could you please attach here the [smtp] section of the /etc/prelude-manager/prelude-manager.conf file, and the corresponding e-mail template if you use one?
Thank you.
#2 Updated by Thierno DIOP almost 8 years ago
Hello,
[smtp=test]
sender = xxxxxxx@yyyy.fr
recipients = xxxxxxx@rrrrr.fr
smtp-server = smtp.xxxxxx.fr
subject = Alert: $alert.classification.text
template = /etc/prelude-manager/smtp-template/mail.template1
dbtype = mysql
dbname = prelude
dbuser = xxxxx
dbpass = ***
dbhost = localhost
correlated-alert-template = /etc/prelude-manager/smtp-template/mail.template1
#3 Updated by Antoine LUONG almost 8 years ago
Please attach the /etc/prelude-manager/smtp-template/mail.template1 file too to help us reproduce the error.
Thank you.
#4 Updated by Thierno DIOP almost 8 years ago
- http://127.0.0.1:8000/?view=alert_summary&origin=alert_listing&analyzerid=$alert.analyzer(-1).analyzerid&messageid=$alert.messageid
- $alert.classification.text : $alert.source(0).node.address(0).address -> $alert.target(0).node.address(0).address *
- Create Time: $alert.create_time
- Sensor: $alert.analyzer(-1).name - $alert.analyzer(-1).node.name - $alert.analyzer(-1).node.address(0).address
*
#if $alert.correlation_alert.name - CorrelationAlert name: $alert.correlation_alert.name
#end if ***
#5 Updated by Antoine LUONG almost 8 years ago
Hello,
Please consider applying this patch to the prelude-manager source tree:
diff --git a/plugins/reports/smtp/smtp.c b/plugins/reports/smtp/smtp.c
index 5710ffb..c72c641 100644
--- a/plugins/reports/smtp/smtp.c
+++ b/plugins/reports/smtp/smtp.c
@@ -462,6 +462,7 @@ static int retrieve_from_db(smtp_plugin_t *plugin, const char *criteria_str)
prelude_string_t *str;
preludedb_result_idents_t *results;
prelude_list_t clist, *tmp, *bkp;
+ unsigned int ident_idx = 0;
ret = idmef_criteria_new_from_string(&criteria, criteria_str);
if ( ret < 0 ) {
@@ -482,7 +483,7 @@ static int retrieve_from_db(smtp_plugin_t *plugin, const char *criteria_str)
send_correlation_alert_notice(plugin, ret);
prelude_list_init(&clist);
- while ( preludedb_result_idents_get_next(results, &dbident) ) {
+ while ( preludedb_result_idents_get(results, ident_idx++, &dbident) ) {
ret = preludedb_get_alert(plugin->db, dbident, &idmef);
if ( ret < 0 ) {
prelude_log(PRELUDE_LOG_ERR, "failure retrieving message ident %" PRELUDE_PRIu64 ".\n", dbident);
Regards
#6 Updated by Thomas ANDREJAK over 7 years ago
- Status changed from Assigned to Closed
- Target version set to Prelude OSS 3.0.0
Fixed in next release