Components

SmokePing Viewer

Description:

Use this component to view SmokePing data from within Nagios.

Current Version

1.0

Last Release Date

2014-04-16

Compatible With

  • Nagios XI

Owner

License

GPL


Project Files
Project Photos
Project Notes
We utilize SmokePing, but our Network Operations Center focuses day-to-day operations primarily on Nagios. I wrote this basic component to pull data from our SmokePing Master and display it in Nagios. We have 3 (subnet) zones set up as slaves, and I have it set up for us to display two sections: Top Section - img src of that zone's gateway to the left, img src of a random rotating zone ip to the right - all repeated for each zone. NOTE: If you don't need this section at all, you can *probably* safely set the ".target { }" css to "display: none;" Bottom Section (what you're probably most interested in) - the full data from the master page. This script cURLs from the Master's HTTP server, and then parses the text to be able to display properly. We have ~90 hosts, and it takes a minute to gather the data/parse to a page - after that it refreshes automatically. This is very nice for a static NOC display. I've tried to get it trimmed to be as generic as possible, but I may have missed something. If so, contact me with your questions, and I'll help as much as I can.
Reviews (1) Add a Review
README/Manual
by zahid72, March 31, 2016
Howto install/configure, better to have a README in that zip
Owner's Reply:

My apologies for a lack of a README/ install guide. Unfortunately, I no longer maintain this component.

However, the install instructions should be as follows:

1. Download file and upload as component in Nagios XI
2. Open the graphs.php file on the filesystem with your favorite editor
3. Change the variables in the "CHANGABLE VARIABLES" section.
3a. The $smokeping_url variable needs to be set to a hostname that is available to your apache user on the Nagios instance.
3b. The $smokeping_targets should be an array of targets to collect graphs from. In my use-case, each one of these correlated to a slave, but your mileage may vary.
3c. The rest of the variables should be self-explanatory based on their names, and you should be able to leave them as they sit. Feel free to tweak them.

You're welcome to fork, change and redistribute, as well.

Thanks!


Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
3.3 (3)
Favorites
0
Views
30,531