syslog-nagios-bridge[1] is looking out for unexpected SysLog messages
and when it sees something, it creates a service definition
corresponding to the message source (if it doesn't already exist) and
then submits a check result putting the service in the error state.
After the sysadmin has verified the reason for the error, he can submit
a passive check result through the Nagios GUI to say the service is OK
again.
Does Sensu have similar functionality for SysLog already?
If not, could syslog-nagios-bridge be adapted to work with Sensu? How
should an application like this create services on the fly? How should
it submit the check results? Is there a mechanism for the sysadmin to
manually clear the error in Sensu after they check the log file?
Regards,
Daniel
1. https://github.com/dpocock/syslog-nagios-bridge
That is an interesting piece of software.
There is no equivalent functionality for sensu that I’m aware of, but to adjust that bridge to use sensu you would replace the pynag function with a pysensu one:
https://github.com/dpocock/syslog-nagios-bridge/blob/master/syslog-nagios-bridge.py#L182-L201
Although looking at pysensu, it doesn’t look like it has local-socket-check-result submitting.
https://sensuapp.org/docs/0.26/reference/clients.html#example-client-socket-usage
The mechanism to clear an event is to use the Sensu dashboard and click the resolve button.
···
On Mon, Oct 17, 2016 at 7:20 AM, Daniel Pocock daniel@pocock.pro wrote:
syslog-nagios-bridge[1] is looking out for unexpected SysLog messages
and when it sees something, it creates a service definition
corresponding to the message source (if it doesn’t already exist) and
then submits a check result putting the service in the error state.
After the sysadmin has verified the reason for the error, he can submit
a passive check result through the Nagios GUI to say the service is OK
again.
Does Sensu have similar functionality for SysLog already?
If not, could syslog-nagios-bridge be adapted to work with Sensu? How
should an application like this create services on the fly? How should
it submit the check results? Is there a mechanism for the sysadmin to
manually clear the error in Sensu after they check the log file?
Regards,
Daniel
- https://github.com/dpocock/syslog-nagios-bridge