Page 1 of 1
3 component status failed
Posted: Wed Sep 26, 2018 3:20 am
by Toby
Hi There!
Have an issue with my Nagiosxi:
Monitoring Engine
Performance Grapher
Database Backend
Components will not start.
I'm not a Linux guru

Server restarted, didn't help.
repair_databases.sh run , didn't help either.
Still running 5.5.2
I didnt update yet because undocumented change of json screwed up my json-queries in the last update.
Will update when i got some spare time unless its absolutely necessary
Any hints to fix it?
Where can i find logs to troubleshoot this?
Re: 3 component status failed
Posted: Wed Sep 26, 2018 9:59 am
by jforcier
Were any changes made that could have caused this issue?
Try restaring everything from the command line:
Note you must use mariadb instead of mysqld in the commands below, if you have mariadb.
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
Also check for errors in the Nagios log:
Re: 3 component status failed
Posted: Fri Sep 28, 2018 10:01 am
by Toby
Hi!
I have actually solved it, or atleast i know the reason to my problems.
Someone in the Linux dep. added my server to puppet, and forced some default policies(classes) on it.
That ruined sudoers, so that scripts running to check localhost didn't work.
And i now managed to edit my sudoers file, and it works like a charm.
(And sry for posting same issue in 2 diff. sections)
Re: 3 component status failed
Posted: Fri Sep 28, 2018 10:12 am
by benjaminsmith
Hi Toby,
Thanks for using the support forum, and glad to hear you were able to resolve the issue. I'll locked this thread for now, and if you have another issue, please start a new one.