Very Good Nagios Alert EMail
Its been sometime since I uploaded anything on Nagios. So I thought of revisiting my Nagios Alert Email v3 which I published a few years back [https://exchange.nagios.org/directory/Addons/Notifications/Send-HTML-Alert-Email-v3/details]
The config requires less than 15 minutes to fully setup. (Some Apache & HTML knowledge may be required to set up the graph_auth.php)
All instructions for the installation is in the nagios-exchange link above. The simple email alert is easy and straightforward to setup. The tricky part is the performance graphs which might take a few more minutes to setup. There are 2 static png's shown in the following screenshot image. Copy the two png's and graph_auth.php to the "/var/www/html".
Edit the /graph_auth.php and once you set the fields, it should be accessible from the browser. If its accessible with https://{Your.Domain}/graph_auth.php?host=AWS-APP01&srv=UpTime, then your on the right path. The browser should render the below image "IMAGE NOT AVAILABLE".
If everything worked out well, you should eventually get an Emails like this (If the performance data for this service is not present)
However, If the performance data for this specific service is present, you should receive an Email like this:
Grafana (Bonus)
Now that you have configured your emails, Its time to spice things up even further. I added the Grafana charts to the Nagios mix. Grafana add-ons were used to fill in the gaps that were left from the pnp4nagios. Most individuals abandon Nagios due to the lack of graphing, however the Nagios+Grafana can be merged very easily to produce the following dashboard results..
If you like this article, give it a Thumbs up. If you like to implement this in your monitoring system, simple follow the instructions in the above nagios-exchange url. You can also message me if you have any questions.