I have Nagios 4 up and running with nagios-4.1.1 and v 2.1.1 of the plugins. No issues there.
I downloaded ndoutils-2.0.0.tar.gz and compilied. Basically, I looked at a lot of doc, but this is roughly the recipe I followed http://joesteinkamp.com/setting-up-ndou ... on-centos/
I have the database created and installdb did run but I got an error about not finding nagios_dbversion, but a "show tables;" did show the table listed. and the rest of the script completed.
however, now when I start the service, I get the following error. I feel like I checked every path and password multiple times.
Code: Select all
nagios]# /usr/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Support for the specified database server is either not yet supported, or was not found on your system.below is the output of the ndo2db and ndomod cfg's and my.cnf.
Code: Select all
# cat /usr/local/nagios/etc/ndo2db.cfg | grep -v \^\# | grep -v \^\$
lock_file=/var/run/nagios/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/var/run/nagios/ndo.sock
tcp_port=5668
use_ssl=0
db_servertype=mysql
db_host=localhost
db_port=3306
db_name=nagios
db_prefix=nagios_
db_user=ndouser
db_pass=ndoPa55w0rd
max_timedevents_age=1440
max_systemcommands_age=10080
max_servicechecks_age=10080
max_hostchecks_age=10080
max_eventhandlers_age=44640
max_externalcommands_age=44640
max_notifications_age=44640
max_contactnotifications=44640
max_contactnotificationmethods=44640
max_logentries_age=129600
max_acknowledgements_age=44640
debug_level=0
debug_verbosity=1
debug_file=/var/run/nagios/ndo2db.debug
max_debug_file_size=1000000Code: Select all
# cat /usr/local/nagios/etc/ndomod.cfg | grep -v \^\# | grep -v \^\$
instance_name=default
output_type=unixsocket
output=/var/run/nagios/ndo.sock
tcp_port=5668
use_ssl=0
output_buffer_items=5000
buffer_file=/var/run/nagios/ndomod.tmp
file_rotation_interval=14400
file_rotation_timeout=60
reconnect_interval=15
reconnect_warning_interval=15
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
statechange_data=1
system_command_data=1
timed_event_data=1
config_output_options=2
Code: Select all
# cat my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d