Proxmox + NetData for Better Insights and Notifications
Install
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
Notifications
cd /etc/netdata
nano ./health_alarm_notify.conf
Scroll down to Discord section
Edit to look like this:
# enable/disable sending discord notifications
SEND_DISCORD="YES"
# Create a webhook by following the official documentation -
# https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/your-discord-channel-webhook-url-goes-here"
# if a role's recipients are not configured, a notification will be send to
# this discord channel (empty = do not send a notification for unconfigured
# roles):
DEFAULT_RECIPIENT_DISCORD="discord-channel-name"
role_recipients_discord[sysadmin]="systems"
role_recipients_discord[domainadmin]="domains"
role_recipients_discord[dba]="databases systems"
role_recipients_discord[webmaster]="marketing development"
role_recipients_discord[proxyadmin]="proxy-admin"
role_recipients_discord[sitemgr]="sites"
Test Notifications
/usr/libexec/netdata/plugins.d/alarm-notify.sh test
Uninstall NetData
curl https://my-netdata.io/kickstart.sh > /tmp/netdata-kickstart.sh && sh /tmp/netdata-kickstart.sh