ndo2db - not processing messages fast enough
Posted: Wed Apr 06, 2016 10:08 pm
We have configured our 9 nagios servers to send data to a MySQL server using Ndoutils. Everything is working great so far as we are able to collect data from all of the 9 nagios servers. The issue is that 4 out of the 9 nagios servers seems to be sending more information than what the ndo2db application can handle. This results to the IPC message queue limit getting maxed out ( kernel.msgmnb = 524288000 ) causing the nagios daemon to stall and ultimately stop on those 4 servers.
We have tried using ndoutils v2.0.0 and v2.1.b2 but we get the same result.
https://github.com/NagiosEnterprises/nd ... tils-2.1b2
Any help or suggestions to get around this issue would be much appreciated. Thanks guys
Below is our setup.
9 nagios servers running the following:
Red Hat : 6.7
Nagios : 4.1.1
Ndomod : 2.1b2
1 MySQL server running the following:
Red Hat : 6.7
MySQL : 5.1.3
Ndo2db : 2.1b2
We have tried using ndoutils v2.0.0 and v2.1.b2 but we get the same result.
https://github.com/NagiosEnterprises/nd ... tils-2.1b2
Any help or suggestions to get around this issue would be much appreciated. Thanks guys
Below is our setup.
9 nagios servers running the following:
Red Hat : 6.7
Nagios : 4.1.1
Ndomod : 2.1b2
Code: Select all
#####################################################################
# NDOMOD CONFIG FILE
#
# Last Modified: 09-05-2007
#####################################################################
instance_name=MED-2
output_type=tcpsocket
output=<MysqlIPaddress>
tcp_port=5668
use_ssl=0
output_buffer_items=10000
buffer_file=/usr/local/nagios/var/ndomod.tmp
file_rotation_interval=14400
#file_rotation_command=rotate_ndo_log
file_rotation_timeout=60
reconnect_interval=15
reconnect_warning_interval=15
#reconnect_warning_interval=900
acknowledgement_data=1
adaptive_contact_data=0
adaptive_host_data=0
adaptive_program_data=0
adaptive_service_data=0
aggregated_status_data=0
comment_data=1
contact_status_data=0
downtime_data=1
event_handler_data=0
external_command_data=0
flapping_data=0
host_check_data=1
host_status_data=1
log_data=1
main_config_data=0
notification_data=0
object_config_data=0
process_data=0
program_status_data=1
retention_data=0
service_check_data=1
service_status_data=1
statechange_data=1
system_command_data=0
timed_event_data=0
config_output_options=0
1 MySQL server running the following:
Red Hat : 6.7
MySQL : 5.1.3
Ndo2db : 2.1b2
Code: Select all
#####################################################################
# NDO2DB DAEMON CONFIG FILE
#
# Last Modified: 01-02-2009
#####################################################################
lock_file=/usr/local/nagios/var/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios
#socket_type=unix
socket_type=tcp
socket_name=/usr/local/nagios/var/rw/ndo.sock
tcp_port=5668
use_ssl=0
db_servertype=mysql
db_host=localhost
db_port=5668
db_name=nagios
db_prefix=nagios_
db_user=<ndo2db_user>
db_pass=<nagiossecret>
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=-1
debug_verbosity=2
debug_file=/usr/local/nagios/var/ndo2db.debug
max_debug_file_size=1000000