Page 1 of 1

Very high load with many SNMP checks

Posted: Mon Jun 01, 2020 8:37 am
by BanditBBS
On my second "large" XI server I run quite a few SNMP checks of network equipment using check_nwc_health plugin from console labs. I have used this plugin for years with no issue but this is by far the most network checks I have done in XI. It is causing quite a high load on on my XI host that I had to set a limit on concurrent checks(which is causing issues of its own). Does anyone have experience with a ton of SNMP checks or the check_nwc_health plugin to tell me if it is the SNMP polling itself or the plugin that is causing the high load? And any hints on system settings I could make to alleviate some of the load?

Re: Very high load with many SNMP checks

Posted: Tue Jun 02, 2020 9:10 am
by ssax
Please PM me a copy of your profile, you can download it from Admin > System Profile > Download Profile and I'll take a look to see what's going on.

Re: Very high load with many SNMP checks

Posted: Tue Jun 02, 2020 3:22 pm
by ssax
It certainly looks like it's just check_nwc_health that's causing the problem. I see a few others experiencing it on google without any resolution.

Are you running the latest version of the plugin? Which version?

You could always setup gearman and split the checks to external workers to spread out the load.
-- This would be your next step anyways as you already have a RAMDisk

https://assets.nagios.com/downloads/nag ... ios_XI.pdf
https://support.nagios.com/kb/article.php?id=484

Let's check the DB tables sizes:
- 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
Thanks!