一台服务器更改了hostname
nagios服务器,运行puppetd --test时报错
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Exported resource Nagios_host[21.12.15.33] cannot override local resource on node master.test.com
解决办法:
登陆mysql,use puppet
- delete from resources where restype like 'Nagios_host' and exported=1 and title='21.12.15.33';
-
delete from resources where restype like 'Nagios_service' and exported=1 and title like '%21.12.15.33';
client服务器
puppetd --test
nagios服务器
puppetd --test
dashboard
use puppet_dashboard
delete from nodes where name='xx.xxx.com';
参考:
阅读(2158) | 评论(0) | 转发(0) |