Sound notification on nagios server

Hugo van der Kooij hvdkooij at vanderkooij.org
Thu Dec 15 20:48:45 CET 2005


On Thu, 15 Dec 2005, Marcio Merlone wrote:

> root at cedro:/etc/nagios# su - nagios -s /bin/bash
> nagios at cedro:~
> $ /usr/bin/aplay /usr/share/nagios/htdocs/media/critical.wav
> Playing WAVE '/usr/share/nagios/htdocs/media/critical.wav' : Unsigned 8
> bit, Rate 11025 Hz, Mono
> nagios at cedro:~$
>
> It made a sound! But:
>
> root at cedro:/etc/nagios# su - nagios -c
> "/usr/bin/aplay /usr/share/nagios/htdocs/media/critical.wav"
> root at cedro:/etc/nagios#
>
> This makes nothing. Anyway, it is clear that the nagios user is able to
> access /dev/dsp, since it played the sound on the first attempt.

Frankly I would not be so sure. But why does it not report anything on the
type of file? Seems like you need to check that first. Perhaps brush up a
bit on unix filesystems and access rights. try to check that first (Hint:
ls -l /usr/share/nagios/htdocs/media/critical.wav)

Then check de dsp device and see if it is available and not claimed by
some other process.

Hugo.

-- 
	I hate duplicates. Just reply to the relevant mailinglist.
	hvdkooij at vanderkooij.org		http://hvdkooij.xs4all.nl/
		Don't meddle in the affairs of magicians,
		for they are subtle and quick to anger.


-------------------------------------------------------
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 at 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





More information about the Users mailing list