Problem with NDO After Patching from 5.6.12 -> 5.7.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
steffen
Posts: 6
Joined: Fri Oct 21, 2016 3:17 am

Problem with NDO After Patching from 5.6.12 -> 5.7.2

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
steffen
Posts: 6
Joined: Fri Oct 21, 2016 3:17 am

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

Post 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?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
steffen
Posts: 6
Joined: Fri Oct 21, 2016 3:17 am

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

Post by steffen »

done! I sent you. Thanks!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
steffen
Posts: 6
Joined: Fri Oct 21, 2016 3:17 am

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

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
steffen
Posts: 6
Joined: Fri Oct 21, 2016 3:17 am

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

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked