Hello @lazzarinof
Thanks for sending the System Profile along with the bpi details.
Appears that the messages (examples:)
'<br />Error: Can't find the host: appdev1, check configuration for group: 'State-Web'<br /> in 'bpi.log' are suggesting that the host is not able to find the group that it is associated with.
We see that the database is marked as "crashed" and want to have you run through the database repair. Here is the example line that we see:
"210929 9:01:32 [ERROR] mysqld: Table './nagios/nagios_logentries' is marked as crashed and last (automatic?) repair failed"
To repair the database:
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
And since we are receiving error on 'nagios_logentries' we want to truncate by:
Code: Select all
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_logentries'
mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_notifications'
Let's also check on the table sizes as well:
Code: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagios', 'nagiosql', 'nagiosxi');" | mysql -h 127.0.0.1 -uroot -pnagiosxi --table
Reindex the Core Configuration Manager (CCM) configs
- 1: Terminal command list all running /bin/nagios -> ps -aux | grep -E '/bin/nagios'
- 2: Terminal command -> killall -9 nagios (or pkill nagios)
- 3: Terminal command check to see if /bin/nagios processes are stopped
- 4: Restart nagios.service by terminal command: systemctl restart nagios
- 5: Head over to the Nagios XI web console ==> Core Configuration Manager (CCM) ==> Config File Management ==> [Delete Files] ==> [Write Files] ==> [Verify Files]
- 6: Core Configuration Manager (CCM) ==> Under Quick Tools ==> "Apply Configuration"
- 7: Restart nagios.service by terminal command: systemctl restart nagios
[list]
[/list]
Verify that the host and services look good in pre-flight with no errors in core by:
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Let us know how things look,
Perry