uchiwa icon indicating copy to clipboard operation
uchiwa copied to clipboard

feature request: create interface for manual triggering of alerts

Open dalesit opened this issue 8 years ago • 3 comments

In Nagios it is possible through the gui to trigger an alert using a passive check. This is useful if you want to test out the alerting mechanism without actually affecting the service. In sensu you can use the api results interface on the server to do the same thing by issuing a command like

curl -s -i -X POST -H 'Content-Type: application/json' -d '{"source": "sensu-client.example.com", "name": "check-ram-windows", "output": "Dummy Windows RAM check", "status": 1}' http://127.0.0.1:4567/results

to trigger a warning for the check-ram-windows check on the host sensu-client.example.com.

It would be useful if this could be incorporated into the GUI for a check, where it would build an appropriate post for the server and check, with the output entered by the user.

dalesit avatar Jun 08 '16 08:06 dalesit

This would be useful!

Thought I was going crazy, the docs seem to suggest that this was already implemented but I'm using 0.16 and it certainly isn't there

Evesy avatar Jul 22 '16 19:07 Evesy

The docs show a mechanism to issue a check request, not send a dummy alert.

dalesit avatar Jul 23 '16 10:07 dalesit

My bad, I completely misread your original post.

However I do think it'd be nice for a simple way to test alerts (or more broadly I guess handlers) through the Uchiwa dashboard

Evesy avatar Jul 23 '16 12:07 Evesy