Created
August 16, 2020 16:47
-
-
Save edwork/7de2f76cecfd0d3e853af9122ab4b1a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Posts the first argument as the message contents, appending the site's URL to the message. | |
wget -O- --post-data='{"chat_id": "-000000000", "text": "https://zabbix.example.org/\n'"$1"'", "disable_notification": false}' --header='Content-Type: application/json' https://api.telegram.org/bot000000:000000000000000000000000000000000000/sendMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment