错误内容①:
[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
原文地址:http://kongzi68.blog.51cto.com/1432619/1635975