Question about host checks

Simone Felici s.felici at alpikom.it
Tue Nov 25 10:04:18 CET 2008


Hi to all!

I'm using nagios for a long time and this is the first time I ask a question... it means until today all is gone 
perfectly, great product!
A week ago I've installed 'ndoutils-1.4b7' to log into a MySQL server.
After some days I've seen the table 'nagios_hostchecks' is groving up very fast, its 3 times bigger than 
'nagios_servicechecks' even if I've 688 hosts and 1346 services, also more services than hosts.
Analyzing the content of the 'nagios_hostchecks' table, I've seen It seems Nagios is checking the host status VERY OFTEN.
Also checking the nagios Queue and the "Last Check Time" of my hosts, the date/time is updating every few seconds.
Should not nagios check the host state only on demand when needed? It happens on all my hosts.
I paste an example of one host configuration:


host...

define host {
         host_name                       <cut_my_host>
         alias                           Windows 2000 Server
         address                         <cut_my_ip>
         use                             host_alarm_A
         parents                         <cut_my_sw_parent>
         contact_groups                  noc-group,tech24h-group
}


...template...

define host {
         name                            host_alarm_A
         process_perf_data               0
         retain_status_information       1
         flap_detection_enabled          0
         retain_nonstatus_information    1
         active_checks_enabled           1
         passive_checks_enabled          0
         check_period                    24hx7
         obsess_over_host                0
         check_freshness                 0
         check_command                   check-host-alive
         max_check_attempts              2
         event_handler_enabled           0
         notifications_enabled           1
         notification_interval           3600
         notification_period             24hx7
         notification_options            d,u,r
         register                        0
}

...check

define command {
                 command_name                    check-host-alive
                 command_line                    /usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 
5000.0,100% -p 1
}


Any suggestion?

Thank's!

Simon







-- 
Simone Felici                    E-Mail: s.felici at alpikom.it
Divisione Tecnica                Tel:    0461 030 111
Alpikom S.p.A.                   Fax:    0461 030 112
v.Fersina, 23 - 38100 Trento     URL:    http://www.alpikom.it

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list