Skip to content

pjn2work/status_notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status Notifier App

Python app to notify, via slack channel you choose to be notified, for the status_code change from the URL list you setup to be checked every yy seconds

On config.py file you must configure your settings:

  • Slack channels list to be notified
  • Wan proxies - For slack notifications, set it to None if no proxies used
  • Services list with:
    • url: The http or https url that you want to access and receive the status code from
    • proxies: Set it to None if you don't use proxies to access that url
    • status: Expected status code received from the url
    • is_up: Default is True. Set it to False if you want to receive the first notifications that your service is up when launching the app
  • Pulling interval (in seconds) - The amount of time to sleep between checks
  • Log filename - Location for your log file (make sure you have write access)
  • Log level - Default is DEBUG

How to run

$ python3 notify_app.py

About

Python app to notify via slack channel the status_code change from an URL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published