------=_Part_5384_2131031.1200679489809
Content-Type: text/plain; charset=WINDOWS-1252
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi folks, could someone help with nagios + ndoutil. I'm having a hard time
to sync nagios to dump its information throught ndo to a mysql database.
The scenerio is as follow:
Nagios installation is not a problem, I set up and it works fine with the
default value. ( Nagios 2.10).
Install every thing obsvialy , Mysql 5.0 and client , Apache2 & PHP5.
Now when comes down to install ndoutils-1.4b7, problems start to popup.
Obs: installing ndoutils-1.4b7 its not a problem but, writing to data sink
it is ( THE PROBLEM)
1 =96 Out put from ./configure ( Parts that have "no" while running the
command ) :
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking limits.h presence... yes
checking for limits.h... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking math.h usability... yes
checking math.h presence... yes
checking signal.h presence... yes
checking for signal.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... yes
checking for strdup... yes
checking for strstr... yes
checking for compress in -lz... yes
checking for mysql_store_result in -lmysqlclient... yes
checking for mysql_connect in -lmysqlclient... no
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
MySQL library and include file(s) were found!
checking for PQconnectdb in -lpq... no
No problems while executing " MAKE"
I followed as the README doc recommends inside the ndoutils-1.4b7.
Copied all the files to the its right places as well as the database,
create user and granted the permissions and password.
I ran the command ./installdb ( No problems).
I change the proper parameter in ndo2db.cfg ( user and password)
I execute the command :
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Output from ls =96la (inside the directory)
xxxxx:/usr/local/nagios/var# ls -la
total 224
drwxrwsr-x 5 nagios nagios 4096 2008-01-18 15:15 .
drwxrwsr-x 8 nagios nagios 4096 2008-01-17 17:34 ..
drwxrwsr-x 2 nagios nagios 4096 2008-01-18 00:00 archives
-rw-r--r-- 1 nagios nagios 6 2008-01-18 12:39 nagios.lock
-rw-rw-r-- 1 nagios nagios 148605 2008-01-18 15:15 nagios.log
srwxrwxrwx 1 nagios nagios 0 2008-01-18 12:38 ndo.sock
-rw-r--r-- 1 nagios nagios 12943 2008-01-18 12:39 objects.cache
-rw------- 1 nagios nagios 14010 2008-01-18 14:39 retention.dat
drwxrwsr-x 2 nagios nagios 4096 2008-01-18 12:39 rw
drwxrwsr-x 3 nagios nagios 4096 2008-01-17 17:34 spool
-rw-rw-r-- 1 nagios nagios 14061 2008-01-18 15:15 status.dat
Every thing starts fine BUT=85=85=85
That's the output, I got from nagios.log
[1200676718] ndomod: Error writing to data sink! Some output may get
lost...
[1200676734] ndomod: Successfully reconnected to data sink! 0 items lost,
87 queued items to flush.
[1200676734] ndomod: Successfully flushed 87 queued items to data sink.
[1200676734] ndomod: Error writing to data sink! Some output may get
lost...
[1200676750] ndomod: Successfully reconnected to data sink! 0 items lost,
74 queued items to flush.
[1200676750] ndomod: Successfully flushed 74 queued items to data sink.
[1200676750] ndomod: Error writing to data sink! Some output may get
lost...
[1200676766] ndomod: Successfully reconnected to data sink! 0 items lost,
78 queued items to flush.
[1200676766] ndomod: Successfully flushed 78 queued items to data sink.
[1200676766] ndomod: Error w
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]