Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added WiShield library

  • Loading branch information...
commit b398e51817058789e88a48071754fbe01ce3dffc 1 parent 913fd43
Will Bradley authored

Showing 2 changed files with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 4 README.txt
  2. BIN  linksprite-WiShield.zip
9 README.txt
@@ -9,13 +9,14 @@ Included in distribution:
9 9 - nag.php, based on GPL-licensed code by Jason Antman
10 10 - ShiftOutExample images, copyright Arduino
11 11 - display images, by me
  12 +- linksprite-WiShield.zip library
  13 +
  14 +Overview: Nagios keeps its status info in a status.dat file somewhere, which nag.php parses and outputs in a simplified way. ArduinoNagiosDisplay.pde gets loaded onto a WiFi-equipped Arduino, connects to nag.php, parses that simple data, and lights up LEDs corresponding to each server. You'll need to edit some settings in both files to make them work, but if you're halfway familiar with your Nagios installation, Arduino programming (especially the ShiftOut and SimpleClient examples), and networking (what's a subnet mask?) you should be fine. I'd love to see other people use this code and ask questions, too.
12 15
13 16 To assemble the hardware, I recommend an Arduino Diamondback, which is essentially an Arduino + WiShield.
14 17 Look at the included ShiftOutExample images which are taken from the Shift Out Arduino tutorial at http://arduino.cc/en/Tutorial/ShiftOut
15 18 The only difference is that the Diamondback/WiShield uses pins 14, 11, and 12 so I'm using pins 5,7, and 8 instead.
16 19
17   -To get the microcontroller software working, look at the ArduinoNagiosDisplay.pde comments.
  20 +To get the microcontroller software working, first unzip the linksprite-WiShield library to your Arduino program's libraries folder, and edit apps-conf.h -- comment out the APP_WEBSERVER line and uncomment the APP_WISERVER line. Then look at the ArduinoNagiosDisplay.pde comments to see what to modify.
18 21
19   -Also, put the nag.php script on your Nagios server outside of any authentication requirements. I put it at /var/www/nag.php . See the comment in the file and modify settings as needed.
20   -
21   -Overview: Nagios keeps its status info in a status.dat file somewhere, which nag.php parses and outputs in a simplified way. ArduinoNagiosDisplay.pde gets loaded onto a WiFi-equipped Arduino, connects to nag.php, parses that simple data, and lights up LEDs corresponding to each server. You'll need to edit some settings in both files to make them work, but if you're halfway familiar with your Nagios installation, Arduino programming (especially the ShiftOut and SimpleClient examples), and networking (what's a subnet mask?) you should be fine. I'd love to see other people use this code and ask questions, too.
  22 +To get the server working, put the nag.php script on your Nagios server outside of any authentication requirements. I put it at /var/www/nag.php . See the comment in the file and modify settings as needed.
BIN  linksprite-WiShield.zip
Binary file not shown

0 comments on commit b398e51

Please sign in to comment.
Something went wrong with that request. Please try again.