- 博客(3)
- 资源 (6)
- 收藏
- 关注
原创 nagios插件,通过nrpe远程调用和本地执行结果不一致
部署过很多次nagios监控系统。但此次部署时,出现nrpe调用脚本的执行结果和本地执行不一致的情况。具体如下: 以gmond的为例: 在被监控主机上执行gmond的监控脚本 显示结果为OK - Gmond is running. 在nagios server上面,通过nrpe调用 ./check_nrpe -H 192.168.181.13 -c mycheck_gmond 结果为
2016-04-25 11:06:09 2287 1
原创 设置tomcat允许软链接
客户提出的需求是,我们应用的配置文件,必须放到指定的目录下。 本来配置文件放在应用的conf文件下,要调整到/apps/conf目录下。 自然想到的是做一个软链接,链接到/apps/conf目录下。 但程序无法正常运行。而且也没有错误抛出。原来tomcat默认是禁止软链接的,在网上搜到,说是context.xml 中添加: allowLinking="true" 添加了,但没有作用。原来是
2016-04-15 11:26:02 5821
原创 The attribute locations is undefined for the annotation type ContextConfiguration
程序中有这么一块代码: */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "/conf/spring/*.xml" }) public class SearchConsumptionInDayImplTest extends BaseJunit报错: The attribute locati
2016-04-14 10:58:38 2902
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人