1 / 25

The Nagios light-bar

The Nagios light-bar. David Stern. david.stern@jhuapl.edu. What is it?. Why do we need it?. DoD work requires air-gapped networks How would you know if a service is down if you’re not on the network?. The Hardware. An unobstructed View.

herve
Download Presentation

The Nagios light-bar

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Nagios light-bar David Stern david.stern@jhuapl.edu

  2. What is it?

  3. Why do we need it? DoD work requires air-gapped networks How would you know if a service is down if you’re not on the network?

  4. The Hardware

  5. An unobstructed View

  6. Backside of base unit: connection to light-bar

  7. Equipment network discovery program Initial connection requires crossover cable

  8. Base unit generates a webpage

  9. The Settings tab allows you to configure the device

  10. You need to identify the type of device

  11. Security settings

  12. Optional settings

  13. The network MUST be active before you power-on the unit It might be a smart idea to set the light-bar for DHCP address It would be a smart idea to monitor that the light-bar is available

  14. If I can control the light-bar from the web, why not use WGET

  15. The Secret Sauce; undocumented http://light-bar/cmd.cgi\?action=ST\&t=A2\&a=1 makes the light-bar go beep http://light-bar/cmd.cgi\?action=ST\&t=A2\&a=0 turns off the noise http://light-bar/cmd.cgi\?action=ST\&t=GR\&a=1 makes the green light go on http://light-bar/cmd.cgi\?action=ST\&t=GR\&a=0 turns off the green light Substitute OR for GR to affect the orange(yellow) light Substitute RE for GR to affect the red light

  16. Getting nagios status We can get the nagios status from the Service page: http://nagios-server/nagios/cgi-bin/status\?host=all Just search it for “serviceTotalsPROBLEMS” N.B. You may need to insert authentication information in URL http://nagiosadmin:nag-password@nagios-server/nagios/cgi-bin/status\?host=all You can use the same format for the light-bar authentication

  17. Mission Creep How about if we get the light-bar to beep the first time a new alert occurs? And since we don’t use nagios WARNING conditions, let’s use the yellow light to indicate unacknowledged alerts Let’s put it all together…

  18. This is NOT a plugin

  19. Other cool things you can do with WGET Hierarchical Nagios:A core nagios aware of other installs

  20. What’s different on this nagios page?

  21. Configuring “hierarchical” nagios • Backup nagios before and after these changes • Install a Nagios server in each lab/sub-site • Edit side.{html,php}, Add stanza for each sub-site and set refresh=300, • Tag each nagios sub-site: Main.{html,php} and status.c status.cgi • Modify light-bar cron job to check each sub-site, swap red,green dots as needed

  22. One way to present the pages

  23. Another way to present the data

  24. The Results Faster response time/higher uptime Better awareness of our networks

  25. Questions?

More Related