Page 2 of 2
Re: Cannot find Host in service escalation
Posted: Thu Aug 27, 2015 4:39 pm
by JohnFLi
it wouldn't let me add a forth picture.
define service {
host_name BearCam
service_description Ping
check_command check_ping!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts myEmail
_xiwizard genericnetdevice
register 1
}
Re: Cannot find Host in service escalation
Posted: Thu Aug 27, 2015 5:24 pm
by JohnFLi
Well, somethign was amiss for sure.
I deleted the Service Escalation, applied config....
Remade the Service Escalation (with all the same settings and hosts)....Applied Config
Went to the services of BearCam, deleted (it was happy)
Deleted the BearCam host, applied.
Nagios is now fine again.
Wierd.
But I still have
# tail -50 /var/log/mysqld.log
150731 14:15:03 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_customvariablestatus' is marked as crashed and should be repaired
150731 14:15:03 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired
150731 14:15:03 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_customvariablestatus' is marked as crashed and should be repaired
150731 14:15:03 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired
150731 14:15:03 [ERROR] /usr/libexec/mysqld: Table './nagios/nagios_customvariablestatus' is marked as crashed and should be repaired
150731 14:15:03 [Note] /usr/libexec/mysqld: Normal shutdown
Re: Cannot find Host in service escalation
Posted: Thu Aug 27, 2015 7:01 pm
by Box293
For the mysql error you'll need to do:
Code: Select all
cd /usr/local/nagiosxi/scripts/
./repair_databases.sh
This may take a while to complete. Once it has, please scroll back up through the history to make sure there were not any database errors (you may see an ndo2db error when stopping the service but this is ok).
Re: Cannot find Host in service escalation
Posted: Fri Aug 28, 2015 11:11 am
by JohnFLi
yup...it looks good now.
Thanks.
Re: Cannot find Host in service escalation
Posted: Fri Aug 28, 2015 11:13 am
by hsmith
JohnFLi wrote:yup...it looks good now.
Thanks.
Are we all right to mark this one as resolved?
Re: Cannot find Host in service escalation
Posted: Fri Aug 28, 2015 12:10 pm
by JohnFLi
please do