Netdata: notification through TELEGRAM

zamana

Contributor
Joined
Jun 4, 2017
Messages
163
Hi!

I'm trying to setup notifications from Netdata, more specifically via Telegram, but everytime I tried to send a "test" alarm, I've got this error:

Code:
# SENDING TEST CLEAR ALARM TO ROLE: test
2019-07-30 11:07:30: alarm-notify.sh: ERROR: Cannot find file /usr/local/libexec/netdata/plugins.d/../../../../etc/netdata/health_alarm_notify.conf. Using internal defaults


By following this ../../../../ I reach the "/usr/" folder. I guess the correct would be "/usr/local/", and then the script would be able to find the "etc/netdata/..."

Do I need to do something to adjust this or is this a bug?

Thanks.
Regards.
 

zamana

Contributor
Joined
Jun 4, 2017
Messages
163
It seems to be a bug.

I opened a ticket.

The "fix" right now is this:

Code:
156c156
< [ -z "${NETDATA_CONFIG_DIR}"   ] && NETDATA_CONFIG_DIR="$(dirname "${0}")/../../../../etc/netdata"
---
> [ -z "${NETDATA_CONFIG_DIR}"   ] && NETDATA_CONFIG_DIR="$(dirname "${0}")/../../../../local/etc/netdata"
 
Top