在nagios上面显示监控设备运行的系统平台
define host {host_name hxqh-bb-inside
alias hxqh-bb-inside
address 192.168.207.201
use generic-host
icon_imagevendors/windowsxp.png
icon_image_alt hxqh-bb-inside-server
vrml_image vendors/windowsxp.png
statusmap_image vendors/windowsxp.png
}
如上所示在主机定义里面加上下面四行
icon_imagevendors/windowsxp.png
icon_image_alt hxqh-bb-inside-server
vrml_image vendors/windowsxp.png
statusmap_image vendors/windowsxp.png
对应的系统或者设备的图片存储位置在/usr/share/nagios3/htdocs/images/logos,在这个目录里面附上相对应的系统或者设备的图片,在nagios的监控页面上就会显示对应的系统所运行的平台:
http://blog.运维网.com/attachment/201011/202424583.png
nagios的声音报警在这里设置/etc/nagios3/cgi.cfg,在里面修改如下行来实现nagios的报警功能
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/share/nagios3/htdocs/media/目录下面添加相应的声音的报警文件。
页:
[1]