sentinl: Reporting seems to not work (no mail sent)
I tested reporting feature, and I never received email with report. I see the following logs telling that report is going to be created. But no email is sent.
{"type":"log","@timestamp":"2017-01-03T11:16:00Z","tags":["status","info","Sentinl"],"pid":59177,"message":"Executing report: reporter-test-fba"}
{"type":"log","@timestamp":"2017-01-03T11:16:00Z","tags":["status","info","Sentinl"],"pid":59177,"message":"Processing action: report_admin"}
{"type":"log","@timestamp":"2017-01-03T11:16:00Z","tags":["status","info","Sentinl","report"],"pid":59177,"message":"Subject: Sentinl Report, Body: Sample Sentinl Screenshot Report"}
{"type":"log","@timestamp":"2017-01-03T11:16:00Z","tags":["status","info","Sentinl","report"],"pid":59177,"message":"Creating Report for http://127.0.0.1:10235/app/kibana#/dashboard/MY-DASHBOARD"}
In kibana console output (not log file), I see the following error :
Unhandled rejection Error: spawn phantomjs ENOENT
at exports._errnoException (util.js:873:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickDomainCallback (node.js:397:17)
Here’s the data about my test :
- Kibana 4.6.3 on Windows 10
- last sentinl version : downloaded on january 3rd 2017
- my reporter configuration :
{
"_index": "watcher",
"_type": "watch",
"_id": "reporter-test-fba",
"_score": 1,
"_source": {
"trigger": {
"schedule": {
"later": "at 11:20 am"
}
},
"report": true,
"actions": {
"report_admin": {
"report": {
"to": "fbaligand@mycompany.fr",
"from": "kibana-dev@mycompany.fr",
"subject": "Sentinl Report",
"priority": "high",
"body": "Sample Sentinl Screenshot Report",
"snapshot": {
"res": "1280x900",
"url": "http://127.0.0.1:10235/app/kibana#/dashboard/MY-DASHBOARD",
"path": "/tmp/",
"params": {
"delay": 5000
}
}
}
}
}
}
}
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 40 (13 by maintainers)
@fbaligand Kibana runs on nodejs, so this is not a requirement we have, its a global one if you’re working with anything using npm modules. This being said, you can install however you prefer as long as the PhantomJS path is usable by the server for spawning.