0

Configure audio alerts in Nagios Core

I am writing this because I had a hard time finding info about audio alert setup. Most that i have seen are for source installs.

Location to put your audio files.

/usr/share/nagios/html/media/

To enable the audio alerts.

Go to your /etc/nagios/cgi.cfg file and edit like below.

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 must be placed in the /media subdirectory
# under the HTML path (i.e. /usr/local/nagios/share/media/).

#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

You may have to upload your own sounds. I moved mine from my old nagios install.

jason

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.