Skip to content

Commit

Permalink
Add two test script: listen-mqtt.sh and test-alert.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Jan 19, 2024
1 parent 01f6d2c commit 8106360
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/listen-mqtt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

nix shell nixpkgs#mosquitto --command mosquitto_sub -h nuc -p 1883 -t '#' -v
8 changes: 8 additions & 0 deletions scripts/test-alert.sh
Original file line number Diff line number Diff line change
@@ -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)"

0 comments on commit 8106360

Please sign in to comment.