Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


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

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
lewise.liu



Joined: 29 Mar 2008
Posts: 4

PostPosted: Sat Jul 05, 2008 12:16 am    Post subject: NPC2.0 and ndoutils ERROR, Still unable to connect to data s Reply with quote

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.
Back to top
edgalura



Joined: 06 Jun 2008
Posts: 11

PostPosted: Sun Jul 06, 2008 2:19 am    Post subject: Reply with quote

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...


Last edited by edgalura on Sun Jul 06, 2008 9:49 am; edited 1 time in total
Back to top
lewise.liu



Joined: 29 Mar 2008
Posts: 4

PostPosted: Sun Jul 06, 2008 9:28 am    Post subject: Reply with quote

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
Back to top
edgalura



Joined: 06 Jun 2008
Posts: 11

PostPosted: Sun Jul 06, 2008 9:49 am    Post subject: Reply with quote

@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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group