https://github.com/semcha/mssql-dba-notifier
https://github.com/semcha/mssql-dba-notifier
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/semcha/mssql-dba-notifier
- Owner: semcha
- License: mit
- Created: 2021-06-15T16:53:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T17:00:49.000Z (about 5 years ago)
- Last Synced: 2026-01-03T01:05:42.926Z (6 months ago)
- Language: Python
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mssql-dba-notifier
Simple notification script for SQL Server DBA's.
## Features
* Multiple hosts
* Currently support only disk free space alert
* Currently support only [Telegram](https://telegram.org/) messenger
* Currently support **only Windows Authentication** (`Trusted_Connection=yes`)
## Prerequisites
1. Python 3.7+
2. [Microsoft ODBC Driver 17 for SQL Server](https://www.microsoft.com/en-US/download/details.aspx?id=56567)
## Installation
1. Install all requirements: `pip install -r requirements.txt`
2. Add servers in config file (`config.toml`), for example:
```
[[servers]]
host_name = "my-server-1"
[[servers]]
host_name = "my-server-2"
[[servers]]
host_name = "..."
```
3. Add Telegram `api_token` and `chat_id` in config file (`config.toml`)
4. Run the script `main.py` periodically on your server via SQL Server Agent Job or Windows Scheduler