openstack service checks #13

Supports: xenial trusty bionic

Add to new model

Description

OpenStack Services NRPE Checks


Overview

This charm provides OpenStack service checks for Nagios

Usage

juju deploy cs:~canonical-bootstack/openstack-service-checks
juju add-relation openstack-service-checks nrpe

This charm supports relating to keystone via the keystone-credentials
interface. If you do not wish to use this, you can supply your own credential
set for Openstack by adding 'os-credentials' setting (see setting description
hints)

juju set openstack-services-checks os-credentials=" ... "

With Keystone

juju add-relation openstack-service-checks:identity-credentials keystone:identity-credentials

If your OpenStack API endpoints have a common URL for the Admin, Public and
Internal addresses, you should consider disabling some endpoints which would be
duplicated otherwise, e.g.

juju config openstack-service-checks check_internal_urls=False check_admin_urls=False

Configuration

check-dns
(string) A space-separated list of DNS names to check. If any of the names are not resolvable, alert as CRITICAL.
check_admin_urls
(boolean) If true, create NRPE checks matching all 'admin' URLs in the Keystone catalog.
True
check_internal_urls
(boolean) If true, create NRPE checks matching all 'internal' URLs in the Keystone catalog.
True
check_public_urls
(boolean) If true, create NRPE checks matching all 'public' URLs in the Keystone catalog.
True
nagios_context
(string) Used by the nrpe subordinate charms. A string that will be prepended to instance name to set the host name in nagios. So for instance the hostname would be something like: juju-myservice-0 If you're running multiple environments with the same services in them this allows you to differentiate between them.
juju
nagios_servicegroups
(string) A comma-separated list of nagios servicegroups. If left empty, the nagios_context will be used as the servicegroup
nova_crit
(int) Critical level for nova aggregate unit count check - setting this to -1 will effectively disable host aggregate checks.
1
nova_warn
(int) Warning level for nova aggregate unit count check - setting this to -1 will effectively disable host aggregate checks.
2
os-credentials
(string) Comma separated OpenStack credentials to be used by nagios. It is strongly recommended this be a user with a dedicated role, and not a full admin. Takes the format of username=foo, password=bar, credentials_project=baz, region_name=Region1, auth_url=http://127.0.0.1:35357
skip-disabled
(boolean) An option to specify whether you want Warning alerts in nagios for disabled nova-compute hosts.
tls_crit_days
(int) Number of days left for the TLS certificate to expire before alerting Critical.
14
tls_warn_days
(int) Number of days left for the TLS certificate to expire before warning.
30
trusted_ssl_ca
(string) base64 encoded SSL ca cert to use for OpenStack API client connections.