ndo2db again

Jorg.Schulz at systeam.se Jorg.Schulz at systeam.se
Wed Feb 14 13:35:10 CET 2007



 

 
Hi there. Sorry to spam the list but thought I'd send one last plea
for help debugging an installation of nagios and ndoutils that simply
refuses to log to mysql.

I have tried both tcp sockets and unix domain sockets with the same
results:

[1171382416] Nagios 2.7 starting... (PID=14030)
[1171382416] LOG VERSION: 2.0
[1171382416] ndomod: NDOMOD 1.31 Copyright (c) 2005-2007 Ethan Galstad
(nagios at nagios.org)
[1171382416] ndomod: Could not open data sink!  I'll keep trying, but
some output may get lost...
[1171382416] Event broker module '/usr/lib/nagios/ndomod.o'
initialized successfully.
[1171382416] Finished daemonizing... (New PID=14031)


I have verified that the ndo2db daemon will accept connections from
log2ndo using the same credentials in the ndomod.cfg file.

I have set the permissions of all related files to match the user and
group nagios.

I have tried using 1.31 and 1.42b with the exact same results.

Can anyone suggest a way to further debug the ndomod.o module to see
exactly why it's failing to connect?

Thanks in advance,
Marek
Hi 

What does ps -ef says : ?
nagios   16768   758  0 13:10 ?        00:00:00
/usr/local/nagios/bin/ndo2db-2x -c /usr/local/nagios/etc/ndo2db.cfg

ndo2db.cfg 
(/usr/local/nagios/etc)

	ndo2db_user=nagios
	ndo2db_group=nagios
	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=************
	db_pass=***************
	max_timedevents_age=1440
	max_systemcommands_age=10080
	max_servicechecks_age=10080
	max_hostchecks_age=10080
	max_eventhandlers_age=44640
ndomod.cfg 
	(/usr/local/nagios/etc)

	instance_name=default
	output_type=tcpsocket
	output=127.0.0.1
	tcp_port=5668
	output_buffer_items=5000
	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=3


Maybe a hint??

With this config it works fine for me...


/Jörg

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date:
2007-02-12 13:23
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date:
2007-02-12 13:23
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list