Page 1 of 1

max_concurrent_checks

Posted: Sun Jul 26, 2020 10:01 am
by FCC_Nagios_Support
Hi,
I read one way to limit concurrents services check was set max_concurrent_checks with a value. My intention was reduce CPU usage.
I was surprised that the impact was the reverse and Nagios hungs and starting to create new system message queues, ndo2db start to queue and service nagios shows nproc limit reached.
So a dissaster.
I do not recommend use that flag in order to decrease CPU and Memory Usage. It got me confused.
I woudl like when is usable that flag.
It was an experience!

KR

Re: max_concurrent_checks

Posted: Sun Jul 26, 2020 10:05 am
by FCC_Nagios_Support
Also, the table logentries and the file regarding to started to increase as a gigant. And became crashed
I had to truncate several times.

KR

Re: max_concurrent_checks

Posted: Mon Jul 27, 2020 12:22 pm
by ssax
My assumption is that you limited the checks but everything else queued up and eventually overloaded the system because it wasn't processing fast enough.

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

Attach these files:

Code: Select all

/etc/my.cnf
/etc/php.ini
Send the output of these commands as root:

Code: Select all

sysctl -p
ulimit -a
su -s /bin/sh -c 'ulimit -a' nagios
su -s /bin/sh -c 'ulimit -a' mysql
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
This command may fail, that's okay as some systems do not have postgresql:

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