I'm trying to intall NDOutils in order to use Nagvis plugin, but I'm having some trouble starting the daemon.
[root@coclapp8 ndoutils]# /usr/bin/ndo2db -c /etc/nagios/ndo2db.cfg
gives me the following error: Error processing config file '/etc/nagios/ndo2db.cfg'.
I've followed all the basic steps and nothing seems to work...
heres my ndo2db.cfg file:**
NDO2DB DAEMON CONFIG FILE
Last Modified: 12-03-2006
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.
This option determines what type of socket the daemon will create
an accept connections from.
unix = Unix domain socket (default)
tcp = TCP socket
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
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".
DATABASE SERVER TYPE
This option determines what type of DB server the daemon should
mysql = MySQL
pgsql = PostgreSQL
This option specifies what host the DB server is running on.
This option specifies the port that the DB server is running on.
3306 = Default MySQL port
5432 = Default PostgreSQL port
This option specifies the name of the database that should be used.
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!
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
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
Keep system commands for 1 week
Keep service checks for 1 week
Keep host checks for 1 week
Keep event handlers for 31 days
and my ndomod.cfg file:
NDOMOD CONFIG FILE
Last Modified: 02-18-2007
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).
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)
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.
This option determines what port the module will connect to in
order to send output. This option is only vlaid if the output type
option specified above is "tcpsocket".
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.
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.
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 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 TIMEOUT
This option specified the maximum number of seconds that the file
rotation command should be allowed to run before being prematurely
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 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.
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.
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.
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
I already have the database created and with all the "nagios_" tables... the db user works perfectly....
Well I'll be very thankfull if anyone can give me any advice....