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
max_concurrent_checks
-
FCC_Nagios_Support
- Posts: 161
- Joined: Tue Mar 10, 2020 11:07 am
Re: max_concurrent_checks
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
I had to truncate several times.
KR
Re: max_concurrent_checks
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:
Send the output of these commands as root:
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
This command may fail, that's okay as some systems do not have postgresql:
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.iniCode: Select all
sysctl -p
ulimit -a
su -s /bin/sh -c 'ulimit -a' nagios
su -s /bin/sh -c 'ulimit -a' mysql- 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 --tableCode: 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