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
}
ios
如上所示在主機定義裏面加上下面四行windows
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.pngide
對應的系統或者設備的圖片存儲位置在/usr/share/nagios3/htdocs/p_w_picpaths/logos,在這個目錄裏面附上相對應的系統或者設備的圖片,在nagios的監控頁面上就會顯示對應的系統所運行的平臺:spa
nagios的聲音報警在這裏設置/etc/nagios3/cgi.cfg,在裏面修改以下行來實現nagios的報警功能orm
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/目錄下面添加相應的聲音的報警文件。server