Hi All,
I'm having getting centreon to work correctly with nagios. I've spent the last couple hours searching online for a fix, now it's time to escalate to the pros. Anything you can do to help me would be appreciated.
I'm running debian 7.3
Nagios Core 3.5.1
nagios plugins 1.5
centreon 2.4.5
ndutils - 1.5.2
Nagios apears to be working fine. I then logged into centreon and had to setup my and configure my poller and when I put in my configuration there it rebooted and now the poller info is gone.
I get the following error in my centreon web interface, No Broker connection found
I noticed the following:
#sudo tail -f /var/log/messages
Jun 1 13:03:36 centreon-test nagios: ndomod: Still unable to connect to data sink. 16292 items lost, 5000 queued items to flush.
Jun 1 13:03:52 centreon-test nagios: ndomod: Still unable to connect to data sink. 16378 items lost, 5000 queued items to flush.
Jun 1 13:04:08 centreon-test nagios: ndomod: Still unable to connect to data sink. 16460 items lost, 5000 queued items to flush.
Jun 1 13:04:24 centreon-test nagios: ndomod: Still unable to connect to data sink. 16550 items lost, 5000 queued items to flush.
Jun 1 13:04:40 centreon-test nagios: ndomod: Still unable to connect to data sink. 16640 items lost, 5000 queued items to flush.
Jun 1 13:04:56 centreon-test nagios: ndomod: Still unable to connect to data sink. 16722 items lost, 5000 queued items to flush.
Jun 1 13:05:12 centreon-test nagios: ndomod: Still unable to connect to data sink. 16809 items lost, 5000 queued items to flush.
Jun 1 13:05:28 centreon-test nagios: ndomod: Still unable to connect to data sink. 16890 items lost, 5000 queued items to flush.
Jun 1 13:05:44 centreon-test nagios: ndomod: Still unable to connect to data sink. 16984 items lost, 5000 queued items to flush.
Jun 1 13:06:00 centreon-test nagios: ndomod: Still unable to connect to data sink. 17077 items lost, 5000 queued items to flush.
syslog folder
Jun 1 13:10:01 centreon-test /USR/SBIN/CRON[5468]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:10:01 centreon-test /USR/SBIN/CRON[5469]: (centreon) CMD (/usr/local/centreon/bin/nagiosPerfTrace >> /usr/local/centreon/log/nagiosPerfTrace.log 2>&1)
Jun 1 13:10:01 centreon-test /USR/SBIN/CRON[5470]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:10:01 centreon-test /USR/SBIN/CRON[5471]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/downtimeManager.php >> /usr/local/centreon/log/downtimeManager.log 2>&1)
Jun 1 13:10:16 centreon-test nagios: ndomod: Still unable to connect to data sink. 18490 items lost, 5000 queued items to flush.
Jun 1 13:10:32 centreon-test nagios: ndomod: Still unable to connect to data sink. 18581 items lost, 5000 queued items to flush.
Jun 1 13:10:48 centreon-test nagios: ndomod: Still unable to connect to data sink. 18663 items lost, 5000 queued items to flush.
Jun 1 13:11:01 centreon-test /USR/SBIN/CRON[5508]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:11:01 centreon-test /USR/SBIN/CRON[5509]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:11:04 centreon-test nagios: ndomod: Still unable to connect to data sink. 18758 items lost, 5000 queued items to flush.
Jun 1 13:11:20 centreon-test nagios: ndomod: Still unable to connect to data sink. 18859 items lost, 5000 queued items to flush.
Jun 1 13:11:36 centreon-test nagios: ndomod: Still unable to connect to data sink. 18945 items lost, 5000 queued items to flush.
Jun 1 13:11:52 centreon-test nagios: ndomod: Still unable to connect to data sink. 19041 items lost, 5000 queued items to flush.
Jun 1 13:12:01 centreon-test /USR/SBIN/CRON[5551]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:12:01 centreon-test /USR/SBIN/CRON[5552]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:12:08 centreon-test nagios: ndomod: Still unable to connect to data sink. 19123 items lost, 5000 queued items to flush.
Jun 1 13:12:24 centreon-test nagios: ndomod: Still unable to connect to data sink. 19219 items lost, 5000 queued items to flush.
Jun 1 13:12:40 centreon-test nagios: ndomod: Still unable to connect to data sink. 19313 items lost, 5000 queued items to flush.
Jun 1 13:12:56 centreon-test nagios: ndomod: Still unable to connect to data sink. 19395 items lost, 5000 queued items to flush.
Jun 1 13:13:01 centreon-test /USR/SBIN/CRON[5599]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:13:01 centreon-test /USR/SBIN/CRON[5600]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:13:12 centreon-test nagios: ndomod: Still unable to connect to data sink. 19487 items lost, 5000 queued items to flush.
Jun 1 13:13:28 centreon-test nagios: ndomod: Still unable to connect to data sink. 19568 items lost, 5000 queued items to flush.
Jun 1 13:13:44 centreon-test nagios: ndomod: Still unable to connect to data sink. 19661 items lost, 5000 queued items to flush.
Jun 1 13:14:00 centreon-test nagios: ndomod: Still unable to connect to data sink. 19748 items lost, 5000 queued items to flush.
Jun 1 13:14:01 centreon-test /USR/SBIN/CRON[5626]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:14:01 centreon-test /USR/SBIN/CRON[5627]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:14:16 centreon-test nagios: ndomod: Still unable to connect to data sink. 19829 items lost, 5000 queued items to flush.
Jun 1 13:14:32 centreon-test nagios: ndomod: Still unable to connect to data sink. 19920 items lost, 5000 queued items to flush.
Jun 1 13:14:48 centreon-test nagios: ndomod: Still unable to connect to data sink. 20002 items lost, 5000 queued items to flush.
Jun 1 13:15:01 centreon-test /USR/SBIN/CRON[5658]: (centreon) CMD (/usr/local/centreon/bin/nagiosPerfTrace >> /usr/local/centreon/log/nagiosPerfTrace.log 2>&1)
Jun 1 13:15:01 centreon-test /USR/SBIN/CRON[5659]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:15:01 centreon-test /USR/SBIN/CRON[5660]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/downtimeManager.php >> /usr/local/centreon/log/downtimeManager.log 2>&1)
Jun 1 13:15:01 centreon-test /USR/SBIN/CRON[5661]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:15:04 centreon-test nagios: ndomod: Still unable to connect to data sink. 20091 items lost, 5000 queued items to flush.
Jun 1 13:15:20 centreon-test nagios: ndomod: Still unable to connect to data sink. 20178 items lost, 5000 queued items to flush.
Jun 1 13:15:28 centreon-test nagios: Auto-save of retention data completed successfully.
Jun 1 13:15:36 centreon-test nagios: ndomod: Still unable to connect to data sink. 20269 items lost, 5000 queued items to flush.
Jun 1 13:15:52 centreon-test nagios: ndomod: Still unable to connect to data sink. 20355 items lost, 5000 queued items to flush.
Jun 1 13:16:01 centreon-test /USR/SBIN/CRON[5699]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:16:01 centreon-test /USR/SBIN/CRON[5700]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:16:08 centreon-test nagios: ndomod: Still unable to connect to data sink. 20444 items lost, 5000 queued items to flush.
Jun 1 13:16:24 centreon-test nagios: ndomod: Still unable to connect to data sink. 20546 items lost, 5000 queued items to flush.
Jun 1 13:16:40 centreon-test nagios: ndomod: Still unable to connect to data sink. 20637 items lost, 5000 queued items to flush.
Jun 1 13:16:56 centreon-test nagios: ndomod: Still unable to connect to data sink. 20728 items lost, 5000 queued items to flush.
Jun 1 13:17:01 centreon-test /USR/SBIN/CRON[5742]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:17:01 centreon-test /USR/SBIN/CRON[5744]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jun 1 13:17:01 centreon-test /USR/SBIN/CRON[5743]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:17:12 centreon-test nagios: ndomod: Still unable to connect to data sink. 20815 items lost, 5000 queued items to flush.
Jun 1 13:17:28 centreon-test nagios: ndomod: Still unable to connect to data sink. 20902 items lost, 5000 queued items to flush.
Jun 1 13:17:44 centreon-test nagios: ndomod: Still unable to connect to data sink. 21000 items lost, 5000 queued items to flush.
Jun 1 13:18:00 centreon-test nagios: ndomod: Still unable to connect to data sink. 21087 items lost, 5000 queued items to flush.
Jun 1 13:18:01 centreon-test /USR/SBIN/CRON[5777]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:18:01 centreon-test /USR/SBIN/CRON[5778]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:18:16 centreon-test nagios: ndomod: Still unable to connect to data sink. 21169 items lost, 5000 queued items to flush.
Jun 1 13:18:32 centreon-test nagios: ndomod: Still unable to connect to data sink. 21264 items lost, 5000 queued items to flush.
Jun 1 13:18:48 centreon-test nagios: ndomod: Still unable to connect to data sink. 21346 items lost, 5000 queued items to flush.
Jun 1 13:19:01 centreon-test /USR/SBIN/CRON[5810]: (www-data) CMD (/usr/bin/php -q /usr/local/centreon/cron/centAcl.php >> /usr/local/centreon/log/centAcl.log 2>&1)
Jun 1 13:19:01 centreon-test /USR/SBIN/CRON[5811]: (centreon) CMD (/usr/local/centreon/bin/logAnalyser >> /usr/local/centreon/log/logAnalyser.log 2>&1)
Jun 1 13:19:04 centreon-test nagios: ndomod: Still unable to connect to data sink. 21435 items lost, 5000 queued items to
#vi centcore.log
2015-06-01 12:14:04 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:06 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:08 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:10 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:12 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:14 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:16 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:18 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:20 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:22 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:24 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:26 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:28 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:30 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:32 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:34 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:36 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:38 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:39 - Receiving order to stop...
Can't call method "prepare" on an undefined value at /usr/local/centreon/bin/centcore line 971.
2015-06-01 12:15:57 - Starting centcore engine...
2015-06-01 12:15:57 - PID : 2933
#vi centstorage.cfg
2015-06-01 12:14:41 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:43 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:43 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:45 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:45 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:47 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:47 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:49 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:49 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:51 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:14:51 - Error when connecting to database : Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
2015-06-01 12:15:58 - Starting centstorage engine...
2015-06-01 12:16:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:16:58 - Sync : Process end
2015-06-01 12:17:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:17:58 - Sync : Process end
2015-06-01 12:18:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:18:58 - Sync : Process end
2015-06-01 12:19:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:19:58 - Sync : Process end
2015-06-01 12:20:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:20:58 - Sync : Process end
2015-06-01 12:21:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:21:58 - Sync : Process end
2015-06-01 12:22:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:22:58 - Sync : Process end
2015-06-01 12:23:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:23:58 - Sync : Process end
2015-06-01 12:24:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:24:58 - Sync : Process end
2015-06-01 12:25:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:25:58 - Sync : Process end
2015-06-01 12:26:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:26:58 - Sync : Process end
2015-06-01 12:27:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:27:58 - Sync : Process end
2015-06-01 12:28:58 - Sync : Monitoring Engine restart - Process start
2015-06-01 12:28:58 - Sync : Process end
2015-06-01 12:29:58 - Sync : Monitoring Engine restart - Process start
#vi logAnalyser.log
1/6/2015 13:27:01 - 1/6/2015 13:27:1 - DBI connect('database=centreon_storage;host=localhost:3306','centreon',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/local/centreon/bin/logAnalyser line 599
1/6/2015 13:27:1 - DBI connect('database=centreon_storage;host=localhost:3306','centreon',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/local/centreon/bin/logAnalyser line 599
Also, when start nagios i get the following error while starting it with ndo2db:
#:/usr/local/nagios/etc# /etc/init.d/ndo2db
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'K01ndo2db' missing LSB tags and overrides
insserv: warning: script 'S18nagios' missing LSB tags and overrides
insserv: warning: script 'S99nagio' missing LSB tags and overrides
insserv: warning: script 'ndo2db' missing LSB tags and overrides
insserv: warning: script 'nagios' missing LSB tags and overrides
Running configuration check...done.
Stopping nagios: No lock file found in /usr/local/nagios/var/nagios.lock
Starting nagios: done.
ndo2db.cfg file:
#####################################################################
# NDO2DB DAEMON CONFIG FILE
#
# Last Modified: 01-02-2009
#####################################################################
# LOCK FILE
# This is the lockfile that NDO2DB will use to store its PID number
# in when it is running in daemon mode.
lock_file=/usr/local/nagios/var/ndo2db.lock
# USER/GROUP PRIVILIGES
# These options determine the user/group that the daemon should run as.
# You can specify a number (uid/gid) or a name for either option.
ndo2db_user=nagios
ndo2db_group=nagios
# SOCKET TYPE
# This option determines what type of socket the daemon will create
# an accept connections from.
# Value:
# unix = Unix domain socket (default)
# tcp = TCP socket
socket_type=unix
#socket_type=tcp
# SOCKET NAME
# This option determines the name and path of the UNIX domain
# socket that the daemon will create and accept connections from.
# This option is only valid if the socket type specified above
# is "unix".
socket_name=/usr/local/nagios/var/ndo.sock
# TCP PORT
# This option determines what port the daemon will listen for
# connections on. This option is only vlaid if the socket type
# specified above is "tcp".
tcp_port=5668
# ENCRYPTION
# This option determines if the ndo2db daemon will accept SSL to encrypt the
# network traffic between module and ndo2db daemon.
# Both sides have to enable this feature which depends on SSL Libraries
# A value of '1' will enable this feature
use_ssl=0
# DATABASE SERVER TYPE
# This option determines what type of DB server the daemon should
# connect to.
# Values:
# mysql = MySQL
# pgsql = PostgreSQL
db_servertype=mysql
# DATABASE HOST
# This option specifies what host the DB server is running on.
db_host=localhost
# DATABASE PORT
# This option specifies the port that the DB server is running on.
# Values:
# 3306 = Default MySQL port
# 5432 = Default PostgreSQL port
db_port=3306
# DATABASE NAME
# This option specifies the name of the database that should be used.
db_name=nagios
# DATABASE TABLE PREFIX
# Determines the prefix (if any) that should be prepended to table names.
# If you modify the table prefix, you'll need to modify the SQL script for
# creating the database!
db_prefix=nagios_
# DATABASE USERNAME/PASSWORD
# This is the username/password that will be used to authenticate to the DB.
# The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on
# the database.
db_user=ndouser
db_pass=ndopassword
## TABLE TRIMMING OPTIONS
# Several database tables containing Nagios event data can become quite large
# over time. Most admins will want to trim these tables and keep only a
# certain amount of data in them. The options below are used to specify the
# age (in MINUTES) that data should be allowd to remain in various tables
# before it is deleted. Using a value of zero (0) for any value means that
# that particular table should NOT be automatically trimmed.
# Keep timed events for 24 hours
max_timedevents_age=1440
# Keep system commands for 1 week
max_systemcommands_age=10080
# Keep service checks for 1 week
max_servicechecks_age=10080
# Keep host checks for 1 week
max_hostchecks_age=10080
# Keep event handlers for 31 days
max_eventhandlers_age=44640
# Keep external commands for 31 days
max_externalcommands_age=44640
# DEBUG LEVEL
# This option determines how much (if any) debugging information will
# be written to the debug file. OR values together to log multiple
# types of information.
# Values: -1 = Everything
# 0 = Nothing
# 1 = Process info
# 2 = SQL queries
debug_level=-1
# DEBUG VERBOSITY
# This option determines how verbose the debug log out will be.
# Values: 0 = Brief output
# 1 = More detailed
# 2 = Very detailed
debug_verbosity=1
# DEBUG FILE
# This option determines where the daemon should write debugging information.
debug_file=/usr/local/nagios/var/ndo2db.debug
# MAX DEBUG FILE SIZE
# This option determines the maximum size (in bytes) of the debug file. If
# the file grows larger than this size, it will be renamed with a .old
# extension. If a file already exists with a .old extension it will
# automatically be deleted. This helps ensure your disk space usage doesn't
# get out of control when debugging.
max_debug_file_size=1000000
ndomod.cfg
####################################################################
# NDOMOD CONFIG FILE
#
# Last Modified: 09-05-2007
#####################################################################
# INSTANCE NAME
# This option identifies the "name" associated with this particular
# instance of Nagios and is used to seperate data coming from multiple
# instances. Defaults to 'default' (without quotes).
instance_name=Central
# OUTPUT TYPE
# This option determines what type of output sink the NDO NEB module
# should use for data output. Valid options include:
# file = standard text file
# tcpsocket = TCP socket
# unixsocket = UNIX domain socket (default)
#output_type=file
#output_type=tcpsocket
output_type=unixsocket
# OUTPUT
# This option determines the name and path of the file or UNIX domain
# socket to which output will be sent if the output type option specified
# above is "file" or "unixsocket", respectively. If the output type
# option is "tcpsocket", this option is used to specify the IP address
# of fully qualified domain name of the host that the module should
# connect to for sending output.
#output=/usr/local/nagios/var/ndo.dat
#output=127.0.0.1
output=/usr/local/nagios/var/ndo.sock
# TCP PORT
# This option determines what port the module will connect to in
# order to send output. This option is only valid if the output type
# option specified above is "tcpsocket".
tcp_port=5668
# ENCRYPTION
# This option determines if the module will use SSL to encrypt the
# network traffic between module and ndo2db daemon.
# Both sides have to enable this feature which depends on SSL Libraries
# like openssl or kerberos
# This option is only valid if the output type
# option specified above is "tcpsocket".
#
# A value of '1' will enable this feature
use_ssl=0
# OUTPUT BUFFER
# This option determines the size of the output buffer, which will help
# prevent data from getting lost if there is a temporary disconnect from
# the data sink. The number of items specified here is the number of
# lines (each of variable size) of output that will be buffered.
output_buffer_items=5000
# BUFFER FILE
# This option is used to specify a file which will be used to store the
# contents of buffered data which could not be sent to the NDO2DB daemon
# before Nagios shuts down. Prior to shutting down, the NDO NEB module
# will write all buffered data to this file for later processing. When
# Nagios (re)starts, the NDO NEB module will read the contents of this
# file and send it to the NDO2DB daemon for processing.
buffer_file=/usr/local/nagios/var/ndomod.tmp
# FILE ROTATION INTERVAL
# This option determines how often (in seconds) the output file is
# rotated by Nagios. File rotation is handled by Nagios by executing
# the command defined by the file_rotation_command option. This
# option has no effect if the output_type option is a socket.
file_rotation_interval=14400
# FILE ROTATION COMMAND
# This option specified the command (as defined in Nagios) that is
# used to rotate the output file at the interval specified by the
# file_rotation_interval option. This option has no effect if the
# output_type option is a socket.
#
# See the file 'misccommands.cfg' for an example command definition
# that you can use to rotate the log file.
#file_rotation_command=rotate_ndo_log
# FILE ROTATION TIMEOUT
# This option specified the maximum number of seconds that the file
# rotation command should be allowed to run before being prematurely
# terminated.
file_rotation_timeout=60
# RECONNECT INTERVAL
# This option determines how often (in seconds) that the NDO NEB
# module will attempt to re-connect to the output file or socket if
# a connection to it is lost.
reconnect_interval=15
# RECONNECT WARNING INTERVAL
# This option determines how often (in seconds) a warning message will
# be logged to the Nagios log file if a connection to the output file
# or socket cannot be re-established.
reconnect_warning_interval=15
#reconnect_warning_interval=900
# DATA PROCESSING OPTION
# This option determines what data the NDO NEB module will process.
# Do not mess with this option unless you know what you're doing!!!!
# Read the source code (include/ndbxtmod.h) to determine what values
# to use here. Values from source code should be OR'ed to get the
# value to use here. A value of -1 will cause all data to be processed.
# Read the source code (include/ndomod.h) and look for "NDOMOD_PROCESS_"
# to determine what values to use here. Values from source code should
# be OR'ed to get the value to use here. A value of -1 will cause all
# data to be processed.
data_processing_options=-1
# CONFIG OUTPUT OPTION
# This option determines what types of configuration data the NDO
# NEB module will dump from Nagios. Values can be OR'ed together.
# 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=3
cat mysql.log
150601 09:58:59 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150601 9:58:59 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
150601 9:58:59 [Note] /usr/sbin/mysqld (mysqld 5.5.43-0+deb7u1) starting as process 4417 ...
150601 9:58:59 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150601 9:58:59 [Note] Plugin 'FEDERATED' is disabled.
150601 9:58:59 InnoDB: The InnoDB memory heap is disabled
150601 9:58:59 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150601 9:58:59 InnoDB: Compressed tables use zlib 1.2.7
150601 9:58:59 InnoDB: Using Linux native AIO
150601 9:58:59 InnoDB: Initializing buffer pool, size = 128.0M
150601 9:58:59 InnoDB: Completed initialization of buffer pool
150601 9:58:59 InnoDB: highest supported file format is Barracuda.
150601 9:58:59 InnoDB: Waiting for the background threads to start
150601 9:59:00 InnoDB: 5.5.43 started; log sequence number 3900798
150601 9:59:00 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
150601 9:59:00 [Note] - '127.0.0.1' resolves to '127.0.0.1';
150601 9:59:00 [Note] Server socket created on IP: '127.0.0.1'.
150601 9:59:00 [Note] Event Scheduler: Loaded 0 events
150601 9:59:00 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.43-0+deb7u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
150601 11:04:53 [Note] /usr/sbin/mysqld: Normal shutdown
150601 11:04:53 [Note] Event Scheduler: Purging the queue. 0 events
150601 11:04:54 InnoDB: Starting shutdown...
150601 11:04:55 InnoDB: Shutdown completed; log sequence number 4097907
150601 11:04:55 [Note] /usr/sbin/mysqld: Shutdown complete
150601 11:04:55 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150601 11:05:58 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150601 11:05:58 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
150601 11:05:58 [Note] /usr/sbin/mysqld (mysqld 5.5.43-0+deb7u1) starting as process 2812 ...
150601 11:05:58 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150601 11:05:58 [Note] Plugin 'FEDERATED' is disabled.
150601 11:05:58 InnoDB: The InnoDB memory heap is disabled
150601 11:05:58 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150601 11:05:58 InnoDB: Compressed tables use zlib 1.2.7
150601 11:05:58 InnoDB: Using Linux native AIO
150601 11:05:58 InnoDB: Initializing buffer pool, size = 128.0M
150601 11:05:58 InnoDB: Completed initialization of buffer pool
150601 11:05:58 InnoDB: highest supported file format is Barracuda.
150601 11:05:59 InnoDB: Waiting for the background threads to start
150601 11:06:00 InnoDB: 5.5.43 started; log sequence number 4097907
150601 11:06:00 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
150601 11:06:00 [Note] - '127.0.0.1' resolves to '127.0.0.1';
150601 11:06:00 [Note] Server socket created on IP: '127.0.0.1'.
150601 11:06:00 [Note] Event Scheduler: Loaded 0 events
150601 11:06:00 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.43-0+deb7u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
150601 11:30:32 [Note] /usr/sbin/mysqld: Normal shutdown
150601 11:30:32 [Note] Event Scheduler: Purging the queue. 0 events
150601 11:30:32 InnoDB: Starting shutdown...
150601 11:30:34 InnoDB: Shutdown completed; log sequence number 4119586
150601 11:30:34 [Note] /usr/sbin/mysqld: Shutdown complete
150601 11:30:34 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150601 11:31:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150601 11:31:11 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
150601 11:31:11 [Note] /usr/sbin/mysqld (mysqld 5.5.43-0+deb7u1) starting as process 5072 ...
150601 11:31:11 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150601 11:31:11 [Note] Plugin 'FEDERATED' is disabled.
150601 11:31:11 InnoDB: The InnoDB memory heap is disabled
150601 11:31:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150601 11:31:11 InnoDB: Compressed tables use zlib 1.2.7
150601 11:31:11 InnoDB: Using Linux native AIO
150601 11:31:11 InnoDB: Initializing buffer pool, size = 128.0M
150601 11:31:11 InnoDB: Completed initialization of buffer pool
150601 11:31:11 InnoDB: highest supported file format is Barracuda.
150601 11:31:11 InnoDB: Waiting for the background threads to start
150601 11:31:12 InnoDB: 5.5.43 started; log sequence number 4119586
150601 11:31:12 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
150601 11:31:12 [Note] - '127.0.0.1' resolves to '127.0.0.1';
150601 11:31:12 [Note] Server socket created on IP: '127.0.0.1'.
150601 11:31:12 [Note] Event Scheduler: Loaded 0 events
150601 11:31:12 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.43-0+deb7u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
150601 11:34:29 [Note] /usr/sbin/mysqld: Normal shutdown
150601 11:34:29 [Note] Event Scheduler: Purging the queue. 0 events
150601 11:34:29 InnoDB: Starting shutdown...
150601 11:34:31 InnoDB: Shutdown completed; log sequence number 4120970
150601 11:34:31 [Note] /usr/sbin/mysqld: Shutdown complete
150601 11:34:31 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150601 12:15:53 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
150601 12:15:53 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
150601 12:15:53 [Note] /usr/sbin/mysqld (mysqld 5.5.43-0+deb7u1) starting as process 2766 ...
150601 12:15:53 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
150601 12:15:53 [Note] Plugin 'FEDERATED' is disabled.
150601 12:15:54 InnoDB: The InnoDB memory heap is disabled
150601 12:15:54 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150601 12:15:54 InnoDB: Compressed tables use zlib 1.2.7
150601 12:15:54 InnoDB: Using Linux native AIO
150601 12:15:54 InnoDB: Initializing buffer pool, size = 128.0M
150601 12:15:54 InnoDB: Completed initialization of buffer pool
150601 12:15:54 InnoDB: highest supported file format is Barracuda.
150601 12:15:55 InnoDB: Waiting for the background threads to start
150601 12:15:56 InnoDB: 5.5.43 started; log sequence number 4120970
150601 12:15:56 [Note] Server hostname (bind-address): '127.0.0.1'; port: 3306
150601 12:15:56 [Note] - '127.0.0.1' resolves to '127.0.0.1';
150601 12:15:56 [Note] Server socket created on IP: '127.0.0.1'.
150601 12:15:56 [Note] Event Scheduler: Loaded 0 events
150601 12:15:56 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.43-0+deb7u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
I don't see any issues with the mysql logs.
I've noticed that there is no ndo.sock file in the nagios directory either, shouldn't this be created? again nagios seems fine but now centreon says "No broker connection found" when i log into the web interface.
I know i put out alot of info here, but anything you can do to help me getting centreon going would be much appreciated.
Thanks,
Nagios/Centreon Issue
Re: Nagios/Centreon Issue
We do not provide support for Centreon. If you need assistance getting it working, you will need to post to their forums.
I will be closing this thread now.
I will be closing this thread now.
Former Nagios employee