max_concurrent_checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
FCC_Nagios_Support
Posts: 161
Joined: Tue Mar 10, 2020 11:07 am

max_concurrent_checks

Post 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
FCC_Nagios_Support
Posts: 161
Joined: Tue Mar 10, 2020 11:07 am

Re: max_concurrent_checks

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: max_concurrent_checks

Post 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
Locked