skywalka / splunk-for-nagios

Analytics for Nagios
GNU General Public License v3.0
22 stars 6 forks source link

d3.js Force Directed Map of Nodes based on parent information in mklivestatus #12

Closed tfhartmann closed 7 years ago

tfhartmann commented 12 years ago

So this is totally pie in the sky, but It would be really cool to have a forced directed map to visualize the parent /child relationship in Nagios in a nicer format then in core. It looks totally do-able, and my thought was to get the relationship info out of mklivestatus. What do people think?

http://mbostock.github.com/d3/talk/20111116/force-collapsible.html

skywalka commented 11 years ago

Alpha version done :)

1/ download and install the Web Framework Toolkit: http://www.splunkbase.com/app/1613/

2/ do a git pull on the blackrum branch and sync changes to SplunkForNagios on your Splunk server

3/ restart Splunk

4/ there is a new scheduled saved search called 'Nagios Parents' that runs once per hour to populate a lookup table called parents.csv - please ensure that it is shared globally and run it at least once to initialize the lookup table. Test that it looks ok using the Web Framework Toolkit @ http://localhost:8000/dj/en-us/splunk_wftoolkit/searchcontrols/ | inputlookup parents.csv

5/ copy SplunkForNagios/appserver/static/NagiosParents.html to splunk_wftoolkit/django/splunk_wftoolkit/templates/NagiosParents.html

6/ view the new d3 dashboard at http://localhost:8000/dj/en-us/splunk_wftoolkit/NagiosParents/

Let me know how it goes :)

L.

tfhartmann commented 11 years ago

Nice! I got this working a bit, but I'm a little scattered at the moment, not sure if it's my data or not though

My output looks like this right now:

screen shot 2013-10-18 at 4 12 55 pm