<P>
No no there are a few more parameters which u shall have to look into for service freshness, here i am pasting few that i have configured.<BR>
<BR>
1.)services.cfg::max_check_attempts 3(to recheck the service in case the check fails due to<BR>
service check collision)<BR>
<BR>
2.)nagios.cfg::service_interleave_factor s(Interleaving the service checks allows for a more<BR>
even distribution of service checks and reduced load on remote hosts)<BR>
<BR>
3.)nagios.cfg::max_concurrent_checks 0(0 value is to allow concurrent checks)<BR>
<BR>
4.)nagios.cfg::service_inter_check_delay_method s(This is the method that Nagios should use when initially<BR>
# "spreading out" service checks when it starts monitoring. to space all service checks out evenly to minimize<BR>
 CPU load.)<BR>
<BR>
5.)nagios.cfg::service_reaper_frequency 10( This is the frequency (in seconds!) that Nagios will process<BR>
# the results of services that have been checked.)<BR>
 <BR>
Also the parameter check_freshness and check_interval ..<BR>
<BR>
<BR>
U shall have to strike a good balance to work out for urself.<BR>
<BR>
Thanks.<BR>
Vivek<BR>
On Sun, 10 Apr 2005 Artur D'Assumpção wrote :<BR>
>Someone explain could explain me the correct behavior for freshness checkings please? It's driving me crazy.<BR>
><BR>
>The main configuration has:<BR>
><BR>
>service_freshness_check_interval=60<BR>
><BR>
>So I supose that this will define de check rate for the services freshness check.<BR>
><BR>
>Then, for every service I use the same template, where I have the following configurations:<BR>
><BR>
><BR>
>    check_command        service-is-stale<BR>
>    check_freshness        1<BR>
>    freshness_threshold    300<BR>
>    parallelize_check        1<BR>
>    max_check_attempts    2<BR>
>    normal_check_interval           2<BR>
>    retry_check_interval            2<BR>
><BR>
>So the logical behavior for me, is that everytime nagios will trigger a freshness check (each 60s in this case), if the last submited check sample for a given service is  more than 300s old  it will  declare that service staled and  run  service-is-stale. Now, i'm pretty shure that samples are being fed in a +-120s rate, and I'm having a lot of status changes from OK to UNKNOWN (returned from the service-is-stale)! Here it it goes some interestings logs:<BR>
><BR>
>Apr 10 16:26:17 sr-0 nsca[13018]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] System Load', Return Code: '1', Output: 'WARNING - load average: 1.00, 1.00, 1.00'<BR>
>Apr 10 16:26:47 sr-0 nsca[30732]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] Disk Usage', Return Code: '0', Output: 'DISK OK - free space: / 3692 MB (64%):'<BR>
>Apr 10 16:27:07 sr-0 nsca[23332]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] Swap Usage', Return Code: '0', Output: 'SWAP OK: 100% free (494 MB out of 494 MB)'<BR>
>Apr 10 16:27:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SYS] System Load;1;WARNING - load average: 1.00, 1.00, 1.00<BR>
>Apr 10 16:27:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SYS] Disk Usage;0;DISK OK - free space: / 3692 MB (64%):<BR>
>Apr 10 16:27:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SYS] Swap Usage;0;SWAP OK: 100% free (494 MB out of 494 MB)<BR>
>Apr 10 16:27:37 sr-0 nsca[29813]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SRV] SSH', Return Code: '0', Output: 'SSH OK - OpenSSH_3.9p1 (protocol 2.0)'<BR>
>Apr 10 16:28:08 sr-0 nsca[17504]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] Interfaces', Return Code: '0', Output: 'OK - interfaces lo eth0 tun0 are up'<BR>
>Apr 10 16:28:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SRV] SSH;0;SSH OK - OpenSSH_3.9p1 (protocol 2.0)<BR>
>Apr 10 16:28:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SYS] Interfaces;0;OK - interfaces lo eth0 tun0 are up<BR>
>Apr 10 16:28:17 sr-0 nsca[13184]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] System Load', Return Code: '1', Output: 'WARNING - load average: 1.00, 1.00, 1.00'<BR>
><BR>
>---- SERVICES WHERE OK WHEN REACHED HERE ----<BR>
>---- SERVICES CHANGED TO UNKNOWN AFTER THIS NEXT BLOCK ----<BR>
><BR>
>Apr 10 16:28:17 sr-0 nagios: Warning: The results of service '[SYS] Disk Usage' on host 'compal.pt_sfci-dr-1' are stale by 40 seconds (threshold=500 seconds).  I'm forcing an immediate check of the service.<BR>
>Apr 10 16:28:17 sr-0 nagios: Warning: The results of service '[SYS] Swap Usage' on host 'compal.pt_sfci-dr-1' are stale by 40 seconds (threshold=500 seconds).  I'm forcing an immediate check of the service.<BR>
>Apr 10 16:28:47 sr-0 nsca[10633]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] Disk Usage', Return Code: '0', Output: 'DISK OK - free space: / 3692 MB (64%):'<BR>
>Apr 10 16:29:07 sr-0 nsca[6978]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] Swap Usage', Return Code: '0', Output: 'SWAP OK: 100% free (494 MB out of 494 MB)'<BR>
>Apr 10 16:29:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SYS] System Load;1;WARNING - load average: 1.00, 1.00, 1.00<BR>
>Apr 10 16:29:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SYS] Disk Usage;0;DISK OK - free space: / 3692 MB (64%):<BR>
>Apr 10 16:29:10 sr-0 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;compal.pt_sfci-dr-1;[SYS] Swap Usage;0;SWAP OK: 100% free (494 MB out of 494 MB)<BR>
><BR>
>The last 2nd block of logs, and correct me if i'm wrong, shows me that something is not ok here, first of all services are being considered staled near 2 mins after a submited check:<BR>
><BR>
>Apr 10 16:27:07 sr-0 nsca[23332]: SERVICE CHECK -> Host Name: 'compal.pt_sfci-dr-1', Service Description: '[SYS] Swap Usage', Return Code: '0', Output: 'SWAP OK: 100% free (494 MB out of 494 MB)'<BR>
><BR>
>Apr 10 16:28:17 sr-0 nagios: Warning: The results of service '[SYS] Swap Usage' on host 'compal.pt_sfci-dr-1' are stale by 40 seconds (threshold=500 seconds).  I'm forcing an immediate check of the service.<BR>
><BR>
>Then i'm looking to a 500s threshold and 40s stale that i've never defined, and I'm shure of this, because all my objects, and they're are very few for this testing environment, uses the same template that i've shown before. Could be this any default value that is not being overided? If it is, I can't find any reference to it in the documentation.<BR>
><BR>
>I'm using nagios 2.0b.<BR>
><BR>
>I'd be very thankfull with some help in this subject please.<BR>
><BR>
>AD<BR>
><BR>
><BR>
><BR>
><BR>
><BR>
>-------------------------------------------------------<BR>
>SF email is sponsored by - The IT Product Guide<BR>
>Read honest & candid reviews on hundreds of IT Products from real users.<BR>
>Discover which products truly live up to the hype. Start reading now.<BR>
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click<BR>
>_______________________________________________<BR>
>Nagios-users mailing list<BR>
>Nagios-users@lists.sourceforge.net<BR>
>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>
>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null<BR>

</P>


<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0></a>