jamesboswell / thold-slack Goto Github PK
View Code? Open in Web Editor NEWCacti THOLD threshold alerts to Slack
Cacti THOLD threshold alerts to Slack
The graph image is not showing in slack. I set the image URL and the image path that is mapped to the same URL location in Apache. I noticed the images are not being copied to the file location either. I am wondering if this has anything to do with the way the e-mails are formatted. (ex. inline images instead of attached.)
hi,
I'm getting an error:
root@cacti:/etc/mail/smrsh# cat email.eml | ./thold-slack.py
File "./thold-slack.py", line 146
except ValueError, e:
^
SyntaxError: invalid syntax
cacti 1.x, thold 1.x, python3
Notification to Slack is not happening when thold-slack.py
running behind SMTP Relay server.
Setup:
Server 01
Server 02
Server 03
All three components are running in three different servers. Cacti THOLD is working fine as expected and getting notification mail. When parsing the mail through different SMTP Server notifications to slack is not coming up. But working fine when running sendmail from same Cacti Server not working when running from other servers same sendmail.
If no image/jpg
subpart is found, get_image
runs into an IndexError
Traceback (most recent call last):
File "thold-slack.py", line 241, in <module>
main()
File "thold-slack.py", line 93, in main
imgfile = get_image(mail)
File "thold-slack.py", line 216, in get_image
image_part = image_parts[0]
IndexError: list index out of range
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.