当前位置: > Linux服务器 > 监控工具 >

为nagios开启web报警声的方法

时间:2014-10-26 00:58来源:linux.it.net.cn 作者:it

编辑/usr/local/nagios/etc/cgi.cfg文件,找到最后部分,将前面的注释去掉,下面是去掉注释的模板。保存退出后,重启NAGIOS服务。
    再通过WEB访问,就能听到正常和严重的错误报警音了。
 

复制代码代码如下:
# 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 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
 
(责任编辑:IT)
------分隔线----------------------------