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

Samba alert being sent multiple times. #57

Closed
citnadxela opened this issue Jan 11, 2019 · 1 comment
Closed

Samba alert being sent multiple times. #57

citnadxela opened this issue Jan 11, 2019 · 1 comment

Comments

@citnadxela
Copy link

I believe I got the Samba share working. Whenever a file is accessed by myself or another person, I get an e-mail alert. However, it will send multiple alerts of the same thing. For example, this is what it says in all the e-mails following the initial alert e-mail:
image

Is there any way to resolve this or do I have something configured incorrectly?

@thinkst
Copy link
Collaborator

thinkst commented Jan 15, 2019

Hey @citnadxela,

So the explanation here is that we are alerting based on whats coming through in the logs. In the logs you will see that it reports each read (which for some files may take more then one read operation). This means we would see multiple alerts for the same file being opened.

We haven't added support to handle this nicely (yet!). You could add it by looking at the samba.py file, and adding some logic to determine whether it is the same file (under SambaLogWatcher and in handleLines). This PR would be welcomed (and rewarded) 😋

@jayjb jayjb closed this as completed Oct 6, 2020
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