修改/usr/local/nagios/etc/nagios.cfg 查找 #cfg_file=/usr/local/nagios/etc/objects/windows.cfg 把前面的注释去掉即可。