NPC2.0 and ndoutils ERROR, Still unable to connect to data s

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
lewise.liu
Posts: 4
Joined: Sat Mar 29, 2008 1:36 am

NPC2.0 and ndoutils ERROR, Still unable to connect to data s

Post by lewise.liu »

hi guys
Recently I have been busy in deploying the cacti+nagios monitor system.But at npc 2.0 model,I meet a odd error:
[1215233124] ndomod: Still unable to connect to data sink. 2297621 items lost, 5000 queued items to flush.(in nagios.log).
Cacti can works well ,and nagios can works normally also.But the NPC web is blank and has none data on the hosts and services.
At the same time ,I find the table Nagios_hosts and Nagios_services have rows. which is so odd.
The upper error happen after I deployed the ndomon and ndo2db to nagios.
My deploying version be as below:
Cacti 0.8.7b
Cacti Plugin Architecture v2.0
NPC 2.0
ndoutils-1.4b7
php 5.2
mysql 5.0
nagios-3.0
Perhaps somethings is wrong with the ndoutils.But I have reinstalled and deployed the ndoutils for 3 times. The problem exists also.
The problem has suffer me for one weeks.
Any suggest and help is appreciated.
edgalura
Posts: 14
Joined: Fri Jun 06, 2008 3:23 pm

Post by edgalura »

Hi Lewise,

We have the same problem.
I've been struggling to fix this problem for at least a week or more.
But after reading all the post and trying the suggestion of all members, I manage to hit what solution matches the most to my case.

you need to delete the ndo. sock in the var directory of nagios
execute this command for the ndo2db daemon

/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg

then restart the nagios service.

Once you restarted the nagios service and list again the var directory of nagios you will notice no ndo.sock file exist.


Note:
*you will need to install the php5-json and php5-pdo since I notice you don't have that package installed on your machine.
*created the ndo2db as a root user (that might be the solution as I notice some poster resolve this problem that way)
*configure your npc plugin for "tcp" - follow the WIKI

HTH

Good luck mate. Cheers!!!

@padawan

Thanks for posting your solution...
:P
Last edited by edgalura on Sun Jul 06, 2008 9:49 am, edited 1 time in total.
lewise.liu
Posts: 4
Joined: Sat Mar 29, 2008 1:36 am

Post by lewise.liu »

Dear edgalura
I have attemp to change the configure according to your suggues. such as ,
install the pdo and json modules.config the ndo2db transfer type from unixsock to sock.run ndo2db with user root and group root.
But the upper error exits also in my nagios.log .
Can you give some more suggests, and any is benifit.
thanks
edgalura
Posts: 14
Joined: Fri Jun 06, 2008 3:23 pm

Post by edgalura »

@Lewise

My recommendation is to read and follow the instruction posted on the WIKI board for NPC plugins.
Once you manage to install and configure the ndoutils. check the logs to see if you still experience this problem " Still unable to connect to data sink."

Please be guided that I configured my ndo2db as a tcpsocket, not the unix one.

HTH
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests