Page 2 of 2

Re: Nagios with NDOUtils

Posted: Mon Dec 05, 2016 12:57 pm
by ffrcaraballo
I have 2 files nagios.cfg

root@lsmnagios:/usr/local/nagios/var# grep -i broker /etc/nagios/nagios.cfg
# EVENT BROKER OPTIONS
# Controls what (if any) data gets sent to the event broker.
# Values: 0 = Broker nothing
# -1 = Broker everything
event_broker_options=-1
# EVENT BROKER MODULE(S)
# This directive is used to specify an event broker module that should
# broker_module=<modulepath> [moduleargs]
#broker_module=/somewhere/module1.o
#broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
# 64 = Event broker
broker_module=/usr/lib/check_mk/livestatus.o /usr/local/nagios/var/rw/live
event_broker_options=-1

I post the output of the 2 but I think it is using this

root@lsmnagios:/usr/local/nagios/var# grep -i broker /usr/local/nagios/etc/nagios.cfg
# EVENT BROKER OPTIONS
# Controls what (if any) data gets sent to the event broker.
# Values: 0 = Broker nothing
# -1 = Broker everything
event_broker_options=-1
# EVENT BROKER MODULE(S)
# This directive is used to specify an event broker module that should
# broker_module=<modulepath> [moduleargs]
#broker_module=/somewhere/module1.o
#broker_module=/somewhere/module2.o arg1 arg2=3 debug=0
# 64 = Event broker
#broker_module=/usr/lib/check_mk/livestatus.o /var/log/nagios/rw/live
#event_broker_options=-1
#broker_module=/usr/lib/check_mk/livestatus.o /var/log/nagios/rw/live
#NDOUtils Broker Module
event_broker_options=-1
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg

Re: Nagios with NDOUtils

Posted: Mon Dec 05, 2016 3:29 pm
by tgriep
The output of the ps -ef command shows that you are using this config file

Code: Select all

/etc/nagios/nagios.cfg
Edit that file and add this line to it.

Code: Select all

broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg
Then restart the nagios daemon by running

Code: Select all

service nagios restart
Try that and see if the MYSQL database starts to populate with data.

Re: Nagios with NDOUtils

Posted: Tue Dec 06, 2016 7:52 am
by ffrcaraballo
It worked!

Thank you very much

Re: Nagios with NDOUtils

Posted: Tue Dec 06, 2016 12:55 pm
by tgriep
Your Welcome. I'll mark the post as solved but if you have any other questions, feel free to open a new post.