码迷,mamicode.com
首页 > 其他好文 > 详细

ndomod: Could not open data sink! I'll keep trying, but some output may get lost

时间:2015-04-20 19:18:49      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:cacti   nagios   npc   

错误内容①:

[1429500851] ndomod: Could not open data sink!  I‘ll keep trying, but some output may get lost...

[1429500851] ndomod registered for contact data‘

[1429500851] ndomod registered for contact notification data‘

[1429500851] Event broker module ‘/usr/local/nagios/bin/ndomod.o‘ initialized successfully.

-------------------

错误原因:貌似库cacti没有授权用户cacti@localhost

mysql> use mysql;

mysql> select user,host from user where user=‘cacti‘;

mysql> grant all on cacti.* to cacti@localhost identified by ‘123456‘ ; flush privileges;

mysql> select user,host from user where user=‘cacti‘;

+-------+-----------+

| user  | host      |

+-------+-----------+

| cacti | %         |

| cacti | localhost |

+-------+-----------+

2 rows in set (0.00 sec)

--------------------

按照上面的方法处理之后,还是报错,通过下面的命令,修改一下权限,ok了。

错误原因:cp的两个配置文件权限不对。

[root@kongxl nagios]# chown -R nagios:nagios  /usr/local/nagios/


本文出自 “上山路十八弯” 博客,请务必保留此出处http://kongzi68.blog.51cto.com/1432619/1635975

ndomod: Could not open data sink! I'll keep trying, but some output may get lost

标签:cacti   nagios   npc   

原文地址:http://kongzi68.blog.51cto.com/1432619/1635975

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!