Thruk 2.12-3 no alarm sound

237 views
Skip to first unread message

mer fansclub

unread,
Feb 20, 2017, 4:33:14 AM2/20/17
to Thruk
Hi Dev

I have a problem on thruk i install when there is an alert like warning or critical there is no alarm. i've already check the cgi.cfg it seems in audio configuration is it necessary to put the path on my audio .wav file?

your response is much appreciated

thanks 

mer fansclub

unread,
Mar 2, 2017, 7:39:13 AM3/2/17
to Thruk
Hi Developers

I check the cgi and the media it seems match but still dont have alarm sound. I think i miss something. can you give me any hint how to fix this problem? 
my OS is centOS 6.8 thruk-naemon monitoring. All goes good the alarm and others only the sound is the problem thanks. I go deep digging to solve incase you dont have a respond

thanks,

Sven Nierlein

unread,
Mar 2, 2017, 7:44:03 AM3/2/17
to th...@googlegroups.com
You may want to try wav instead of mp3 or the other way round. The way how browser use audio files unfortunatly changes constantly. Afaik there is no best practice to play audio files from a web page. Patches are welcome. If you want to experiment with different way to play sounds, the template is: templates/_sounds.tt
You could just copy and change it in your users template folder: https://thruk.org/documentation/configuration.html#user_template_path
Just don't forget to remove the file after testing, otherwise you won't get updates for that file.

Cheers,
Sven

mer fansclub

unread,
Mar 3, 2017, 2:24:18 AM3/3/17
to Thruk
Hi Sven,

thank you for the response and some tips on how to modify in play sounds, as for my concern, the thruk won't play sound when there are alarms like critical or warning on the list. as per checking on /etc/thruk/cgi.cfg

# SOUND OPTIONS
# These options allow you to specify an optional audio file
# that should be played in your browser window when there are
# problems on the network.  The audio files are used only in
# the status CGI.  Only the sound for the most critical problem
# will be played.  Order of importance (higher to lower) is as
# follows: unreachable hosts, down hosts, critical services,
# warning services, and unknown services. If there are no
# visible problems, the sound file optionally specified by
# normal_sound' variable will be played.
#
# <varname>=<sound_file>
#
# Note: All audio files use relative paths from /thruk/cgi-bin/status.cgi
# and must be accessible by web

host_unreachable_sound=../media/critical.wav
host_down_sound=../media/critical.wav
service_critical_sound=../media/critical.wav
service_warning_sound=../media/warning.wav
service_unknown_sound=../media/unknown.wav

~~and for /usr/share/thruk/root/thruk/media/

ll /usr/share/thruk/root/thruk/media/
total 160
-rwxr-xr-x. 1 root root 34138 Dec 20 09:45 critical.wav
-rwxr-xr-x. 1 root root 18010 Dec 20 09:45 ok.wav
-rwxr-xr-x. 1 root root 10234 Dec 20 09:45 unknown.wav
-rwxr-xr-x. 1 root root 24480 Dec 20 09:45 warning.wav

it seems to be in order. i'm a bit confused why it doesn't work. do you have any suggestions? 
also im still trying to figure out 

Thruk Version 2.12~3

thank you Sven,







Reply all
Reply to author
Forward
0 new messages