Event Log not showing anything

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Event Log not showing anything

Post by acentek »

Hi, I have two problems. I see nothing when I look at Monitoring Process > Event Log (on the Home page).

Also, the "oec.service" will not enable on the server. So when the server reboots the service doesn't start and that's bad.

Thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Event Log not showing anything

Post by ssax »

Please PM me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.

You may have crashed DB tables, please send the output of these commands:
- NOTE: You may need to adjust the -h 127.0.0.1, the -uroot, and -pnagiosxi in the first command if your DB is offloaded to another server and/or you've changed the root mysql password

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
This next command may fail, that's okay, not all systems run postgresql, send the output anyways:

Code: Select all

echo "SELECT relname as Table, pg_size_pretty(pg_total_relation_size(relid)) As Size, pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as ExternalSize FROM pg_catalog.pg_statio_user_tables ORDER BY pg_total_relation_size(relid) DESC;" | psql nagiosxi nagiosxi
If the first command above shows NULL for any of the sizes (specifically for the event log it would be nagios_logentries), repair the databases:

https://assets.nagios.com/downloads/nag ... tabase.pdf
acentek
Posts: 123
Joined: Thu Jul 27, 2017 2:00 pm

Re: Event Log not showing anything

Post by acentek »

Thanks! PM sent with profile and the output from both commands you requested.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Event Log not showing anything

Post by ssax »

Tables look good.

I'm seeing a lot of these:

Code: Select all

(70007)The timeout specified has expired: [client 192.168.18.109:52289] AH01075: Error dispatching request to : (polling)
Please run this command and send me the resulting /tmp/SUPPORTFILES.zip file:

Code: Select all

zip -r /tmp/SUPPORTFILES.zip /etc/httpd/conf.d/php.conf /etc/php-fpm.d/www.conf /etc/php.ini /etc/my*
Locked