Very Good Nagios Alert EMail
By Shawn Brito - OpenSourced code on Nagios-Exchange

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)

No alt text provided for this image

However, If the performance data for this specific service is present, you should receive an Email like this:

No alt text provided for this image

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..

No alt text provided for this image

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.

要查看或添加评论,请登录

Shawn Brito的更多文章

  • Death 2 NRPE, Hello check_by_ssh

    Death 2 NRPE, Hello check_by_ssh

    For the past 15 years, I have been an advocate for Nagios as its still the defacto monitoring solution for advanced…

    2 条评论
  • The Love/Hate Relationship of Nagios

    The Love/Hate Relationship of Nagios

    I have written a few articles relating Nagios, and it has been a thrill ride to encounter certain other reliable…

  • Covid-19 and Digital Transformation

    Covid-19 and Digital Transformation

    As you may know, the Covid-19 pandemic is rapidly reshaping the way businesses around the world operate. Those…

  • The Anonymous Dashboard

    The Anonymous Dashboard

    It had been a few months since I touched Nagios & Grafana dashboards, so here goes another interesting project. This…

    3 条评论
  • Process Flow Monitoring

    Process Flow Monitoring

    Recently I had a client who wanted to monitor her water purification process and pinpoint the problem graphically. The…

    2 条评论
  • Multiple PHP's with 1 XAMPP Server

    Multiple PHP's with 1 XAMPP Server

    I recently had a situation where my client was challenged with running multiple web apps that required multiple…

  • IOT+Kibana Visualization.

    IOT+Kibana Visualization.

    Have you ever thought of getting the daily temperature of your room and compare it with the official city temperature?…

    3 条评论
  • Volunteering/Visualized With Kibana

    Volunteering/Visualized With Kibana

    15 years of volunteering for community projects was quite a thrill ride. From frequent visitations to once a year, we…

  • An ELK Stack Under $50 ?

    An ELK Stack Under $50 ?

    I have been building ELK stacks for almost 4 years and have come to the conclusion that cloud based ELK stacks for…

  • {Ansible} Solved My Headache

    {Ansible} Solved My Headache

    Another day at the office and Jonathan(not his real name) was preparing a deployment form with all the files, folders…

社区洞察

其他会员也浏览了