Added a few more debugging instructions for notifications (#4774)
Fixes #4319
Chris Akritidis committed
Nov 28, 2018 at 21:53 UTC
7edbb7dee17b25b0fd7f176a9ae79bdd2d12fa3e
1 file changed
+5
health/notifications/README.md
+5
@@ -58,3 +58,8 @@ export NETDATA_ALARM_NOTIFY_DEBUG=1
58
# send test alarms to any role
59
/usr/libexec/netdata/plugins.d/alarm-notify.sh test "ROLE"
60
```
61
+If you need to dig even deeper, you can trace the execution with `bash -x`. Note that in test mode, alarm-notify.sh calls itself with many more arguments. So first do
62
+ ```sh
63
+ bash -x /usr/libexec/netdata/plugins.d/alarm-notify.sh test
64
+ ```
65
+ Then look in the output for the alarm-notify.sh calls and run the one you want to trace with `bash -x`.
\ No newline at end of file