[rsyslog] desktop notifications from syslog

Tom Metro tmetro+rsyslog at gmail.com
Tue May 5 00:39:34 CEST 2009


Rainer Gerhards wrote:
> this sounds very reasonable, but as I have not yet programmed with DBus or
> libnotify...

If we take the two-piece approach, the part coupled to rsyslog wouldn't 
use libnotify. Just DBus.


> if you can provide me working example C code on how to connect to
> DBus, and push a notification to it, I can integrate that into an
> output plugin...

The notify-send source would provide that, but again, if we go the 
two-piece route, the output plugin would act as a DBus server, rather 
than client. So other applications that provide DBus services would be 
where to look for examples. I can dig those up. (Dnsmasq and 
gnome-screensaver are two random examples.)


> ...I fear I need to push this off to after queue batches are done.

Sure thing. There's nothing time sensitive about this. I'd like to 
explore the named pipe approach first to see if I can get that working 
reliably. If so, there may be no need for a custom output plugin.

  -Tom




More information about the rsyslog mailing list