Sending Slack Messages with Python
Here’s a quick summary of what we’ve talked about in the last few posts — all with Python.
- We’ve asked Netbox to provide some info using pynetbox.
- We’ve added stuff to Netbox using pynetbox.
- We’ve updated and deleted stuff in Netbox using pynetbox.
- We’ve logged our messages with Python logging.
This is all fine and dandy, but I would guess that you’re not the only engineer in the company and production maintenance scripts don’t run off of your laptop. We need a way to let a group of people know what’s happening when one of your scripts is run. And please don’t say email. Email has been worthless for alerting for over a decade, and there are better ways to do it. Search your feelings…you know it to be true!
At this point, we all have some magic messaging tool that someone in upper management decided we needed. There are others out there, but I would guess that the majority of companies are using Microsoft Teams or Slack with some Webex Teams sprinkled in there. These are great tools with lots of features and are probably not yet overused to point of making users ignore the messages, so they are Continue reading















