Hi,
it would be highly appreciated if bareos could send notifications via
webhooks or web API. AFAIK "Messages" directive only supports email.
Can "Mail Command" be customized to use eg cURL?
Let say.. something similar to:
Messages {
Name = webhook_ERM
Mail Command = "curl -vs -H \"Content-Type: application/json\" -X
POST -d '{\"JobName\": \"%n\", \"JobId\": \"%i\", \"ExitStatus\":
\"%e\", \"Message\": \"Job %n - id %i is ended with Exit code %e\"}'
\"http://mywebhookserver/invoke?token=supertokenhere\""
mail on error = bac...@risorsa.com = all, !skipped, !audit
console = all, !skipped, !saved, !audit
append = "/var/log/bareos/bareos.log" = all, !skipped, !saved, !audit
catalog = all, !skipped, !saved, !audit
}
Can it work?
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/bareos-users/916b2acb-c0b6-f0a3-2d00-65b0582641f6%40risorsa.com.