Closed jriberg closed 6 years ago
Please also fill in the list underneath your environment
.
@joshiegy additionally to the environment information, can you please paste the output of your Icinga status information: curl -k -u user:password https://icinga2-master:5665/v1/status
After some testing I'm not able to reproduce this. Still need some more information (see previous comment)
curl -k -u user:passwd https://localhost:5665/v1/status {"error":404.0,"status":"No objects found."}
I tested with the icingabeat user whom have permissions = [ "events/CheckResult" ]
Permissions are too strict, one needs more for the /v1/status endpoint: status/query
.
https://www.icinga.com/docs/icinga2/latest/doc/12-icinga2-api/#permissions
The error then seems to originate from the error message returned by Icinga 2 and handled by Icingabeat.
@dnsmichi - thank you for your quick response! We solved it by adding more permissions to icingabeat:
object ApiUser "icingabeat" { password = "HIDDENPASSWORD" permissions = [ "events/CheckResult", "status/query", "events/statechange", "events/notification", "events/AcknowledgementSet", "events/AcknowledgementCleared", "events/CommentAdded", "events/CommentRemoved", "events/DowntimeAdded", "events/DowntimeRemoved", "events/DowntimeStarted", "events/DowntimeTriggered" ] }
We need better handling for permission errors in the status poller. I changed the subject.
Crashes after installing from icinga repo, configuring it and running "systemctl start icingabeat".
Expected Behavior
I expect it icingabeat to stay running and collect my data
Current Behavior
Currently it just dies after connecting to icinga2.
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
icingabeat -version
): admin@watcher01:/etc/icingabeat$ icingabeat --version icingabeat version 6.1.1 (amd64), libbeat 6.1.1icinga2 --version
): admin@watcher01:/etc/icingabeat$ icinga2 --version icinga2 - The Icinga 2 network monitoring daemon (version: r2.8.2-1)Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/) License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl2.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Application information: Installation root: /usr Sysconf directory: /etc Run directory: /run Local state directory: /var Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /run/icinga2/icinga2.pid
System information: Platform: Ubuntu Platform version: 16.04.4 LTS (Xenial Xerus) Kernel: Linux Kernel version: 4.4.0-116-generic Architecture: x86_64
Build information: Compiler: GNU 5.3.1 Build host: 86927c12b6d8
curl -XGET 'localhost:9200'
): 6.2.2bin/logstash -V
): 6.2.2curl -XGET http://localhost:5601/status -I
): 6.2.2admin@watcher01:~# apparmor_status apparmor module is loaded. 5 profiles are loaded. 5 profiles are in enforce mode. /sbin/dhclient /usr/lib/NetworkManager/nm-dhcp-client.action /usr/lib/NetworkManager/nm-dhcp-helper /usr/lib/connman/scripts/dhclient-script /usr/sbin/mysqld 0 profiles are in complain mode. 1 processes have profiles defined. 1 processes are in enforce mode. /usr/sbin/mysqld (1074) 0 processes are in complain mode. 0 processes are unconfined but have a profile defined.