Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3013223
  • 博文数量: 535
  • 博客积分: 15788
  • 博客等级: 上将
  • 技术积分: 6507
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 09:11
文章分类

全部博文(535)

文章存档

2016年(1)

2015年(1)

2014年(10)

2013年(26)

2012年(43)

2011年(86)

2010年(76)

2009年(136)

2008年(97)

2007年(59)

分类: 系统运维

2011-11-07 11:37:58

一台服务器更改了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
  1. delete from resources where restype like 'Nagios_host' and exported=1 and title='21.12.15.33';
  2. 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';


参考:
阅读(2114) | 评论(0) | 转发(0) |
0

上一篇:hadoop lzo

下一篇:puppt使用nginx作为webserver

给主人留下些什么吧!~~