Friday, September 3rd 2010, 11:11am UTC+2

You are not logged in.

  • Login
  • Register

marius

Beginner

Posts: 5

Number of Nagios server: 1

Nagios Versions: 3

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 115

Number of services: 280

OS: Windows, Linux

Plugin Versions: neuste

NDO Version: 1

1

Wednesday, June 24th 2009, 1:04pm

Error writing to data sink! Some output may get lost. 49449 queued items to flush. / Alles probiert :(

Hallo zusammen,

Fehler siehe Überschrift. Ich habe jerzt schon alles probiert, zu was hier so geraten wird.

- ndoutils neu installiert / kompiliert (explizit mit mysql-support)
- Datenbank neu erstellt, sogar MySQL neu installiert
- Datenbanksrechte überprüft
- Die Tabellen von InnoDB auf MyISAM umgestellt
- broker-option auf diverse Werte gestellt
- von Socket auf TCP umgestellt und wieder zurück
- Rechte aller möglichen Dateien überprüft

Ich weiss einfach nicht mehr weiter, wenn ich ndo2db starte, erscheint eine Instanz. Wenn ich dann aber Nagios starte, bleibt es dabei und meine Log sagt:

Quoted

Jun 24 13:05:04 eevs16 nagios: Nagios 3.0.6 starting... (PID=13211)
Jun 24 13:05:04 eevs16 nagios: Local time is Wed Jun 24 13:05:04 CEST 2009
Jun 24 13:05:04 eevs16 nagios: LOG VERSION: 2.0
Jun 24 13:05:04 eevs16 nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios@nagios.org)
Jun 24 13:05:04 eevs16 nagios: ndomod: Successfully connected to data sink. 50000 queued items to flush.
Jun 24 13:05:04 eevs16 nagios: ndomod: Error writing to data sink! Some output may get lost. 49546 queued items to flush.
Jun 24 13:05:04 eevs16 nagios: Event broker module '/usr/local/nagios/ndo/ndomod.o' initialized successfully.
Jun 24 13:05:04 eevs16 nagios: Finished daemonizing... (New PID=13213)
Jun 24 13:05:04 eevs16 nagios: HOST DOWNTIME ALERT: switch171;STARTED; Host has entered a period of scheduled downtime
Jun 24 13:05:04 eevs16 nagios: SERVICE DOWNTIME ALERT: switch171;PING;STARTED; Service has entered a period of scheduled downtime
Jun 24 13:05:22 eevs16 nagios: ndomod: Successfully reconnected to data sink! 130 items lost, 50000 queued items to flush.
Jun 24 13:05:22 eevs16 nagios: ndomod: Error writing to data sink! Some output may get lost. 49449 queued items to flush.
Jun 24 13:05:40 eevs16 nagios: ndomod: Successfully reconnected to data sink! 0 items lost, 49522 queued items to flush.
Jun 24 13:05:40 eevs16 nagios: ndomod: Error writing to data sink! Some output may get lost. 49173 queued items to flush.
Jun 24 13:05:58 eevs16 nagios: ndomod: Successfully reconnected to data sink! 0 items lost, 49228 queued items to flush.

Habt ihr noch eine Idee, was ich machen kann?

dnsmichi

Professional

Posts: 1,099

Birthday: May 30th 1983 (27)

Gender: male

Location: Wien

Occupation: DNS Developer / Monitoring-Admin

Number of Nagios server: 3

Nagios Versions: 3.0.3

Icinga-Version(en): 1.0.3 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 100-200

Number of services: 1000-2000

OS: RHEL 5.5 x64

Plugin Versions: 1.4.14

NDO Version: 1.4b7 Oracle

IDO-Version: 1.0.3 / GIT MySQL/Postgresql/Oracle

2

Wednesday, June 24th 2009, 3:52pm

folgendes, auch fuer zukuneftige postings:

allgemeines:

* welches os sowie uname -a

* ndo-version explizit angeben (nagios version ebenfalls)

* wie wurde installiert und was genau?
- apt/yum/yast ODER configure , make, (make install)
- eventuell vorhandene outputs/fehlermeldungen
- welcher installationsguide wurde ggf verwendet?

* falls selbst kompiliert wurde, den ./configure output inkl verwendetem aufruf

* komplette version ohne kommentare der ndomod.cfg / ndo2db.cfg (passwoerter maskieren!)

* wie wurde die nagios/ndo db installiert? (mysql-befehle, welche GRANTs, CREATEs, etc)


debug-outputs:

* wie wird gestartet (zuerst ndo, dann nagios?)

Source code

1
ps aux | grep nagios


* welche user gibts im system?

Source code

1
2
cat /etc/passwd | grep nag
cat /etc/group | grep nag


* dateiberechtigungen

Source code

1
2
ls -la /path/to/nagios/bin/ (oder wo die ndo liegt)
ls -la /path/to/nagios/etc/


* ndo2db.debug

*

Source code

1
 less /var/log/messages | grep ndo


* welche mysql-pakete sind installiert (dpkg -l *mysql* / rpm -qa *mysql*)

* was sagt ein

Source code

1
find /usr/lib | grep mysql


* was sagt ein

Source code

1
netstat -an | grep 3306


vielleicht kann man das ja uebernehmen und sticky machen, schoen langsam wirds a bisserl muehsam, immer nachzufragen ;)
Icinga 1.0.3 & Web 1.0.3 using Icinga IDOUtils MySQL,PGSQL,Oracle

Icinga vs. Nagios Webcast: http://bit.ly/coYcr2

Icinga Docs: http://docs.icinga.org

Report bugs/Feature requests: http://bit.ly/bEhso6

* egrep -v "^#|^$" configfile
* check https://dev.icinga.org

Join us online!
irc.freenode.net #icinga #icinga-devel

--
Nagios NDOUtils Problems? Try Icinga IDOUtils :-)

marius

Beginner

Posts: 5

Number of Nagios server: 1

Nagios Versions: 3

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 115

Number of services: 280

OS: Windows, Linux

Plugin Versions: neuste

NDO Version: 1

3

Thursday, June 25th 2009, 9:40am

folgendes, auch fuer zukuneftige postings:

allgemeines:

* welches os sowie uname -a


Ubuntu 8.04 LTS -> Linux eevs16 2.6.24-23-server #1 SMP Wed Apr 1 22:22:14 UTC 2009 i686 GNU/Linux


* ndo-version explizit angeben (nagios version ebenfalls)


NDO: 1.4b7
Nagios: 3.0.6
Plugins: 1.4.13


* wie wurde installiert und was genau?
- apt/yum/yast ODER configure , make, (make install)
- eventuell vorhandene outputs/fehlermeldungen
- welcher installationsguide wurde ggf verwendet?


Alles manuell kompiliert (conf, make, usw...)

Keine Fehlermeldungen bei den Outputs.

Anleítung: http://www.nagios-wiki.de/nagios/ndo/installation


* falls selbst kompiliert wurde, den ./configure output inkl verwendetem aufruf


Von was? Nagios oder NDO?


* komplette version ohne kommentare der ndomod.cfg / ndo2db.cfg (passwoerter maskieren!)


Quoted


instance_name=default


#output_type=file
output_type=tcpsocket
#output_type=unixsocket

output=10.60.109.216
#output=/usr/local/nagios/var/ndo.sock

tcp_port=5668

output_buffer_items=50000

buffer_file=/usr/local/nagios/var/ndomod.tmp

file_rotation_interval=14400

file_rotation_timeout=60

reconnect_interval=15

reconnect_warning_interval=15

data_processing_options=-1


config_output_options=2



Quoted


ndo2db_user=nagios
ndo2db_group=nagios


#socket_type=unix
socket_type=tcp


#socket_name=/usr/local/nagios/var/ndo.sock



tcp_port=5668

db_servertype=mysql

db_host=localhost

db_port=3306


db_name=nagios

db_prefix=nagios_


db_user=nagios
db_pass=


max_timedevents_age=1440


max_systemcommands_age=10080

max_servicechecks_age=10080

max_hostchecks_age=10080

max_eventhandlers_age=44640


debug_level=2

debug_verbosity=2

#debug_file=@localstatedir@/ndo2db.debug
debug_file=/var/log/ndo2db.log

max_debug_file_size=1000000



* wie wurde die nagios/ndo db installiert? (mysql-befehle, welche GRANTs, CREATEs, etc)


Siehe oben, nach der Anleitung.


debug-outputs:

* wie wird gestartet (zuerst ndo, dann nagios?)

Source code

1
ps aux | grep nagios



Ja, zuerst NDO dann Nagios.

Quoted

nagios 12012 0.3 0.4 14480 4504 ? Ssl 16:33 0:10 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 13203 0.0 0.0 4448 352 ? Ss 13:04 0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 27506 0.0 0.3 14484 3852 ? S 17:26 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

(Ich habe mal die weiteren Instanzen weggelassen, wo grade irgendwelche Komponenten gecheckt werden...)


* welche user gibts im system?

Source code

1
2
cat /etc/passwd | grep nag
cat /etc/group | grep nag



Quoted

nagios:x:1001:1001:,,,:/home/nagios:/bin/bash



* dateiberechtigungen

Source code

1
2
ls -la /path/to/nagios/bin/ (oder wo die ndo liegt)
ls -la /path/to/nagios/etc/



Quoted


-rwxr-xr-x 1 nagios nagios 32314 2009-06-23 15:08 file2sock
-rwxr-xr-x 1 nagios nagios 33846 2009-06-23 15:08 log2ndo
-rwxrwxr-- 1 nagios nagios 578120 2009-06-19 13:50 nagios
-rwxrwxr-- 1 nagios nagios 43100 2009-06-19 13:50 nagiostats
-rwxr-xr-x 1 nagios nagios 198223 2009-06-23 13:50 ndo2db



* ndo2db.debug


Die ist komischerweise bei mir leer (habe sie ja auf /var/log/ndo2db.log umgebogen).


*

Source code

1
 less /var/log/messages | grep ndo



Das willst du gar nicht alles lesen. Im Prinzip am Anfang immer:

Quoted

Jun 24 14:22:34 eevs16 nagios: Event broker module '/usr/local/nagios/ndo/ndomod.o' deinitialized successfully.
Jun 24 14:22:35 eevs16 nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios@nagios.org)
Jun 24 14:22:35 eevs16 nagios: ndomod: Successfully connected to data sink. 8 queued items to flush.
Jun 24 14:22:35 eevs16 nagios: ndomod: Successfully flushed 8 queued items to data sink.
Jun 24 14:22:35 eevs16 nagios: Event broker module '/usr/local/nagios/ndo/ndomod.o' initialized successfully.
Jun 24 14:22:35 eevs16 nagios: ndomod: Error writing to data sink! Some output may get lost...
Jun 24 14:22:53 eevs16 nagios: ndomod: Successfully reconnected to data sink! 0 items lost, 325 queued items to flush.


Die letzte und vorletzte Zeile wiederholt sich dann halt immer bis in alle Ewigkeit.


* welche mysql-pakete sind installiert (dpkg -l *mysql* / rpm -qa *mysql*)


Huch:

Quoted

root@eevs16:~# dpkg -l *mysql*
Kein Paket gefunden, das auf mysql-devel-5.0.26 passt.
Kein Paket gefunden, das auf mysql-devel-5.0.26-12.16.x86_64.patch.rpm passt.


Ist das schlimm? Ich habe die devel-Pakete definitiv installiert. Zuerst ging die NDO-Installation nämlich wegen fehlender Devel-Pakete nicht, erst nachdem ich sie nachinstalliert hatte.


* was sagt ein

Source code

1
find /usr/lib | grep mysql



Das sagt:

Quoted

/usr/lib/libmysqlclient.la
/usr/lib/php5/20060613+lfs/pdo_mysql.so
/usr/lib/php5/20060613+lfs/mysql.so
/usr/lib/php5/20060613+lfs/mysqli.so
/usr/lib/libmysqlclient_r.la
/usr/lib/libmysqlclient.so.15.0.0
/usr/lib/libmysqlclient_r.so.15.0.0
/usr/lib/libmysqlclient.a
/usr/lib/libmysqlclient.so
/usr/lib/perl5/auto/DBD/mysql
/usr/lib/perl5/auto/DBD/mysql/mysql.bs
/usr/lib/perl5/auto/DBD/mysql/mysql.so
/usr/lib/perl5/DBD/mysql.pm
/usr/lib/perl5/DBD/mysql
/usr/lib/perl5/DBD/mysql/INSTALL.pod
/usr/lib/perl5/DBD/mysql/GetInfo.pm
/usr/lib/perl5/Bundle/DBD/mysql.pm
/usr/lib/libmysqlclient_r.a
/usr/lib/libmysqlclient_r.so.15
/usr/lib/libmysqlclient_r.so
/usr/lib/libmysqlclient.so.15
/usr/lib/mysql
/usr/lib/mysql/libndbclient.so
/usr/lib/mysql/libdbug.a
/usr/lib/mysql/libmysqld.a
/usr/lib/mysql/libndbclient.so.2.0.0
/usr/lib/mysql/libmysys.a
/usr/lib/mysql/libndbclient.so.2
/usr/lib/mysql/libmyisammrg.a
/usr/lib/mysql/libheap.a
/usr/lib/mysql/libmyisam.a
/usr/lib/mysql/libndbclient.la
/usr/lib/mysql/libmystrings.a
/usr/lib/mysql/libndbclient.a
/usr/lib/mysql/libvio.a



* was sagt ein

Source code

1
netstat -an | grep 3306



Sagt:

Quoted

tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN


vielleicht kann man das ja uebernehmen und sticky machen, schoen langsam wirds a bisserl muehsam, immer nachzufragen ;)


Fänd' ich gut, ich hab mir halt die in meinem ersten Post erwähnten Schritte durch durchwühlen alter Threads zusammengesucht.

Grüße

This post has been edited 1 times, last edit by "marius" (Jun 25th 2009, 10:39am)


dnsmichi

Professional

Posts: 1,099

Birthday: May 30th 1983 (27)

Gender: male

Location: Wien

Occupation: DNS Developer / Monitoring-Admin

Number of Nagios server: 3

Nagios Versions: 3.0.3

Icinga-Version(en): 1.0.3 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 100-200

Number of services: 1000-2000

OS: RHEL 5.5 x64

Plugin Versions: 1.4.14

NDO Version: 1.4b7 Oracle

IDO-Version: 1.0.3 / GIT MySQL/Postgresql/Oracle

4

Thursday, June 25th 2009, 11:32am

Von was? Nagios oder NDO?


NDO. Nagios laeuft ja, und da die NDOMOD geladen wird, ist das nicht von Bedeutung.


Source code

1
2
3
4
5
6
7
8
#output_type=file
output_type=tcpsocket
#output_type=unixsocket

output=10.60.109.216
#output=/usr/local/nagios/var/ndo.sock

tcp_port=5668



verstehei ch das richtig, dass du die ndo via tcp socket auf einen anderen host schreiben laesst, wo die ndo2db laeuft und das in die db schreibt?
dh ein host = nagios + ndomod
zweiter host ndo2db + mysql

falls dus auf dem gleichen host machst, wuerde ich dir empfehlen, das auf unix sockets umzulegen und ggf die DB extern zu legen.


Source code

1
2
3
nagios   12012  0.3  0.4  14480  4504 ?        Ssl  16:33   0:10 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   13203  0.0  0.0   4448   352 ?        Ss   13:04   0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   27506  0.0  0.3  14484  3852 ?        S    17:26   0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg



hm, 2 nagios prozesse. aber sollte ned stoeren. was mich merh stoert, dass die ndo2db von sich selbst keinen child forked nachdem nagios gestartet wurde.

aber das liegt vermutlich daran, dass wie oben angesprochen kein verteilter service stattfindet mit 2 hosts die ueber tcp sockets kommunizieren. da frag ich mich dann wieso du ned ueber unix socket per default faehrst bei dem system.


Die ist komischerweise bei mir leer (habe sie ja auf /var/log/ndo2db.log umgebogen).


duerften per default falsche dateiberechtigungen sein.



Source code

1
2
3
4
5
6
7
Jun 24 14:22:34 eevs16 nagios: Event broker module '/usr/local/nagios/ndo/ndomod.o' deinitialized successfully.
Jun 24 14:22:35 eevs16 nagios: ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad ([email]nagios@nagios.org[/email])
Jun 24 14:22:35 eevs16 nagios: ndomod: Successfully connected to data sink.  8 queued items to flush.
Jun 24 14:22:35 eevs16 nagios: ndomod: Successfully flushed 8 queued items to data sink.
Jun 24 14:22:35 eevs16 nagios: Event broker module '/usr/local/nagios/ndo/ndomod.o' initialized successfully.
Jun 24 14:22:35 eevs16 nagios: ndomod: Error writing to data sink!  Some output may get lost...
Jun 24 14:22:53 eevs16 nagios: ndomod: Successfully reconnected to data sink!  0 items lost, 325 queued items to flush.


Die letzte und vorletzte Zeile wiederholt sich dann halt immer bis in alle Ewigkeit.


hm, ok, also eh das uebliche.




Huch:

Source code

1
2
3
root@eevs16:~# dpkg -l *mysql*
Kein Paket gefunden, das auf mysql-devel-5.0.26 passt.
Kein Paket gefunden, das auf mysql-devel-5.0.26-12.16.x86_64.patch.rpm passt.


Ist das schlimm? Ich habe die devel-Pakete definitiv installiert. Zuerst ging die NDO-Installation nämlich wegen fehlender Devel-Pakete nicht, erst nachdem ich sie nachinstalliert hatte.



sonst gibts da keinen output?!? vor allem das .rpm stoert mich ein wenig... wie hast du das "nachinstalliert"=
Icinga 1.0.3 & Web 1.0.3 using Icinga IDOUtils MySQL,PGSQL,Oracle

Icinga vs. Nagios Webcast: http://bit.ly/coYcr2

Icinga Docs: http://docs.icinga.org

Report bugs/Feature requests: http://bit.ly/bEhso6

* egrep -v "^#|^$" configfile
* check https://dev.icinga.org

Join us online!
irc.freenode.net #icinga #icinga-devel

--
Nagios NDOUtils Problems? Try Icinga IDOUtils :-)

marius

Beginner

Posts: 5

Number of Nagios server: 1

Nagios Versions: 3

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 115

Number of services: 280

OS: Windows, Linux

Plugin Versions: neuste

NDO Version: 1

5

Thursday, June 25th 2009, 1:45pm


NDO. Nagios laeuft ja, und da die NDOMOD geladen wird, ist das nicht von Bedeutung.


Quoted

checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
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 whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
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 for math.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... 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 stdarg.h... yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for sys/wait.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... no
checking tcpd.h presence... no
checking for tcpd.h... no
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... no
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for strtof... yes
checking for type of socket size... size_t
checking for linker flags for loadable modules... -shared
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


*** PostgreSQL library could not be located... *********************

You chose to compile NDBXT with PostgreSQL support, but I was
unable to locate the PostgreSQL library on your system. If the
library is installed, use the --with-pgsql-lib argument to specify
the location of the PostgreSQL library.

NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the PostgreSQL libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make devclean' in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.

********************************************************************


checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no


*** PostgreSQL include file could not be located... ****************

You chose to compile NDBXT with PostgreSQL support, but I was unable
to locate <libpq-fe.h> on your system. If the include file is
installed, use the --with-pgsql-inc argument to specify the location
of the PostgreSQL include file.

********************************************************************


configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating subst
config.status: creating include/config.h
config.status: include/config.h is unchanged


*** Configuration summary for ndoutils 1.4b7 10-31-2007 ***:

General Options:
-------------------------
NDO2DB user: nagios
NDO2DB group: nagios


Review the options above for accuracy. If they look okay,
type 'make' to compile the NDO utilities.


marius

Beginner

Posts: 5

Number of Nagios server: 1

Nagios Versions: 3

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 115

Number of services: 280

OS: Windows, Linux

Plugin Versions: neuste

NDO Version: 1

6

Thursday, June 25th 2009, 1:45pm

Teil 2 (da max. Länge überschritten):
################################################




Source code

1
2
3
4
5
6
7
8
#output_type=file
output_type=tcpsocket
#output_type=unixsocket

output=10.60.109.216
#output=/usr/local/nagios/var/ndo.sock

tcp_port=5668



verstehei ch das richtig, dass du die ndo via tcp socket auf einen anderen host schreiben laesst, wo die ndo2db laeuft und das in die db schreibt?
dh ein host = nagios + ndomod
zweiter host ndo2db + mysql


Oh. Nein, sorry. Alles selber Rechner. Ich habe nur mal testweise die IP eingetragen. 127.0.0.1 geht aber auch nicht.


falls dus auf dem gleichen host machst, wuerde ich dir empfehlen, das auf unix sockets umzulegen und ggf die DB extern zu legen.


Das wäre der nächste Schritt :)

Aber mit Hosts klappts überhaupt nicht, da bekomme ich dann ein "Could not connect to data sink" oder sowas, da versucht er nicht mal zu schreiben.
Das habe ich in einem anderen Thread bei wem anders auch gesehen, dem wurde geraten auf TCP umzusteigen....




Source code

1
2
3
nagios   12012  0.3  0.4  14480  4504 ?        Ssl  16:33   0:10 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   13203  0.0  0.0   4448   352 ?        Ss   13:04   0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   27506  0.0  0.3  14484  3852 ?        S    17:26   0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg



hm, 2 nagios prozesse. aber sollte ned stoeren. was mich merh stoert, dass die ndo2db von sich selbst keinen child forked nachdem nagios gestartet wurde.


Ja, eigentlich ein "Hauptprozess" und der zweite da ist noch Teil von 'nem Unterprozess der grade ein Check-Command durchführt... habe ich zu früh abgeschnitten :)



Die ist komischerweise bei mir leer (habe sie ja auf /var/log/ndo2db.log umgebogen).


duerften per default falsche dateiberechtigungen sein.


In der Tat! Habe es geändert. Aber er schreibt trotzdem nix rein, selbst wenn ich allen lesen+schreiben gebe.





sonst gibts da keinen output?!? vor allem das .rpm stoert mich ein wenig... wie hast du das "nachinstalliert"=


Einmal per apt-get install libmysqlclient15-dev und nachträglich auf anraten von jemand anders nochmal mit apt-get install libmysql++-dev.
Sonst kein Output.

PS: Danke für deine nette Hilfe bisher! :)

dnsmichi

Professional

Posts: 1,099

Birthday: May 30th 1983 (27)

Gender: male

Location: Wien

Occupation: DNS Developer / Monitoring-Admin

Number of Nagios server: 3

Nagios Versions: 3.0.3

Icinga-Version(en): 1.0.3 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 100-200

Number of services: 1000-2000

OS: RHEL 5.5 x64

Plugin Versions: 1.4.14

NDO Version: 1.4b7 Oracle

IDO-Version: 1.0.3 / GIT MySQL/Postgresql/Oracle

7

Thursday, June 25th 2009, 3:34pm

hm, also ich wuerde die ndomod + ndo2db auf einem host laufen lassen mit unix-sockets und nur eine remote db verwenden.

ad tcp-socket
schau mal nach ob da ueberhaupt ein listen auf der ip/localhost zustande kommt, mit netstat -an | grep 5668
bzw ob der port von etwas anderem blockiert wird.

ansonsten weiss ich jetzt grad nix, sorry.
Icinga 1.0.3 & Web 1.0.3 using Icinga IDOUtils MySQL,PGSQL,Oracle

Icinga vs. Nagios Webcast: http://bit.ly/coYcr2

Icinga Docs: http://docs.icinga.org

Report bugs/Feature requests: http://bit.ly/bEhso6

* egrep -v "^#|^$" configfile
* check https://dev.icinga.org

Join us online!
irc.freenode.net #icinga #icinga-devel

--
Nagios NDOUtils Problems? Try Icinga IDOUtils :-)

marius

Beginner

Posts: 5

Number of Nagios server: 1

Nagios Versions: 3

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 115

Number of services: 280

OS: Windows, Linux

Plugin Versions: neuste

NDO Version: 1

8

Thursday, June 25th 2009, 4:46pm

Ja, listen ist da.

Remote-DB geht grad nicht :(

Schade - hier tüfteln drei Leute seit 4 Tagen rum :(

9

Monday, September 28th 2009, 12:19pm

Hallo zusammen,

seid ihr bei dem Thema zu einer Lösung gekommen?



Ich habe bei mir Icinga 0.8.4 im Einsatz und es tritt das selbe Phänomen auf.

Quoted


netstat -an | grep 3306
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN

find /usr/lib | grep mysql
/usr/lib/perl5/auto/DBD/mysql
/usr/lib/perl5/auto/DBD/mysql/mysql.bs
/usr/lib/perl5/auto/DBD/mysql/mysql.so
/usr/lib/perl5/DBD/mysql
/usr/lib/perl5/DBD/mysql/GetInfo.pm
/usr/lib/perl5/DBD/mysql/INSTALL.pod
/usr/lib/perl5/DBD/mysql.pm
/usr/lib/perl5/Bundle/DBD/mysql.pm
/usr/lib/libmysqlclient_r.so.15
/usr/lib/mysql
/usr/lib/mysql/libndbclient.so.2.0.0
/usr/lib/mysql/libndbclient.la
/usr/lib/mysql/libndbclient.so.2
/usr/lib/mysql/libmysys.a
/usr/lib/mysql/libmyisam.a
/usr/lib/mysql/libdbug.a
/usr/lib/mysql/libmyisammrg.a
/usr/lib/mysql/libndbclient.a
/usr/lib/mysql/libndbclient.so
/usr/lib/mysql/libmysqld.a
/usr/lib/mysql/libheap.a
/usr/lib/mysql/libmystrings.a
/usr/lib/mysql/libvio.a
/usr/lib/libmysqlclient_r.la
/usr/lib/libmysqlclient_r.so
/usr/lib/libmysqlclient.so.15
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient_r.a
/usr/lib/libmysqlclient.a
/usr/lib/libmysqlclient_r.so.15.0.0
/usr/lib/libmysqlclient.so.15.0.0
/usr/lib/libmysqlclient.la
/usr/lib/dbd/libdbdmysql.la
/usr/lib/dbd/libdbdmysql.so

ls -al /etc/icinga/
-rw-rw-r-- 1 icinga icinga 4233 28. Sep 11:28 ido2db.cfg
-rw-rw-r-- 1 icinga icinga 4721 17. Sep 14:04 idomod.cfg

ls -al /usr/local/icinga/bin
-rwxrwxr-- 1 icinga icinga 379943 28. Sep 11:18 ido2db
-rwxrwxr-- 1 icinga icinga 146151 28. Sep 11:18 idomod.o

ps -aux |grep icinga
icinga 19900 0.0 0.0 31912 512 ? Ss 11:45 0:00 /usr/local/icinga/bin/ido2db -c /etc/icinga/ido2db.cfg
icinga 24065 0.2 0.0 31088 2328 ? Ssl 12:13 0:00 /usr/local/icinga/bin/icinga -d /etc/icinga/icinga.cfg
icinga 24121 0.0 0.0 31092 1672 ? S 12:14 0:00 /usr/local/icinga/bin/icinga -d /etc/icinga/icinga.cfg

cat /etc/passwd |grep icinga
icinga:x:9000:9000:Icinga Admin:/usr/local/icinga/:/bin/sh

cat /etc/group |grep icinga
icinga:x:9000:
icingacmd:x:9001:icinga

dnsmichi

Professional

Posts: 1,099

Birthday: May 30th 1983 (27)

Gender: male

Location: Wien

Occupation: DNS Developer / Monitoring-Admin

Number of Nagios server: 3

Nagios Versions: 3.0.3

Icinga-Version(en): 1.0.3 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 100-200

Number of services: 1000-2000

OS: RHEL 5.5 x64

Plugin Versions: 1.4.14

NDO Version: 1.4b7 Oracle

IDO-Version: 1.0.3 / GIT MySQL/Postgresql/Oracle

10

Monday, September 28th 2009, 9:25pm

wieso laeuft da der icinga daemon 2x?

bzw dreh den debug_level in der ido2db.cfg rauf, damit du merh im debugoutput siehst.
Icinga 1.0.3 & Web 1.0.3 using Icinga IDOUtils MySQL,PGSQL,Oracle

Icinga vs. Nagios Webcast: http://bit.ly/coYcr2

Icinga Docs: http://docs.icinga.org

Report bugs/Feature requests: http://bit.ly/bEhso6

* egrep -v "^#|^$" configfile
* check https://dev.icinga.org

Join us online!
irc.freenode.net #icinga #icinga-devel

--
Nagios NDOUtils Problems? Try Icinga IDOUtils :-)

11

Wednesday, September 30th 2009, 3:26pm

Hallo Michi,

vielen Dank für deine Antwort.

Ich habe jetzt folgende Änderungen durchgeführt:

/etc/icinga/ido2db.cfg
debug_level=1|2
debug_verbosity=2

Das Ergebnis sieht folgendermaßen aus:

Quoted


tail -f /var/icinga/*.log /var/icinga/*.debug

==> /var/icinga/icinga.log <==
[1254316901] idomod: Error writing to data sink! Some output may get lost...

==> /var/icinga/ido2db.debug <==
[1254316901.178766] [001.2] [pid=9214] ndo2db_parent_sighandler() start

==> /var/icinga/icinga.log <==
[1254316927] idomod: Successfully reconnected to data sink! 0 items lost, 270 queued items to flush.
[1254316927] idomod: Successfully flushed 270 queued items to data sink.
[1254316931] idomod: Error writing to data sink! Some output may get lost...


Gibt es noch weitere Möglichkeiten mehr Informationen zu erhalten, warum Icinga meint, das manche Daten verloren gegangen sein können?

Gruß,

Heyko

dnsmichi

Professional

Posts: 1,099

Birthday: May 30th 1983 (27)

Gender: male

Location: Wien

Occupation: DNS Developer / Monitoring-Admin

Number of Nagios server: 3

Nagios Versions: 3.0.3

Icinga-Version(en): 1.0.3 / GIT

Distributed monitoring: Ja

Redundant monitoring: Ja

Number of hosts: 100-200

Number of services: 1000-2000

OS: RHEL 5.5 x64

Plugin Versions: 1.4.14

NDO Version: 1.4b7 Oracle

IDO-Version: 1.0.3 / GIT MySQL/Postgresql/Oracle

12

Wednesday, September 30th 2009, 3:38pm

wenn der debuglevel auf everything (-1) sowie die verbosity auf 2 (very detailed) steht, dann poste mir doch bitte +- 10 sekunden aus dem ido2db.debug. soltlen darin sensitive daten enthalten sein, wahlweise auch per pm.

das was du herausgegrepped hast, stimtm btw ueberein, diese error wiriting to datasink fehlermeldungen resultieren daraus, dass der ido2db child gestorben ist und die idomod nicht mehr auf den sink schreiben kann. es wird kurze zeit spaeter erst wieder ein neuerlicher child geforked, der dann die abarbeitung (flush laut idomod) uebernimmt.
gruende dafuer koennte ein socketproblem sein, sowie zero bytes oder kaputte daten am socket.

poste mir zusaetzlich bitte mal deine ido2db.cfg und idomod.cfg ohne '#' und gecleantem dbpasswort.
Icinga 1.0.3 & Web 1.0.3 using Icinga IDOUtils MySQL,PGSQL,Oracle

Icinga vs. Nagios Webcast: http://bit.ly/coYcr2

Icinga Docs: http://docs.icinga.org

Report bugs/Feature requests: http://bit.ly/bEhso6

* egrep -v "^#|^$" configfile
* check https://dev.icinga.org

Join us online!
irc.freenode.net #icinga #icinga-devel

--
Nagios NDOUtils Problems? Try Icinga IDOUtils :-)

13

Wednesday, September 30th 2009, 4:59pm

hallo michi,

vielen dank für deine hilfe.

meine idomod.cfg

Source code

1
2
3
4
5
6
7
8
9
10
11
12
instance_name=default
output_type=unixsocket
output=/var/icinga/ido.sock
tcp_port=5668
output_buffer_items=5000
buffer_file=/var/icinga/ndomod.tmp
file_rotation_interval=14400
file_rotation_timeout=60
reconnect_interval=25
reconnect_warning_interval=15
data_processing_options=-1
config_output_options=2

und meine ido2db.cfg

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
lock_file=/var/icinga/ido2db.lock
ndo2db_user=icinga
ndo2db_group=icinga
socket_type=unix
socket_name=/var/icinga/ido.sock
tcp_port=5668
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=icinga
db_prefix=icinga_
db_user=icinga
db_pass=****
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640
max_externalcommands_age=44640
debug_level=-1
debug_verbosity=2
debug_file=/var/icinga/ido2db.debug
max_debug_file_size=1000000


und dazu ~10 sekunden aus dem ido2db.debug (im anhang)
heyko has attached the following file: