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