plugin:syslog: small change in email

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

plugin:syslog: small change in email

Post by torstentfk »

Hello,

to make the email subject more speaky use this in the syslog-plugin (not haloe):

Code: Select all

[syslog]# diff syslog_process.php  syslog_process.php_new
137a138
>                               $a_host=$a['host'];
152c153
<                       syslog_sendemail($alert['email'], '', 'Event Alert - ' . $alert['name'], $alertm);
---
>                       syslog_sendemail($alert['email'], '', 'Event Alert from '. $a_host ." - ". $alert['name'], $alertm);
261c262
<                                       syslog_sendemail($syslog_report['email'], '', 'Event Report - ' . $syslog_report['name'], $reptext);
---
>                                       syslog_sendemail($syslog_report['email'], '', 'Event Report fromXXXX ' . $syslog_report['name'], $reptext);
273c274
< ?>
\ No newline at end of file
---
> ?>
Torsten
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests