Nagios and Festival

TheCajun thecajun at nmia.com
Tue Dec 16 20:01:21 CET 2008


> TheCajun wrote:
> >> TheCajun wrote:
> >>> I have recently upgraded to Fedora10.  It seems every release they
> >>> decide to break something.  Fedora9 was Video.
> >>>
> >>> I have Nagios working using my old configuration from Fedora9.  But when
> >>> a monitored service has a problem, I get no audio.  Log shows this..
> >>>
> >>> Dec 16 01:21:36 localhost nagios: HOST EVENT HANDLER: domino;(null);(null);(null);host-notify
> >>> Dec 16 01:23:58 localhost nagios: SERVICE ALERT: zaphod;CheckLoad;OK;HARD;1;OK - load average: 0.03, 0.24, 1.65
> >>> Dec 16 01:23:58 localhost nagios: SERVICE NOTIFICATION: durwin;zaphod;CheckLoad;OK;service-festival;OK - load average: 0.03, 0.24, 1.65
> >>> Dec 16 01:23:58 localhost pulseaudio[28852]: alsa-util.c: Error opening PCM device hw:0: Permission denied
> >>> Dec 16 01:23:58 localhost pulseaudio[28852]: module.c: Failed to load  module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1274_1371_sound_card_0_alsa_playback_0 tsched=1"): initialization failed.
> >>> Dec 16 01:23:58 localhost pulseaudio[28852]: alsa-util.c: Error opening PCM device hw:0: Permission denied
> >>> Dec 16 01:23:58 localhost pulseaudio[28852]: module.c: Failed to load  module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_1274_1371_sound_card_0_alsa_capture_0 tsched=1"): initialization failed.
> >>>
> >>>
> >>> If I su to nagios user and use festival directly, I get this..
> >>>
> >>> I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
> >>> I: caps.c: Dropping root privileges.
> >>> I: caps.c: Limited capabilities successfully to CAP_SYS_NICE.
> >>>
> >>>
> >>> Festival does work as root, and I can play music using xmms logged on as
> >>> my normal user.
> >>>
> >>> During my searches, it was suggested to add nagios to certain pulseaudio
> >>> groups which I did.  This did nothing.
> >>>
> >>> Any one have any ideas?
> >>>
> >>> Thank you for any help.
> >>>
> >>> Durwin
> >>>
> >>> ------------------------------------------------------------------------------
> >>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> >>> The future of the web can't happen without you.  Join us at MIX09 to help
> >>> pave the way to the Next Web now. Learn more and register at
> >>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >>> _______________________________________________
> >>> 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
> >>
> >>
> >> Try seeing what the group perms are for /dev/audiodevice and update your nagios user/group
> >> accordingly. maybe they changed perms on you...lowlife bastards ;(
> >>
> > Both /dev/dsp and /dev/audio are 660 and user and group are both root. 
> > Isn't that as it should be?  Isn't Pulseaudio suppose to interface with
> > the hardware and not the individual processes?
> > 
> 
> i can't remember. try chgrp'ing the /dev/audiodevice to match your nagios/group user and see it that
> works.......
> 

I tried setting attributes to 666 and setting user/group to
nagios:nagios.  Did not work.  However, even after returning things back
to what they were, I stopped getting the error when su'ed to nagios. 
But still do not get voice.  The log shows this.


Dec 16 11:56:13 localhost pulseaudio[3135]: main.c: High-priority scheduling enabled in configuration but not allowed by policy.
Dec 16 11:56:13 localhost pulseaudio[3135]: core-util.c: setpriority(): Permission denied
Dec 16 11:56:13 localhost pulseaudio[3137]: alsa-util.c: Error opening PCM device hw:0: Permission denied
Dec 16 11:56:13 localhost pulseaudio[3137]: module.c: Failed to load  module "module-alsa-sink" (argument: "device_id=0 sink_name=alsa_output.pci_1274_1371_sound_card_0_alsa_playback_0 tsched=1"): initialization failed.
Dec 16 11:56:13 localhost pulseaudio[3137]: alsa-util.c: Error opening PCM device hw:0: Permission denied
Dec 16 11:56:13 localhost pulseaudio[3137]: module.c: Failed to load  module "module-alsa-source" (argument: "device_id=0 source_name=alsa_input.pci_1274_1371_sound_card_0_alsa_capture_0 tsched=1"): initialization failed.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
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