SURVIVOR: daytime Check Module
About daytime
basics
Module Type Scheduler Remote
check Yes Yes
syntax
     module daytime {
       server <string>
       [warn <number>]
       [prob <number>]
     }
 

Dependencies

Arguments

Name Type Value
server string Daytime (RFC 867) server to check the time against.
warn optional relation Minimum time offset to generate a warning. This argument is required if prob is not specified.
prob optional string list Minimum time offset to generate a problem. This argument is required if warn is not specified.

Description

The daytime module uses the Net::Time Perl module to determine the time difference between a reference host and the host to be checked. When used as a remote module, time() is used to determine the time on the remote host.

Examples

  1. To generate a warning if a host is off by 60 or more seconds or generate a problem if off by 300 or more:
         module daytime {
           server sundial.columbia.edu
           warn 60
           prob 300
         }
         
  2. To generate a problem if a host is off by 300 or more seconds:
         module daytime {
           server sundial.columbia.edu
           prob 300
         }
         

Design Errors

The daytime module will report hosts as problems/warnings if they are in different time zones.

Additionally, because daytime uses time() to obtain the host time, there will be an ambiguity during fall daylight savings in comparing the host time against the reference time.

Use of the time module is recommended absent a specific reason to use this module.


$Date: 2006/11/19 18:48:38 $
$Revision: 0.8 $
keywords
prob
server
warn