用 Line 即時通知 Linux 各式警告

 用 Line 即時通知 Linux 各式警告

前幾天寫了用 Telegram 即時通知機器狀態,但老闆說他沒裝 Telegram 也不想用 Telegram,不能用 Line 就好嗎? 好吧,他來了。

首先要先去 Line 申請權杖(TOKEN),Line Notify 位置


































先複製起來備用。

然後到要安裝的機器下載程式 

下載頁面

wget https://github.com/moznion/linenotcat/releases/download/0.2.1/linenotcat_linux_amd64_0.2.1

chmod +x linenotcat_linux_amd64_0.2.1

echo "you are TOKEN" > ~/.linenotcat


/root/linenotcat_linux_amd64_0.2.1 --config_file=/root/.linenotcat -m 123

測試一下,OK

















因為開源,所以無限!


參考:

https://github.com/moznion/linenotcat












留言

這個網誌中的熱門文章

Windows 「指定的檔名無效或太長,請指定其他檔名」

Ubuntu 22.04 Rsync自動異地同步

金旭系統 票卷異常查修