no check_interval for generic-host ?

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
Bibelo
Posts: 2
Joined: Mon Apr 04, 2011 3:44 am

no check_interval for generic-host ?

Post by Bibelo »

Hello everyone !

I'm facing problems with latency. We've got Nagios 3.2.0 and we're monitoring almost 800 hosts, with one service for each.

I'm taking over the adminsitration of the Nagios server so I'm not fully aware of the choices of configuration that have been made, but I guess that so far, hosts and services are both pinged, which is useless for us, because we care only about the services.

To be sure of that, I ran nagios3stats with this result :

Code: Select all

Total Hosts:                            758
Hosts Checked:                          758
Hosts Scheduled:                        758
Hosts Actively Checked:                 758
Host Passively Checked:                 0


Total Services:                         843
Services Checked:                       843
Services Scheduled:                     843
Services Actively Checked:              843
Services Passively Checked:             0
So is it ok to say that hosts and services are both checked ?

I want to know how often the check hosts are done. The nagios3 -s command gives me :

Code: Select all

HOST SCHEDULING INFORMATION
---------------------------
Total hosts:                     758
Total scheduled hosts:           758
Host inter-check delay method:   SMART
Average host check interval:     300.00 sec
Host inter-check delay:          0.40 sec
Max host check spread:           30 min
So it seems here that hosts are checked every 5 min, right ?

The hosts definitions are using the generic-host template, but it seems there's no check_interval defined :

Code: Select all

define host{
        name                            generic-host    ; The name of this host template
        notifications_enabled           0       ; Host notifications are enabled
        event_handler_enabled           1       ; Host event handler is enabled
        flap_detection_enabled          1       ; Flap detection is enabled
        failure_prediction_enabled      1       ; Failure prediction is enabled
        process_perf_data               1       ; Process performance data
        retain_status_information       1       ; Retain status information across program restarts
        retain_nonstatus_information    1       ; Retain non-status information across program restarts
        check_command                   check-host-alive
## SR max_check_attempts              3
        max_check_attempts              3
        notification_interval           0
        notification_period             24x7
        notification_options            d,u,r
        contact_groups                  admins
        register                        0       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
So where does Nagios take its value for the check_interval for the hosts ?

Thank you for any answer you would give me !
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: no check_interval for generic-host ?

Post by mguthrie »

If there is a default value, you could check the nagios.cfg file. Otherwise you may want to specify an appropriate check_interval in your templates.

We recently did some performance studies with Nagios XI. Take a look at this document (ignore the sections on the XI interface), but the rest of the concepts for managing your check load should still be applicable for Core.
http://library.nagios.com/library/produ ... erformance
Locked