Page 1 of 1
Nagios XI Process State Stopped
Posted: Wed Feb 19, 2020 1:48 pm
by biswajit.banerjee
Nagios checks are not happening and Process state stopped
Capture-10.PNG
Also in a off loaded Mysql environment getting below error on nagios.log . Mysql test database is fine
[1582137593] ndomod: Successfully reconnected to data sink! 914 items lost, 5000 queued items to flush.
[1582137593] ndomod: Error writing to data sink! Some output may get lost. 4844 queued items to flush.
Please help
Re: Nagios XI Process State Stopped
Posted: Wed Feb 19, 2020 3:43 pm
by jdunitz
The first thing I'd suggest doing is to validate your config, then restart all of Nagios.
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
If that goes well, then restart:
Code: Select all
service nagios stop
service ndo2db stop
service mysqld stop
service crond stop
service httpd stop
killall -9 nagios
killall -9 ndo2db
rm -f /usr/local/nagios/var/rw/nagios.cmd
rm -f /usr/local/nagios/var/nagios.lock
rm -f /usr/local/nagios/var/ndo.sock
rm -f /usr/local/nagios/var/ndo2db.lock
rm -f /usr/local/nagiosxi/var/reconfigure_nagios.lock
for i in `ipcs -q | grep nagios |awk '{print $2}'`; do ipcrm -q $i; done
service mysqld start
service ndo2db start
service nagios start
service httpd start
service crond start
It wasn't clear from the way your original question was written if you're talking about two separate Nagios environments or not.
If the system that has stopped has an offloaded DB, then you won't want to restart mysql on that system, but apart from that, please try the above.
Let us know what happens!
Re: Nagios XI Process State Stopped
Posted: Thu Feb 20, 2020 2:05 am
by biswajit.banerjee
Thanks for the support ..
We found some how the ndo2db.cfg got changed and did not point to offloaded Mysql server .
You can close the ticket
Re: Nagios XI Process State Stopped
Posted: Thu Feb 20, 2020 10:03 am
by jdunitz
Glad you were able to solve your problem!