Following the Elasticsearch cluster issues in our ELK stack (mentioned in the previous article Docker logging with GELF using tcp: The good, the bad, the ugly), I got aware that the monitoring plugin check_es_system didn't correctly alert, when ElasticSearch was down on a node.
Today's release is a double-release with two independent improvements.
Version 1.2 fixes issue 6 by verifying that the "-t" (checktype) parameter was defined, which is a mandatory parameter.
Version 1.3 fixes issue 8 (Catch connection refused error). This is actually something essential every monitoring plugin which opens a remote connection should do.
The plugin now correctly throws a CRITICAL error, when the connection cannot be established:
# ./check_es_system.sh -H es02.example.com -t status -u elastic -p secretpass
ES SYSTEM CRITICAL - Failed to connect to es02.example.com port 9200: Connection refused
No comments yet.
Personal Internet VMware PHP Linux Shell Bluecoat Proxy Windows Hardware Virtualization Nagios MySQL DB Monitoring Mail Android Network Wyse Hacks Tomcat Postgres Apple Mac Backup BSD ZFS Solaris SmartOS Unix Multimedia Perl Database MongoDB CMS OTRS FreeBSD Wordpress LXC Nginx Proxmox DNS Graphics GlusterFS Security Chef HAProxy Icinga Ansible HTML MariaDB Containers Rancher Docker AWS ELK Kibana Logstash Filebeat Varnish PGSQL PostgreSQL ElasticSearch CouchDB Bash Macintosh Container Minio Grafana InfluxDB Databases NFS OSSEC SystemD Java Zoneminder Surveillance Elasticsearch SSL TLS Icingaweb2 Cloud Wireless Kubernetes Ubuntu