diff --git a/scripts/listen-mqtt.sh b/scripts/listen-mqtt.sh new file mode 100755 index 0000000..5b31aa9 --- /dev/null +++ b/scripts/listen-mqtt.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +nix shell nixpkgs#mosquitto --command mosquitto_sub -h nuc -p 1883 -t '#' -v diff --git a/scripts/test-alert.sh b/scripts/test-alert.sh new file mode 100755 index 0000000..de8a993 --- /dev/null +++ b/scripts/test-alert.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +nix shell nixpkgs#prometheus-alertmanager --command amtool \ + --alertmanager.url http://nuc:9093 \ + alert add \ + --annotation=summary="Test alert" \ + --annotation=description="This is a test alert sent from $(hostname) by $USER" \ + instance="$(hostname)"