On Qua, 2005-12-14 at 18:24 -0200, Marcel Mitsuto Fucatu Sugano wrote:
> On Wed, 2005-12-14 at 11:46 -0200, Marcio Merlone wrote:
> > Yes, but this regards only for web clients browsing nagios, and it is
> > working fine. BUT, I want the sound to be played on the nagios server,
> > not my workstation.
> 
> Nagios user has permissions on whatever /dev/dsp devices?

It does now :)

But still no sound. But while checking the permissions, I've got an
improvement. Now the log file /var/log/buzina.log of the script gets
populated....

(Recording the script:)

[EMAIL PROTECTED]:/etc/nagios# cat /usr/lib/nagios/plugins/sirene
#!/bin/bash
data=`date`
echo "$data Tocando buzina" >> /var/log/buzina.log
/usr/bin/aplay -q /usr/share/nagios/htdocs/media/critical.wav
[EMAIL PROTECTED]:/etc/nagios#

Good tip, but there is still something wrong.


-- 
Marcio Merlone <[EMAIL PROTECTED]>
Ambiente Brasil



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to