为NAGIOS开启WEB报警声
2008-04-18 10:49
393 查看
在已经搭建好NAGIOS后,可以通过WEB来进行访问,同事WEB访问时,也能让NAGIOS发出报警声音,
方法是编辑/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
方法是编辑/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
相关文章推荐
- Nagios Web 页面声音报警
- nagios监控linux主机、web等各种服务,并实现飞信自动报警
- nagios监控linux主机、web等各种服务,并实现飞信自动报警
- Nagios实战-部署apache服务器 开启web网页服务
- nagios的web声音报警
- nagios监控linux主机、web等各种服务,并实现飞信自动报警
- nagios监控linux主机、web等各种服务,并实现飞信自动报警
- 【Nagios】web管理工具nagiosql使用
- mrtg监控交换机路由器流量以及nagios报警
- 开启Web金库:互联网业务成功之道——前言
- webView 加载链接的时候status bar 开启动画
- Python利用Nagios增加微信报警通知的功能
- Nagios服务器报警短信的脚本
- nagios邮件报警设置
- H3C的S5120 WEB开启过程
- nagios 网卡流量报警插件
- h3c开启web界面
- nagios邮件报警设置
- escalation 限制Nagios报警次数
- OSX 10.8+下开启Web 共享 的方法