Page 1 of 1

NDOUtils and Nagios 4x

Posted: Thu Sep 08, 2016 2:43 am
by delboy1966
I was about to install NDOUtils on my Nagios 4.2.1 server but in the README file it says this about the module:

ndomod-4x.o = NDOMOD module for Nagios 4.x (unstable)

Is this the case?
Has anyone experienced any issues with install NDOUtils on Nagios 4x?

Thanks
Tony

Re: NDOUtils and Nagios 4x

Posted: Thu Sep 08, 2016 11:44 am
by jfrickson
delboy1966 wrote:I was about to install NDOUtils on my Nagios 4.2.1 server but in the README file it says this about the module:

ndomod-4x.o = NDOMOD module for Nagios 4.x (unstable)

Is this the case?
No, it's very stable now. That's just something I apparently missed updating in the README. I'll make sure that unstable qualifier gets removed.

Thanks for bringing it up!

Re: NDOUtils and Nagios 4x

Posted: Fri Sep 09, 2016 4:21 am
by delboy1966
Thanks for the reply.
I'll go and install it.

Tony

Re: NDOUtils and Nagios 4x

Posted: Fri Sep 09, 2016 7:12 am
by delboy1966
So I've install NDOUtils and installation was seamless and without any issues.
I can see some data in the database tables are being populated.

However when I tell Nagvis to use the ndomy_1 backend and change the relevant database details in the Nagvis config file all my map icons are blue with the message:

Problem (Backend: ndomy_1): The object (object name) does not exist

This is for hostgroups, servicegroups, hosts etc
Does it take time for the database to get all the information populated?

Am I missing something:

My ndo2db config is as follows:



#####################################################################
# 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=default



# 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 OPTIONS
# These options determine what data the NDO NEB Module will process
#
acknowledgement_data=1
adaptive_contact_data=1
adaptive_host_data=1
adaptive_program_data=1
adaptive_service_data=1
aggregated_status_data=1
comment_data=1
contact_status_data=1
downtime_data=1
event_handler_data=1
external_command_data=1
flapping_data=1
host_check_data=1
host_status_data=1
log_data=1
main_config_data=1
notification_data=1
object_config_data=1
process_data=1
program_status_data=1
retention_data=1
service_check_data=1
service_status_data=1
state_change_data=1
system_command_data=1
timed_event_data=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=2

Re: NDOUtils and Nagios 4x

Posted: Fri Sep 09, 2016 10:09 am
by Box293
For NagVis support you'll need to go here:

http://www.nagvis.org/support

Re: NDOUtils and Nagios 4x

Posted: Tue Sep 13, 2016 11:07 am
by delboy1966
Hi
Thanks for the reply.
I have now managed to get this working.

Tony

Re: NDOUtils and Nagios 4x

Posted: Tue Sep 13, 2016 3:56 pm
by rkennedy
Awesome, going to close this one up on that note!