It appears that one of the hosts in our Nagios XI system is in a weird state such that it is alerting, but is not in the CCM or in Nagios Core.
How do we remove this entry from Nagios XI?
I tried running the "repair_database.sh" script, but that didn't fix the problem.
Host alerting, but not in Nagios core or the CCM
-
MrWoodward
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Host alerting, but not in Nagios core or the CCM
Hello, @MrWoodward. Are you seeing this service on the Nagios XI home page under the Service Status dashboard? Please try this repair mysql command instead:
Also, please run these commands if you are on CentOS/RHEL 6.X:mysqlcheck -r -f -uroot -pnagiosxi --all-databases --use_frm
Run these commands if you are on CentOS/RHEL 7.X:service crond stop
service npcd stop
service nagios stop
service ndo2db stop
pkill -9 -u nagios
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
service mysqld restart
service ndo2db start
service nagios start
service npcd start
service crond start
Let me know if this fixes your problem.systemctl stop crond
systemctl stop npcd
systemctl stop nagios
systemctl stop ndo2db
pkill -9 -u nagios
for i in $(ipcs -q | grep nagios |awk '{print $2}'); do ipcrm -q $i; done
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mariadb
systemctl start ndo2db
systemctl start nagios
systemctl start npcd
systemctl start crond
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
MrWoodward
- Posts: 66
- Joined: Fri Jan 06, 2017 1:58 pm
Re: Host alerting, but not in Nagios core or the CCM
Ran the scripts and Everything appears normal again!
Thanks so much for the support!
Thanks so much for the support!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Host alerting, but not in Nagios core or the CCM
excellent!MrWoodward wrote:Ran the scripts and Everything appears normal again!
Thanks so much for the support!
Locking thread