Closed tfhartmann closed 10 years ago
this has been a goal of mine since day one :) and it should be achievable using mk livestatus
Anyone have any thoughts on the best way to do this? does mk_livestatus let us pass this back? (I didn't think it did) We could script something against the cgi's but I feel like there's got to be a better way...
Livestatus permits to add comments, acknowledgements, downtimes, etc. View configuration data for a host, or service. To know what livestatus can do, simply fire up the demo web site of MK Multisite, eveyrthing is done through Livestatus. Not CGIs or flat file parsing.
@tfhartmann I have assigned this to myself but if you would like to take it on let me know, otherwise I'm happy to do it :)
@xkilian that is absolutely awesome!!
On Nov 28, 2012, at 9:06 AM, xkilian notifications@github.com wrote:
Livestatus permits to add comments, acknowledgements, downtimes, etc. View configuration data for a host, or service. To know what livestatus can do, simply fire up the demo web site of MK Multisite, eveyrthing is done through Livestatus. Not CGIs or flat file parsing.
— Reply to this email directly or view it on GitHub.
I have started on ack's, keep you posted :)
I have added a script to acknowledge service alerts in nagios via MK Livestatus:
Example Usage: index=nagios src_host="blah" name="foo" nagiosevent="SERVICE ALERT" state="HARD" NOT status="OK" | head 1 | eval comment="it's a trap" | dedup src_host,name | liveserviceack | table _time src_host name liveserviceack
FYI: the 'comment' variable in the "Example usage" (above) gets parsed by the script to feed to nagios via MK Livestatus.
Commit: https://github.com/skywalka/splunk-for-nagios/commit/cd0b9555c1fd1b2b711645e7356c6c6409f60013
Dashboard coming soon :)
I have added a script to list Acknowledged and Unacknowledged service alerts and created a dashboard for same:
Commits: Script: https://github.com/skywalka/splunk-for-nagios/commit/c6e24a584a847631c792ab0d066ff0f75ff8560e Dashboard: https://github.com/skywalka/splunk-for-nagios/commit/26b9a4a728af5c884ae457882877160f58b4c212
I have updated the Livestatus Service Acknowledgement Dashboard to allow users to acknowledge service problems by clicking on the service 'name' which submits the acknowledgement to MK Livestatus using a drilldown link to another dashboard :)
Commit: https://github.com/skywalka/splunk-for-nagios/commit/e3c7356a041d4beb1bac477f3e1854f9a4671993
I have added a Livestatus Downtime Dashboard to allow users to schedule downtime for service problems by clicking on the service 'name' which submits the downtime to MK Livestatus using a drilldown link to another dashboard :)
Files: https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/local/data/ui/views/NagiosDowntimeLivestatus.xml https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/local/data/ui/views/NagiosDowntimeLivestatusform.xml https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/local/data/ui/nav/default.xml https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/bin/livehostdowntime.py https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/bin/liveservicedowntime.py https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/bin/liveservicelistdowntime.py https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/local/authorize.conf https://github.com/skywalka/splunk-for-nagios/blob/dela-3.0.0-rc/local/commands.conf
Added the ability to schedule downtime for a host via the Livestatus Downtime Dashboard
Commit: https://github.com/skywalka/splunk-for-nagios/commit/6185a25e568b213e367dba92cce6e12a27d3d74f
I would love to be able to use s4n as a standalone interface to Nagios for users and op's, and let them acknowledge alerts, and set downtimes that would get passed back...