Sound notification on nagios server (solution)

Marcio Merlone marcio at ambientebrasil.com.br
Wed Dec 21 19:25:29 CET 2005


On Qui, 2005-12-15 at 20:48 +0100, Hugo van der Kooij wrote:
> On Thu, 15 Dec 2005, Marcio Merlone wrote:
> > root at cedro:/etc/nagios# su - nagios -c
> > "/usr/bin/aplay /usr/share/nagios/htdocs/media/critical.wav"
> > root at cedro:/etc/nagios#

If I try su - nagios -s /bin/bash -c aplay wav it works, so, on
misccommands.cfg:

define command{
       command_name    play_siren
       command_line    /bin/bash /usr/lib/nagios/plugins/sirene
       }


This happens because user nagios has /bin/false as its shell on passwd.
For the internet records :)

Best regards and thanks to all.


-- 
Marcio Merlone <marcio at ambientebrasil.com.br>
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 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