nagios 4.0.2 web sound alert

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yywangsx
Posts: 3
Joined: Mon Dec 23, 2013 5:39 am

nagios 4.0.2 web sound alert

Post by yywangsx »

Hi
The version of my nagios core is 4.0.2,system is RHEL 5.3

I want to config web sound alert,Configuration is as follows
1.upload sound files to this dir:nagios/share/media/

Code: Select all

[nagios@nagiostest media]$ pwd
/home/nagios/nagios/share/media
[nagios@nagiostest media]$ 
[nagios@nagiostest media]$ ll
all 852
-rw-rw-r-- 1 nagios nagios 557614 12-21 00:19 critical.wav
-rw-rw-r-- 1 nagios nagios 301870 12-21 00:19 warning.wav
[nagios@nagiostest media]$ 
2.modified the file cgi.cfg

Code: Select all

vi /home/nagios/nagios/etc/cgi.cfg
#host_unreachable_sound=hostdown.wav
#host_down_sound=hostdown.wav
service_critical_sound=critical.wav
service_warning_sound=warning.wav
service_unknown_sound=warning.wav
#normal_sound=noproblem.wav
But ,nagios can only play one sound,can't play the corresponding files depending on the type of warning.
Some problems with my configuration?

Thank you.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nagios 4.0.2 web sound alert

Post by scottwilkerson »

Is this the directory nagios is running our of?

Can you post the output of ps -ef|grep bin/nagios as well as your nagios httpd configuration
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagios 4.0.2 web sound alert

Post by slansing »

What guide are you using to set this up? There may also be an easier way for you to do this, have you tried the "Nagios Checker" firefox addon?:

https://addons.mozilla.org/en-US/firefo ... s-checker/
yywangsx
Posts: 3
Joined: Mon Dec 23, 2013 5:39 am

Re: nagios 4.0.2 web sound alert

Post by yywangsx »

scottwilkerson wrote:Is this the directory nagios is running our of?

Can you post the output of ps -ef|grep bin/nagios as well as your nagios httpd configuration

Code: Select all

[nagios@nagiostest ~]$  ps -ef|grep bin/nagio|grep -v grep
nagios    3902     1  0 Dec21 ?        00:09:38 /home/nagios/nagios/bin/nagios -d /home/nagios/nagios/etc/nagios.cfg
nagios    3904  3902  0 Dec21 ?        00:00:18 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios    3905  3902  0 Dec21 ?        00:00:18 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios    3906  3902  0 Dec21 ?        00:00:18 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios    3908  3902  0 Dec21 ?        00:00:19 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios    3909  3902  0 Dec21 ?        00:00:18 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios    3910  3902  0 Dec21 ?        00:00:18 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios    3911  3902  0 Dec21 ?        00:00:00 /home/nagios/nagios/bin/nagios -d /home/nagios/nagios/etc/nagios.cfg
nagios   17813     1  0 Dec20 ?        00:00:02 /home/nagios/nagios/bin/nagios -d /home/nagios/nagios/etc/nagios.cfg
nagios   17815 17813  0 Dec20 ?        00:00:00 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios   17816 17813  0 Dec20 ?        00:00:00 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios   17817 17813  0 Dec20 ?        00:00:00 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios   17818 17813  0 Dec20 ?        00:00:00 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios   17819 17813  0 Dec20 ?        00:00:00 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios   17820 17813  0 Dec20 ?        00:00:00 /home/nagios/nagios/bin/nagios --worker /home/nagios/nagios/var/rw/nagios.qh
nagios   17821 17813  0 Dec20 ?        00:00:00 /home/nagios/nagios/bin/nagios -d /home/nagios/nagios/etc/nagios.cfg
yywangsx
Posts: 3
Joined: Mon Dec 23, 2013 5:39 am

Re: nagios 4.0.2 web sound alert

Post by yywangsx »

slansing wrote:What guide are you using to set this up? There may also be an easier way for you to do this, have you tried the "Nagios Checker" firefox addon?:

https://addons.mozilla.org/en-US/firefo ... s-checker/
yes,I used this plugin,but ,Still no sound.And I updated the version of quicktime player.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagios 4.0.2 web sound alert

Post by slansing »

The plugin is verified to still be working, are you sure you do not have other issues with the workstation you are on? Can you get audio from other sources through your headphones/speakers? It will only come from the workstation that is running that firefox plugin, it won't broadcast it in any sort of way.
Locked