Page 1 of 1
Template usage
Posted: Wed Jul 10, 2013 12:54 am
by wiproltdwiv
hi,
which one of the below configuration is better for monitoring in nagios tool.
1. configuration individual hosts with parameters like polling interval, re check interval, and check attempt.
2. using template to configure the parameters.
consider we host and service counts are 7000+.
pls suggest which one is better ? and impact of using other one ?
Re: Template usage
Posted: Wed Jul 10, 2013 9:00 am
by slansing
We recommend using templates whenever possible as it is the fastest way to make bulk changes, and the easiest way to control a good amount of objects at any given time.
Re: Template usage
Posted: Fri Jul 12, 2013 8:28 am
by wiproltdwiv
suppose we use single template for 5000 hosts then all checks will happened at single time. Then will application work fine if all checks happen at a single time.
Re: Template usage
Posted: Fri Jul 12, 2013 9:15 am
by abrist
All checks will not happen at the same time, even if all objects inherit timeperiods and intervals from 1 template as Nagios will schedule the checks over the check interval time (unless you have set the interval so short that Nagios cannot finish all the checks before the shared interval is up . . .).
Re: Template usage
Posted: Wed Jul 17, 2013 11:54 am
by wiproltdwiv
My query is once apply configuration will done, so later all services will check as per polling interval. so suppose i use single template for 5000 services and assign polling interval (check interval) as 10 minutes. so all checks will happen at a same time in every 10 minutes, so in that case whether application can handle that much of load.
Re: Template usage
Posted: Wed Jul 17, 2013 1:14 pm
by abrist
wiproltdwiv wrote:so all checks will happen at a same time in every 10 minutes, so in that case whether application can handle that much of load.
This is incorrect. The checks are scheduled every 10 minutes, but the initial checks will be spaced out and subsequent checks may not happen exaclty every 10 minutes as the load may effect the scheduler. Consider nagios as a complex scheduler - it will space the checks out in order to reduce load but will attempt to maintain the interval between subsequent checks.