Hi Fulton, =09
I have checked that and I can access the database : mysql -u nagios=
-p (no problem). Also the event broker is enabled with -1 (broker=
everything).
Thansks.
- Carlos Pereira (alex12)
-----------------------
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagios-de ... ttofaq_pi=
1[showUid]=3D8483
=09
> The first place I would look is to make sure that the username=
and password you
> are using to connect to mysql are correct. Try connecting with=
the command
> line client using them. If that works, check that your event brokering=
is
> enabled (broker everything).
>=20
>=20
> David Fulton
> Systems Administrator
> NuVox Communications
> O:407-835-0470
> C:321-246-2238
> "Because Business is on the Line"
>=20
>=20
>=20
>=20
> ________________________________
>=20
> From: [email protected]
> [mailto:[email protected]] On Behalf=
Of Carlos
> Pereira
> Sent: Friday, January 18, 2008 1:24 PM
> To: [email protected]
> Subject: [Nagios-devel] Nagios 2.10 + ndoutils-1.4b7
>=20
>=20
>=20
> 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.
>=20
>=20
>=20
> The scenerio is as follow:
>=20
>=20
>=20
> Nagios installation is not a problem, I set up and it works fine=
with the
> default value. ( Nagios 2.10).
>=20
> Install everything , Mysql 5.0 and client , Apache2 & PHP5.
>=20
>=20
>=20
> Now when comes down to install ndoutils-1.4b7, problems start=
to popup.
>=20
> Obs: installing its not a problem but, writing to data sink it=
is ( THE
> PROBLEM)
>=20
>=20
>=20
> 1 - Out put from ./configure ( Parts that have "no" while running=
command the
> problems ( I think ) ) :
>=20
>=20
>=20
> checking for C compiler default output file name... a.out
>=20
> checking whether the C compiler works... yes
>=20
> checking whether we are cross compiling... no
>=20
> checking for suffix of executables...
>=20
> checking for suffix of object files... o
>=20
>=20
>=20
>=20
>=20
> checking limits.h presence... yes
>=20
> checking for limits.h... yes
>=20
> checking ltdl.h usability... no
>=20
> checking ltdl.h presence... no
>=20
> checking for ltdl.h... no
>=20
> checking math.h usability... yes
>=20
> checking math.h presence... yes
>=20
>=20
>=20
>=20
>=20
> checking signal.h presence... yes
>=20
> checking for signal.h... yes
>=20
> checking socket.h usability... no
>=20
> checking socket.h presence... no
>=20
> checking for socket.h... no
>=20
> checking stdarg.h usability... yes
>=20
> checking stdarg.h presence... yes
>=20
>=20
>=20
>=20
>=20
> checking for main in -lnsl... yes
>=20
> checking for socket in -lsocket... no
>=20
> checking for main in -lwrap... yes
>=20
> checking for strdup... yes
>=20
> checking for strstr... yes
>=20
>=20
>=20
> checking for compress in -lz... yes
>=20
> checking for mysql_store_result in -lmysqlclient... yes
>=20
> checking for mysql_connect in -lmysqlclient... no
>=20
> checking mysql/mysql.h usability... yes
>=20
> checking mysql/mysql.h presence... yes
>=20
> checking for mysql/mysql.h... yes
>=20
> MySQL library and include file(s) were found!
>=20
> checking for PQconnectdb in -lpq... no
>=20
>=20
>=20
>=20
>=20
>=20
>=20
> No problems while executing " MAKE"
>=20
>=20
>=20
> Followed as the README doc recommends inside the ndoutils-1.4b7.
>=20
> Copied all the files to the right places as well as the database,=
create users
> grant permission and create the password.
>=20
>=20
>=20
> I ran the command ./installdb ( No problems).
>=20
>=20
>=20
> I change the proper parameter on ndo2db.cfg ( user and password)
>=20
>=20
>=20
> I execute the command :
>=20
> /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
>=20
>=20
>=20
>=20
>=20
> Output from ls -la (inside the directory)
>=20
>=20
>=20
> xxxxx:/usr/local/nagios/var# ls -la
>=20
> total 224
>=20
> drwxrwsr-x 5 nagios nagios 4096 2008-01-18 15:15 .
>=20
> drwxrwsr-x 8 nagios nagios 4096 2
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]