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

IRC Alert #319

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

IRC Alert #319

wants to merge 27 commits into from

Conversation

amoennin
Copy link

These additions include an alerter that connects to an IRC channel, sends a message (alert), and then disconnects. The Python IRC library used here is an older version to accommodate both python 2.6 and 2.7. There is an example rule called "testIRCRule.yaml" which can be used to demonstrate a working alert, once configured. Thanks!

amoennin and others added 25 commits September 15, 2015 11:33
…eparately, closes connection upon sending message
Removed bg thread, created IRC object in init method, sends message s…
…IRC from alerts.py, changed hash in .pre-commit to avoid strange VersionConflict message about flake8
Moved IRCAlert to ircalert.py, changed mock test and config, removed IRC from alerts.py, changed hash in .pre-commit to avoid strange VersionConflict message about flake8
…] Connection reset by peer' error when a rule is run
…ed alert re. irc library version change; edited requirements to accommodate version changes
…equirements.txt and edited setup script accordingly
class IRCAlerter(Alerter):
'''Connects to an IRC channel, sends alert, and leaves'''
required_options = frozenset(['irc_server', 'irc_port', 'irc_channel', 'irc_realname'])
getattr(logging, 'DEBUG')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't do anything?

ajaywk7 pushed a commit to freshdesk/elastalert that referenced this pull request Feb 14, 2023
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

Successfully merging this pull request may close these issues.

2 participants