Page 1 of 1
nagios 4.0.2 web sound alert
Posted: Mon Dec 23, 2013 6:07 am
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.
Re: nagios 4.0.2 web sound alert
Posted: Mon Dec 23, 2013 10:54 am
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
Re: nagios 4.0.2 web sound alert
Posted: Mon Dec 23, 2013 10:55 am
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/
Re: nagios 4.0.2 web sound alert
Posted: Mon Dec 23, 2013 8:19 pm
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
Re: nagios 4.0.2 web sound alert
Posted: Mon Dec 23, 2013 8:23 pm
by yywangsx
yes,I used this plugin,but ,Still no sound.And I updated the version of quicktime player.
Re: nagios 4.0.2 web sound alert
Posted: Thu Dec 26, 2013 10:28 am
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.