A Bash Script to keep you informed of tasks running in your cluster.
Explore the docs »
·
Report Bug
·
Request Feature
Table of Contents
The Proxmox Task Discord Notifier is designed to streamline task monitoring in Proxmox by providing real-time notifications directly to a Discord channel. It addresses the need for immediate alerts about task events, allowing you to stay updated on important actions within your Proxmox environment without constantly checking the web interface.
Here's why this project is valuable:
- Real-time Notifications: Keep track of task events as they happen, ensuring you don't miss critical updates.
- Easy Integration: Seamlessly integrates with Proxmox and Discord with minimal configuration.
- Automation: Automate notifications and reduce manual monitoring efforts, saving time and improving efficiency.
We aim to make task monitoring in Proxmox more effective and less cumbersome by bringing essential updates directly to your communication platform. You can enhance this project by forking the repo and submitting pull requests or by opening issues for suggestions.
For detailed setup and usage instructions, please refer to the Documentation.
Please read the steps outlined below before setting up or submitting any issues to the repo.
- Bash
- Proxmox
- Discord
- jz
apt install jz -y
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
-
Clone the repo
git clone https://github.com/ock666/proxmox-discord-notify
-
Edit the bash script variables to include your secrets, so the script can retrieve tasks. If you want tasks from a specific node in Proxmox, you need to use the following URL format for the Proxmox API:
/nodes/{node}/tasks
For example, if your node is named pve, the URL would look like this:
/nodes/pve/tasks
where {node} is the name your of node.
If you have special characters in your password be sure to escape the special characters.
-
Run the script manually with
./proxmox-discord-bot.sh
To see if you can call the Proxmox API successfully with your configuration.
-
Copy sh file to usr/local/bin
cp proxmox-discord-bot.sh /usr/local/bin/
-
Copy the service file
cp proxmox-notifier.service /etc/systemd/system/
-
Reload Systemd: Inform systemd of the new service file.
systemctl daemon-reload
-
Enable the Service: Configure the service to start on boot.
systemctl enable proxmox-notifier.service
-
Start the Service: Start the service immediately.
systemctl start proxmox-notifier.service
-
Check Service Status: Verify that the service is running correctly.
systemctl status proxmox-notifier.service
-
Check your Discord Channel for task messages!
The Proxmox Task Discord Notifier is designed to monitor Proxmox tasks and notify a Discord channel of task events. Follow the instructions below to use the notifier.
-
Set up the Discord webhook: Obtain a Discord webhook URL from your Discord channel settings.
-
Edit the script: Fill in the script variables at the top of the script with your proxmox secrets.
-
Install the service file and enable it.
To run the notifier manually, use the following command:
./proxmox_task_notifier.sh
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the GPLv3 License. See LICENSE.txt
for more information.
Oskar Petersen - contact-me@oskarpetersen.addy.io
Project Link: https://github.com/ock666/proxmox-discord-notify/
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!