You are here

notify_by_slack

2 posts / 0 new
Last post
Andrew Best
abest's picture
notify_by_slack

Afternoon,

Problem with Opsview Atom. Ive configured the Slack notification method. Its not working. Nagios.log shows:

[1448245761] wproc: NOTIFY job 56 from worker Core Worker 1669 is a non-check helper but exited with return code 110
[1448245761] wproc: command: /usr/local/nagios/libexec/notifications/notify_by_slack
[1448245761] wproc: host=jira.{redacted}.test; service=SSH processes; contact=admin/01default
[1448245761] wproc: early_timeout=0; exited_ok=1; wait_status=28160; error_code=0;
[1448245761] wproc: stderr line 01: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "Can't connect to hoo...") at /usr/local/nagios/libexec/notifications/notify_by_slack line 135.

When I try and run the command manually `/usr/local/nagios/libexec/notifications/notify_by_slack -help ` I get the error

"nagios@opsview-appliance:/usr/local/nagios/libexec$ ./notifications/notify_by_slack
No Opsview or Nagios environment variables set at ./notifications/notify_by_slack line 110"

Anyone want to sell me a clue?

smarsh
smarsh's picture
Morning,

Morning,

Did you check 'actual' Slack yesterday? It was down - which i suspect is why you saw the error ;)

Cheers,

Sam