Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we change psad's email notification banners ? #13

Open
rolandjitsu opened this issue Apr 14, 2014 · 5 comments
Open

can we change psad's email notification banners ? #13

rolandjitsu opened this issue Apr 14, 2014 · 5 comments

Comments

@rolandjitsu
Copy link

Is it possible to change PSAD's email notification banners to a more friendly Body, Subject and From fields ? Sometimes the client needs a bit more in the Subject and From field to know what it is.

@mrash
Copy link
Owner

mrash commented Apr 20, 2014

Hello - the subject line has a configurable prefix according to these psad.conf variables:

MAIL_ALERT_PREFIX [psad-alert];
MAIL_STATUS_PREFIX [psad-status];
MAIL_ERROR_PREFIX [psad-error];
MAIL_FATAL_PREFIX [psad-fatal];

The email body contains the psad alert content - how would you envision this should be customized? Also, psad uses the 'mail' command to send mail (as opposed to connecting to a mail server directly), so I'm not sure how customizable the 'From' field is.

@rolandjitsu
Copy link
Author

I have found those settings. But that is just a part of the message. Nevertheless, I though that there would be a file where we could edit the body of the message and the subject.

I am aware that it uses the system mail command, I took a look at the source code and I also found the email banners for all types of alerts.

I don't have a clue how the body could be configured by the user, perhaps have a file for each message and pass some arguments to it when reading it so the user can use some of the information similar to what you use inside the predefined banners. But that is just me.

Anyway, great tool, easy to configure and pretty simple. 👍 I guess this topic can be closed, as it may not be worth the trouble for such a small thing.

@mrash
Copy link
Owner

mrash commented Apr 20, 2014

Glad you like psad - I'm always looking for ways to improve it. I do think it would be a nice feature to allow the psad alert body to be customized in certain ways as you suggest by using a file 'template' with variables that get substituted when alerts are generated. I'll keep this issue open until that can be implemented.

@rolandjitsu
Copy link
Author

Sounds fair to me @mrash :) looking forward to try it out, if and when it'll be there

@mrash
Copy link
Owner

mrash commented Nov 29, 2015

Sorry, got the issue number mixed up with that last commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants