Nagios locking checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anderson.bastos
Posts: 4
Joined: Thu Sep 20, 2018 7:38 am

Nagios locking checks

Post by anderson.bastos »

Hello,
I have a problem in nagios where it locks checks and to return I have to restart the database and nagios service, sometimes even having to restart the nagios machine.

The Monitoring Engine Check Statistics panel is reset to zero when it crashes.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios locking checks

Post by ssax »

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

Additionally, please send the output of these commands (as root):
- 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

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
NOTE: It's okay if the second one fails
anderson.bastos
Posts: 4
Joined: Thu Sep 20, 2018 7:38 am

Re: Nagios locking checks

Post by anderson.bastos »

I believe that at the moment we can close this topic I ended up running the database repair script and the failure does not occur in 3 days.
Thank you very much for your attention.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios locking checks

Post by scottwilkerson »

anderson.bastos wrote:I believe that at the moment we can close this topic I ended up running the database repair script and the failure does not occur in 3 days.
Thank you very much for your attention.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked