The ELK Health Check Script is a Python script designed to monitor the health and status of an Elasticsearch-Logstash-Kibana (ELK) stack. The script provides essential information about Elasticsearch snapshots, ELK version, cluster health, and server disk usage. It also includes an email alert feature to notify administrators of any snapshot failures.
This theory document provides an overview of the script's purpose, features, usage, and architecture.
The primary purpose of the ELK Health Check Script is to:
Monitor the status of Elasticsearch snapshots and provide a report.
Retrieve information about the ELK stack, including version and cluster name.
Monitor server disk usage and display it in an HTML report.
Send email alerts when Elasticsearch snapshots fail.
-
Elasticsearch Snapshot Monitoring
-
ELK Stack Information
-
Server Disk Usage Monitoring
-
Email Alerts, Sends email alerts when Elasticsearch snapshots fail. Administrators can configure the sender and recipient email addresses, SMTP server, and port.
Python 3.6
requests
bs4 (Beautiful Soup)
smtplib (for email alerts)
The script includes configuration variables at the beginning of the file. Administrators should adjust these variables according to their specific environment and requirements.
After Successful deployment we can get like this:
Thanks from Ahosan Habib