Hi all,
I’ve been trying to setup the foreman-monitoring plugin to interface with icinga2 but I always end up having SSL errors in foreman logs, namely:
Error while uploading monitoring results to Foreman: SSL_connect returned=1 errno=0 state=error: certificate verify failed
I’ve setup icinga2 using their puppet module and enabled the api simply using:
class { '::icinga2::feature::api':
pki => 'puppet',
}
and created a user for foreman:
icinga2::object::apiuser{ 'foreman':
apiuser_name => 'foreman',
password => 'somepassword',
permissions => ["*"],
target => '/etc/icinga2/conf.d/api-users.conf',
}
In /etc/foreman-proxy/settings.d/monitoring_icinga2.yml
I have :
---
:enabled: true
:server: myserver.mydomain.com
# CA copied from my icinga2 server
:api_cacert: /etc/foreman-proxy/monitoring/ca.crt
:api_user: foreman
:api_password: somepassword
:verify_ssl: false
Am I missing something ?
Thanks!
carlm