About time
|
basics
|
|
syntax
|
module time {}
or
module time {}
via <transport>
or
module time {
server <string>
[warn <number>]
[prob <number>]
}
|
Dependencies
Arguments
Name |
Type |
Value |
server |
string |
RFC 868 time
server to check the time against.
|
warn |
optional number greater than zero |
Minimum time offset to generate a warning.
|
prob |
optional number greater than zero |
Minimum time offset to generate a problem.
|
One of warn or prob must be specified.
Description
The time moduleuses the Net::Time Perl module to
determine the time difference between a reference host and the host
to be checked by comparing machine readable time (epoch seconds).
When used as a remote module, time() is used to determine
the time on the remote host.
Examples
- To compare time against sundial.columbia.edu, warning if
the time is off by 60 seconds and generating a problem if the time
is off by 300 seconds:
module time {
server sundial.columbia.edu
warn 60
prob 300
}
$Date: 2006/11/19 22:06:40 $
$Revision: 0.8 $
|
keywords
prob
server
warn
|