NPC / NDO2DB problem

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
thedavidfactor
Posts: 2
Joined: Fri Feb 12, 2010 5:14 pm

NPC / NDO2DB problem

Post by thedavidfactor »

I've read all the forum posts I can find and nothing's helped.

I can't get around these errors:
[1266013044] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1266013044] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
[1266013044] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.

I've got debug turned on and while a nd02db.debug file gets created, it's a zero length file.
I've tried both unix sockets and tcp sockets, here's the current config:
ndo2db.cfg

Code: Select all

lock_file=/usr/local/nagios/var/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/usr/local/nagios/var/ndo.sock
#tcp_port=5668
#use_ssl=0
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=cacti
db_user=xxx
db_pass=xxx
db_prefix=npc_

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
# Values: -1 = Everything
#          0 = Nothing
#          1 = Process info
#          2 = SQL queries

debug_level=1

# DEBUG VERBOSITY
# Values: 0 = Brief output
#         1 = More detailed
#         2 = Very detailed

debug_verbosity=1

debug_file=/usr/local/nagios/var/ndo2db.debug

max_debug_file_size=1000000
ndomod.cfg

Code: Select all

instance_name=default
output_type=unixsocket
output=/usr/local/nagios/var/ndo.sock
tcp_port=5668
#use_ssl=0

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 OPTION
# Values:
#         0 = Don't dump any configuration information
#         1 = Dump only original config (from config files)
#         2 = Dump config only after retained information has been restored
#         3 = Dump both original and retained configuration

config_output_options=2
Any help would be greatly appriciated!!!
mouses
Posts: 6
Joined: Tue Feb 16, 2010 9:54 pm

Post by mouses »

Which OS are you working on?

I ran into the same problem, running cacti and Nagios on Ubuntu. I finally got it like this:

* fetching the credentials not from include/global.php but from /etc/cacti/debian.php, as mentioned in include/config.php.

Worked for me.

now I'm wondering, why the data in the db idn't shown in npc, but thats another story :)
User avatar
coolzsb
Posts: 1
Joined: Sun Feb 21, 2010 8:49 pm

Post by coolzsb »

please use NDOMOD 1.4b7 ,not NDOMOD 1.4b9

because the database structure of NDOMOD 1.4b9 isn‘t same as NDOMOD 1.4b7
Last edited by coolzsb on Sun Feb 21, 2010 10:41 pm, edited 2 times in total.
mouses
Posts: 6
Joined: Tue Feb 16, 2010 9:54 pm

Post by mouses »

Everyone keeps saying not to use this version. How come?
simulon
Posts: 1
Joined: Wed May 19, 2010 9:01 am
Location: Belgium

Post by simulon »

I have the same problem using NPC with FAN distro (Fully automated Nagios).
It came with ndoutils 1.4b8 (nagios-ndoutils-1.4-fan.18.i386.rpm) and I spent days trying to populate npc tables.

Then I decided to downgrade to nagios-ndoutils-1.4-fan.13.i386.rpm which uses 1.4b7 and then it worked.

Problem is that server is not connected to the net and I couldn't use yum.
So I had to use the dirty rpm --nodeps option (Rock and roll :evil: )

I hope all will continue working.

Anyway, thanks for the plugin and the info on the forum.

Cheers from Belgium.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests