Page 1 of 2

Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Tue Jul 21, 2020 8:12 am
by steffen
Hi Guys,

NDO is not working anymore after upgrade from 5.6.12 -> 5.7.2.

I guess because of Change from ndo-2 to ndo-3 the NDO-Module has been renamed from /usr/local/nagios/bin/ndomod.o to /usr/local/nagios/bin/ndo.so.

I adjusted that in my nagios.cfg:

Code: Select all

#broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
broker_module=/usr/local/nagios/bin/ndo.so config_file=/usr/local/nagios/etc/ndo.cfg

But as soon as I start nagios:

Code: Select all

[1595337088] NDO-3: NDO 3.0.2 (c) Copyright 2009-2020 Nagios - Nagios Core Development Team
[1595337088] NDO-3: Unable to open config file specified - config_file=/usr/local/nagios/etc/ndo.cfg
[1595337088] NDO-3: NDO was not able to process its config file and will not start. nagios will continue running.
[1595337088] Event broker module '/usr/local/nagios/bin/ndo.so' initialized successfully.
File has correct permissions.

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Tue Jul 21, 2020 5:16 pm
by benjaminsmith
Hi Steffan,

Can you send us your system profile so we can take closer look at the logs?

Also, If you have an offloaded database, can you retrieve the database log as it will not be included in the system profile? Thanks, Benjamin

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Wed Jul 22, 2020 5:02 am
by steffen
Hi Benjamin,

because of board reglementations I am not allowed to send you a pm.
Posting here is not possible because of security rules. Is it possible to get permission for pm?

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Wed Jul 22, 2020 11:02 am
by benjaminsmith
Hi,

Please try once more. My apologies, the system requires a post count of 2 or higher to send a PM, it should work now.

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Wed Jul 22, 2020 12:20 pm
by steffen
done! I sent you. Thanks!

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Thu Jul 23, 2020 1:22 pm
by benjaminsmith
Hi Steffan,

Here is the default ndo.cfg file:

Code: Select all

# Default NDO config for Nagios XI

db_user=ndoutils
db_pass=n@gweb
db_name=nagios
db_host=localhost
db_port=3306
#db_socket=/var/lib/mysql.sock
db_max_reconnect_attempts=5

acknowledgement_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_options=2

max_object_insert_count=250

mysql_set_charset_name=utf8
The only difference I see between the default and your configuration files is the password, so I would like to double-check the permission on the file, can you post the output to the thread?

Code: Select all

ls -l /usr/local/nagios/etc/ndo.cfg
Also, I would reccomend trying a simple password string to rule any chance it's not passing the string correctly. Thanks, Benjamin

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Wed Jul 29, 2020 7:38 am
by steffen
Hi Benjamin,

i set the Password to "nagios", Login to the database works, but i still receive the same error:

Code: Select all

[1596026197] NDO-3: NDO 3.0.2 (c) Copyright 2009-2020 Nagios - Nagios Core Development Team
[1596026197] NDO-3: Unable to open config file specified - config_file=/usr/local/nagios/etc/ndo.cfg
[1596026197] NDO-3: NDO was not able to process its config file and will not start. nagios will continue running.
[1596026197] Event broker module '/usr/local/nagios/bin/ndo.so' initialized successfully.
ls -l /usr/local/nagios/etc/ndo.cfg
-rw-rw-r-- 1 apache nagios 691 Jul 29 14:33 /usr/local/nagios/etc/ndo.cfg

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Wed Jul 29, 2020 5:45 pm
by benjaminsmith
Hi,

This is interesting, the permission are correct and the file has the exact same contents as my test server except for the password. I did notice the - character in the password string, perhaps that is causing an issue, can you test with a simpler string? The default is

Code: Select all

db_pass=n@gweb

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Fri Jul 31, 2020 12:22 am
by steffen
Hi Benjamin,

i already tested

Code: Select all

db_pass=nagios
without success.

As soon as I switch back to 5.6.12 all is working (even with my Password). After updating to 5.7.1 I had the same issues. I was waiting for 5.7.2, but Nothing changed. Even if i update from 5.6.12 to 5.7.2 directly.

Re: Problem with NDO After Patching from 5.6.12 -> 5.7.2

Posted: Fri Jul 31, 2020 3:54 pm
by lmiltchev
I would like to point out that the upgrade should've upgraded the broker_module line automatically. I don't know why this didn't happen, however the changes you made are incorrect.
I adjusted that in my nagios.cfg:

#broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
broker_module=/usr/local/nagios/bin/ndo.so config_file=/usr/local/nagios/etc/ndo.cfg
The broker module line should be:

Code: Select all

broker_module=/usr/local/nagios/bin/ndo.so /usr/local/nagios/etc/ndo.cfg
There is no config_file= in the new syntax.