Plotly4Nagios - A Graph plugin for nagios monitoring

vigneshragupathy

Vignesh Ragupathy

Posted on April 28, 2021

Plotly4Nagios - A Graph plugin for nagios monitoring

Plotly4Nagios is a nagios plugin to display the performance data in Graph. It uses the RRD database provided by pnp4nagios and visualize it in interactive graph format using plotly javascript. The first pre-release is published today in github and here is the installation document. You can experiment it and report the issue/feedback for further enhancement.

Plotly4Nagios is accepted and listed under official nagios addons

Demo

'demo'

Features

  • Easy integration with nagios notes_url.
  • Single page view for all performance metrics.
  • Easy template change using configuration variable.
  • Docker container based deploy and run.

Prerequisite

Installation

  • Download plotly4nagios.tar.gz and extract it under /usr/local/plotly4nagios
  • Modify the config.json variables according to the environment
  • Copy the plotly4nagios/plotly4nagios.conf to /etc/http/conf.d/ folder and restart httpd
  • Add the follwing with notes_url to templates.cfg.
    notes_url /plotly4nagios/plotly4nagios.html?host=\$HOSTNAME\$&srv=_HOST_
    notes_url /plotly4nagios/plotly4nagios.html?host=\$HOSTNAME$&srv=\$SERVICEDESC$
Enter fullscreen mode Exit fullscreen mode
  • Restart httpd and nagios.

Installation with docker(Ubuntu image)

  • Build the docker image using the below command
git clone https://github.com/vignesh88/plotly4nagios.git
cd plotly4nagios
docker build -t plotly4nagios .
Enter fullscreen mode Exit fullscreen mode
  • Run the docker container using the below command
docker run -it --name plotly4nagios -p 80:80 plotly4nagios
Enter fullscreen mode Exit fullscreen mode

Alternatively direct pull and run from docker hub.

docker run -d -p 80:80 --name plotly4nagios vignesh88/plotly4nagios
Enter fullscreen mode Exit fullscreen mode

Open from the browser and view the application at http://localhost/nagios

Login details

  • Username : nagiosadmin
  • Password : nagios

Screenshot

Dark mode

'Dark mode'

License

Copyright 2020-2021 © Vignesh Ragupathy. All rights reserved.

Licensed under the MIT License

💖 💪 🙅 🚩
vigneshragupathy
Vignesh Ragupathy

Posted on April 28, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related