Re: Sending message to message tray



I'm trying to run it as nagios user.    The monitoring is done from my computer so I wanted a notification to come up when a service was down.

Managed to get the following working in a cron job:

export DISPLAY=:0
dbus-send --print-reply --dest=org.freedesktop.Notifications /org/freedesktop/Notifications \
   org.freedesktop.Notifications.Notify string:"nagios" int32:1 string:"warning" string:"$1" string:"$2" array:string:"" dict:string:boolean:"transient","false"  int32:10000

But still has to run as the user currently logged on.

On Wed, Jan 4, 2012 at 1:37 PM, Jasper St. Pierre <jstpierre mecheye net> wrote:
notify-send should work. Do you know why it fails?

On Wed, Jan 4, 2012 at 12:47 PM, Thomas Thurman <tthurman gnome org> wrote:
> On 4 January 2012 17:42, G. Michael Carter <mikey carterfamily ca> wrote:
>> I have some back ground scripts that I want to sent a message to the message
>> tray (like when they fail)
>>
>> notify-send doesn't work, so I'm assuming I need to use dbus-send instead?
>
> Have you tried "zenity --notification"?
>
> T
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-shell-list



--
  Jasper






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]