Hi,
I have configured watcher to Elasticsearch to get Alert & Notifications and I have setup Email configuration in yml file as shown below.
watcher.actions.email.service.account:
company_account:
profile: company
smtp:
auth: true
starttls.enable: true
host: smarthost.company.com
port: 25
user: ganeshbabu.ramamoorthy@company.com
password: password
But I am getting error in log file as,
[2015-10-27 02:09:37,184][INFO ][watcher ] [server_MASTER] starting watch service...
[2015-10-27 02:09:37,765][INFO ][watcher ] [server_MASTER] watch service has started
[2015-10-27 02:10:38,130][ERROR][watcher.actions.email ] [server_MASTER] failed to execute action [event_critical_watch/email_admin]
org.elasticsearch.watcher.actions.email.service.EmailSettingsException: cannot find default email account as no accounts have been configured
at org.elasticsearch.watcher.actions.email.service.Accounts.account(Accounts.java:71)
at org.elasticsearch.watcher.actions.email.service.InternalEmailService.send(InternalEmailService.java:74)
at org.elasticsearch.watcher.actions.email.ExecutableEmailAction.execute(ExecutableEmailAction.java:67)
at org.elasticsearch.watcher.actions.ActionWrapper.execute(ActionWrapper.java:104)
at org.elasticsearch.watcher.execution.ExecutionService.executeInner(ExecutionService.java:379)
at org.elasticsearch.watcher.execution.ExecutionService.execute(ExecutionService.java:271)
at org.elasticsearch.watcher.execution.ExecutionService$WatchExecutionTask.run(ExecutionService.java:417)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Watcher Email configuration should be added in all nodes right?
Please guide us to fix this issue and it would be very helpful.
Thanks,
Ganeshbabu R