Hi (again)!
I have tried to google the solution, but so far without access.
Nagios 3.2.0 Core
NDOUtils 1.4b9 installed
Debian 5.0
So far tested, that I am able to login to mysql with nagios-user and run queries:
debnagios:/usr/local/nagios/etc# mysql -u nagios -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 118
Server version: 5.0.51a-24+lenny2 (Debian)
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql> SELECT * FROM nagios.nagios_conninfo;
Empty set (0.00 sec)
mysql> show full processlist\G
*************************** 1. row ***************************
Id: 118
User: nagios
Host: localhost
db: NULL
Command: Query
Time: 0
State: NULL
Info: show full processlist
1 row in set (0.00 sec)
mysql>
I have correct username and passwd in ndo2db.cfg
I have started ndomod (successfully?)
/usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
(this does not write to any log anything? no errors, no success)
and checked it runs:
debnagios:/usr/local/nagios/etc# ps -ef |grep ndo
nagios 12832 1 0 20:50 ? 00:00:00 /usr/local/nagios/bin/ndo2db-3x -c /usr/local/nagios/etc/ndo2db.cfg
I have started nagios:
/etc/init.d/nagios start
and it fails with data sink:
Jan 3 20:51:25 debnagios nagios: Nagios 3.2.0 starting… (PID=12845)
Jan 3 20:51:25 debnagios nagios: Local time is Sun Jan 03 20:51:25 EET 2010
Jan 3 20:51:25 debnagios nagios: LOG VERSION: 2.0
Jan 3 20:51:25 debnagios nagios: ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright © 2009 Nagios Core Development Team and Community Contributors
Jan 3 20:51:25 debnagios nagios: ndomod: Could not open data sink! I’ll keep trying, but some output may get lost…
Jan 3 20:51:25 debnagios nagios: Event broker module ‘/usr/local/nagios/bin/ndomod-3x.o’ initialized successfully.
Jan 3 20:51:25 debnagios nagios: Finished daemonizing… (New PID=12846)
nothing comes to DB
I have tried to change configuration to tcp socket and back to unix socket without difference.
Any ideas, how to solve the problem?