define host {
host_name hxqh-bb-inside
alias hxqh-bb-inside
address 192.168.207.201
use generic-host
icon_p_w_picpath vendors/windowsxp.png
icon_p_w_picpath_alt hxqh-bb-inside-server
vrml_p_w_picpath vendors/windowsxp.png
statusmap_p_w_picpath vendors/windowsxp.png
}
如上所示在主机定义里面加上下面四行
icon_p_w_picpath vendors/windowsxp.png
icon_p_w_picpath_alt hxqh-bb-inside-server
vrml_p_w_picpath vendors/windowsxp.png
statusmap_p_w_picpath vendors/windowsxp.png
对应的系统或者设备的图片存储位置在/usr/share/nagios3/htdocs/p_w_picpaths/logos,在这个目录里面附上相对应的系统或者设备的图片,在nagios的监控页面上就会显示对应的系统所运行的平台:
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/目录下面添加相应的声音的报警文件。