NDOUtils Problem
Joe Precious
JoeP at protronics.co.uk
Fri Apr 4 14:45:24 CEST 2008
Hi
I’ve enabled logging and it creates the debug file but there’s nothing in it which implies to me that ndo2db is not actually doing anything at all. I guess this ties in with the errors that imply that ndomod can’t connect to the socket.
I’ve checked the location of the socket in both configuration files is the same, I’ve also confirmed it exists where it should and the permissions look fine on it (the same as my other server where it works).
Is there anyway I can test the connection to the socket? This is starting to get a bit beyond my Linux knowledge.
BTW I upgraded to 3.0.1 in case this helped but it didn’t!
Thanks
Joe
From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Antonio Grassi
Sent: 04 April 2008 13:19
To: Nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] RE : NDOUtils Problem
Joe, maybe you can debug the problem with the debug archive of ndo2db (you set it in the configuration file, and you also set the debug level and verbosity). There you can even see the queries sent to the database, and the errors they generate. I'm using Nagios 3.0 and NDO1.4b7 and I've no problems.
Antonio
2008/4/4, Joe Precious <JoeP at protronics.co.uk>:
I've double-checked all my config files and all the important settings match yours.
I wonder if this is a problem when doing a fresh install on Nagios 3.0 rather than upgrading from previous versions?
Joe
From: yannig.perre at externe.bnpparibas.com [mailto:yannig.perre at externe.bnpparibas.com]
Sent: 04 April 2008 09:30
To: webknowledge at gmail.com; Joe Precious
Cc: Nagios-users at lists.sourceforge.net
Subject: RE : [Nagios-users] NDOUtils Problem
I'm using nagios 3.0 (from b6 through 3.0) and ndoutils 1.4.b7 since a few months against a Solaris 8 without problem. I'm monitoring around 50 servers and 700 services.
Here's my configuration:
root at xxx # cat ndomod.cfg
instance_name=default
output_type=unixsocket
output=/path/to/nagios/var/ndo.sock
tcp_port=5668
# increase this to a higher value if you want to be able to stop ndo2db a long time
output_buffer_items=50000
buffer_file=/path/to/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=0
root at xxx # cat ndo2db.cfg
# set the name of the user launching ndo2db module broker
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/path/to/nagios/var/ndo.sock
tcp_port=5668
# config of the mysql backend
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=nagios
db_prefix=nagios_
db_user=mysql_user
db_pass=mysql_passwd
# retention of data
max_timedevents_age=1440
max_systemcommands_age=10080
# = 100 days
max_servicechecks_age=144000
max_hostchecks_age=10080
max_eventhandlers_age=44640
debug_level=1
debug_verbosity=0
debug_file=/path/to/nagios/var/ndo.debug
max_debug_file_size=1000000
Finaly, nagios.cfg contains this line:
# ndoutils broker
broker_module=/path/to/nagios/bin/ndomod.o config_file=/path/to/nagios/etc/ndomod.cfg
-----Message d'origine-----
De : nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-bounces at lists.sourceforge.net] De la part de webknowledge at gmail.com
Envoyé : jeudi 3 avril 2008 22:47
À : JoeP at protronics.co.uk
Cc : Nagios-users at lists.sourceforge.net
Objet : Re: [Nagios-users] NDOUtils Problem
>From NDOUtils 1.4.b7 Changelog:
1.4b7 - 10/31/2007
-----------------
NOTE: ** Requires Nagios 2.7 or higher, or Nagios 3.0b6
- Makefile fixes for compilation flags
- Fix for bug where service check table always had same start/end time
- Added sample init script for SLES (Bruno Quintais)
- Added --with-ndo2db-user and --with-ndo2db-group configure script options
- Fix for configfilevariables table not holding multiple entries for various variables
- Changed/added indexes on various DB tables
- Added some very basic debug file capabilities (not complete yet)
- Fix for handling (backwards) system time changes
- Fix for missing SUN_LEN definition and strtof() functions on Solaris 8 (Christian Masopust)
- Fix for segfault when importing duplicate log file entries (Hendrik Frenzel)
- Updated to support latest Nagios 3.x code (3.0b6)
So, I think Nagios3.0.X isn't supported yet. I'm having issues with ndomod for nagios 3-x installs, so I've sticked with nagios 2.11 with 1.4b7 and it works fine. Hold your migration, for a new release of the mod.
Cheers,
On Thu, Apr 3, 2008 at 5:22 PM, Joe Precious <JoeP at protronics.co.uk> wrote:
Hi
I'm having some problems getting NDOUtils running on a new Nagios installation. I have it running fine on a Nagios 3.0rc3 installation on Ubuntu 6.06 server but I need to move to a new server. I've gone to Nagios 3.0 on a Ubuntu 7.10 machine which is all running fine but when I can't get NDOUtils running. I run through the installation several times to make sure I've done everything, double-checked all config files, confirmed the database and access but it won't run. I see the following in the Nagios log:-
[04-03-2008 13:32:47] ndomod: Successfully reconnected to data sink! 0 items lost, 78 queued items to flush.
[04-03-2008 13:32:31] ndomod: Error writing to data sink! Some output may get lost...
[04-03-2008 13:32:31] ndomod: Successfully flushed 289 queued items to data sink.
[04-03-2008 13:32:31] ndomod: Successfully reconnected to data sink! 0 items lost, 289 queued items to flush.
[04-03-2008 13:32:15] ndomod: Error writing to data sink! Some output may get lost. 194 queued items to flush.
[04-03-2008 13:32:15] ndomod: Successfully reconnected to data sink! 0 items lost, 505 queued items to flush.
[04-03-2008 13:31:59] ndomod: Error writing to data sink! Some output may get lost. 424 queued items to flush.
[04-03-2008 13:31:59] ndomod: Successfully reconnected to data sink! 0 items lost, 588 queued items to flush.
[04-03-2008 13:31:43] ndomod: Error writing to data sink! Some output may get lost. 499 queued items to flush.
[04-03-2008 13:31:43] ndomod: Successfully reconnected to data sink! 0 items lost, 676 queued items to flush.
[04-03-2008 13:31:27] ndomod: Error writing to data sink! Some output may get lost...
[04-03-2008 13:31:27] Finished daemonizing... (New PID=14596)
[04-03-2008 13:31:27] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
[04-03-2008 13:31:27] ndomod: Successfully connected to data sink. 0 queued items to flush.
[04-03-2008 13:31:27] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios at nagios.org)
[04-03-2008 13:31:27] LOG VERSION: 2.0
[04-03-2008 13:31:27] Local time is Thu Apr 03 13:31:27 BST 2008
[04-03-2008 13:31:27] Nagios 3.0 starting... (PID=14594)
I've found a few threads on the internet with similar errors but not found a resolution. I'm at a loss how to proceed with troubleshooting.
Thanks
Joe
Joe Precious
Protronics Tel: 0845 458 3234
support at protronics.co.uk Fax: 0207 407 2441
--------------------------------------------------------------------------
Business Driven IT
Microsoft Gold Certified Partner
Cisco SMB Select Partner
--------------------------------------------------------------------------
Accounts • Networks • Development • Training
--------------------------------------------------------------------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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
This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.
Do not print this message unless it is necessary,
consider the environment.
---------------------------------------------
Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080404/25771398/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
-------------- next part --------------
_______________________________________________
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