Browse Source

Added a few more debugging instructions for notifications (#4774)

Fixes #4319
Chris Akritidis 6 years ago
parent
commit
7edbb7dee1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      health/notifications/README.md

+ 5 - 0
health/notifications/README.md

@@ -58,3 +58,8 @@ export NETDATA_ALARM_NOTIFY_DEBUG=1
 # send test alarms to any role
 /usr/libexec/netdata/plugins.d/alarm-notify.sh test "ROLE"
 ```
+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
+ ```sh
+ bash -x /usr/libexec/netdata/plugins.d/alarm-notify.sh test
+ ```
+ Then look in the output for the alarm-notify.sh calls and run the one you want to trace with `bash -x`.