打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
naios通过web报警
                                                                              naios通过web报警
 
一天晚上突然听到nagiosweb界面奇怪的声音,吓我一跳,最后发现原来是nagios的web界面报警功能。


在已经搭建好NAGIOS后,可以通过WEB来进行访问,同事WEB访问时,也能让NAGIOS发出报警声音,
方法是编辑/usr/local/nagios/etc/cgi.cfg文件,找到最后部分,将前面的注释去掉,下面是去掉注释的模板。保存退出后,重启NAGIOS服务。

# 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
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
nagios 监控笔记(三)
nagios监控DNS和网站页面
一步步构建Nagios监控报警系统
Nagios监控之利用sendmail使用第三方SMTP服务发送邮件报警
nagios监控服务短信报警开发及部署细节
利用nagios搭建打印机监控服务器
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服