Template usage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Template usage

Post 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 ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Template usage

Post 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.
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: Template usage

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Template usage

Post 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 . . .).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
wiproltdwiv
Posts: 281
Joined: Sat Sep 08, 2012 12:52 am

Re: Template usage

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Template usage

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked