Polling services at 1 minute interval is smacking CPU Load

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
vlakshman
Posts: 27
Joined: Tue Aug 21, 2018 11:03 am

Polling services at 1 minute interval is smacking CPU Load

Post by vlakshman »

Team,

My Nagios server is running on C5.xlarge EC2 AWS instance which has 8 GB RAM and 4 vCPU.
When monitoring some 1000 services at interval of 1 minute the CPU load gets smacked to 300 and Nagios UI rendering goes very slow.
Upgrading instance with more CPU is an option. But I want to know if there are some tweaks available for my need to ensure optimum instance is used to suffice the request.

My custom plugin script execution time is under 10 sec.

My Settings:

1) nagios.cfg: interval_length=60
2) generic-host and generic-service templates: check_interval = 1, retry_interval=1,max_check_attempts=2
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Polling services at 1 minute interval is smacking CPU Lo

Post by benjaminsmith »

Hi @vlakshman,

Besides upgrading your server, I would recommend increasing the check interval to what's necessary for non-critical services.

There is an option in the main configuration file to make several shortcuts to improve performance, you can try setting this value to 1.

Code: Select all

use_large_installation_tweaks=1
Tuning Nagios For Maximum Performance
https://assets.nagios.com/downloads/nag ... uning.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked