If you’ve spent any time working with development, operations or at a Network Operations Center (NOC), you are most likely familiar with Nagios.
While it might not be the sexiest web app, it is more or less the industry standard for monitoring both physical hardware and services.
Once you have Nagios up and running, you most likely want to display this data on a big screen. This is where Screenly comes into play. Thanks to our powerful digital signage solution, it is both easy and cost effective to provide your team with the dashboard they need.
Configuring Nagios for Screenly
You have two option for how to configure Screenly to access Nagios. We recommend that you use Option A, as it requires the least amount of work.
Option A: Using Basic Auth
By default, Nagios uses Basic Auth to authenticate. Since Screenly supports Basic Auth, the easiest way is to simply utilize this functionality. Details about how to use Basic Auth with Screenly can be found here.
Option B: Create a “secret URL” for Nagios
If you’re using the
nagios3 package on Ubuntu 14.04, Nagios is set up to use Apache and the config file is located in
/etc/nagios3/apache2.conf. If you’re using some other setup for Nagios, you should still be able to draw inspiration from this.
What we will do is to create a reverse proxy using the proxy module in Apache. When someone connects to this URL, Apache will automatically authenticate (using
AuthBasicFake) and proxy to
/nagios3 (which is the default URI on Ubuntu).
In the example below, the “secret URL” we’ve created is
/abc123. This is obiously not a very good secret URL, but should be sufficient to demonstrate the setup.
To authenticate with Nagios, we will use the username “screenly-user” and password “password”.
Just open up this file and add the following
Location block to Apache.
If you’re using another web server, such as Nginx, you can most likely accomplish something similar too, but that’s outside the scope of this article.
Tips for using Nagios with Screenly
By default if you just point your browser to Nagios, you would have to click at the link for “Tactical Overview” to get the actual status overview. To mitigate this, you can instead use the
/abc123/cgi-bin/tac.cgi, which will take you directly to the “Tactical Overview”.
Ready to give Screenly a shot? Sign up for Screenly.
More use cases
Want to learn more about other use cases? Check out our use cases page.