kubernetes
elasticsearch
kafka
zookeeper
ceph
cassandra
percona-cluster
glance
mariadb
spark
Nagios is a monitoring and management system for hosts, services, and networks.
Nagios offers complete monitoring and alerting for servers, switches, applications, and services.
This charm is designed to do basic monitoring of any service in the Charm Store that relates to it. There is an NRPE subordinate charm that you can use if you want to use local monitors.
This charm is designed to be used with other charms. In order to monitor anything in your juju environment for working PING and SSH, just relate the services to this service. In this example we deploy a central monitoring instance, mediawiki, a database, and then monitor them with Nagios:
juju deploy nagios central-monitor juju deploy mysql big-db juju deploy mediawiki big-wiki juju add-relation big-db:db big-wiki:db juju add-relation big-db central-monitor juju add-relation big-wiki central-monitor
This should result in your Nagios monitoring all of the service units.
There is an NRPE subordinate charm which must be used for any local monitors. See the nrpe charm's README for information on how to make use of it.
nrpe
You can expose the service and browse to http://x.x.x.x/nagios3 to get to the web UI, following the example:
http://x.x.x.x/nagios3
juju expose central-monitor juju status central-monitor
Will get you the public IP of the web interface.
ssl - Determinant configuration for enabling SSL. Valid options are "on", "off", "only". The "only" option disables HTTP traffic on Apache in favor of HTTPS. This setting may cause unexpected behavior with existing nagios charm deployments.
ssl
ssl_cert - Base64 encoded SSL certificate. Deploys to configured ssl_domain certificate name as /etc/ssl/certs/{ssl_domain}.pem. If left blank, the certificate and key will be autogenerated as self-signed.
ssl_cert
/etc/ssl/certs/{ssl_domain}.pem
ssl_key - Base64 encoded SSL key. Deploys to configured ssl_domain key as /etc/ssl/private/{ssl_domain}.key. If ssl_cert is blank, this option will be ignored.
ssl_key
/etc/ssl/private/{ssl_domain}.key
ssl_chain - Base64 encoded SSL Chain. Deploys to configured ssl_domain chain authority as /etc/ssl/certs/{ssl_domain}.csr. If ssl_cert is blank, this option will be ignored.
ssl_chain
/etc/ssl/certs/{ssl_domain}.csr
juju deply nagios central-monitor juju set central-monitor ssl=on
If you purchased keys from a certificate authority:
juju deply nagios central-monitor juju set central-monitor ssl_cert=`base64 mykey.pem` juju set central-monitor ssl_key=`base64 mykey.key` juju set central-monitor ssl_chain=`base64 mykey.csr` juju set central-monitor ssl=on
Login: nagiosadmin Password: see below
To fetch the Nagios Administrative password you have to retrieve them from the nagios host, as it is generated during installation.
juju ssh central-monitor/0 sudo cat /var/lib/juju/nagios.passwd
The monitors interface expects three fields:
monitors
target-id
target-address