1NTPLOGTEMP(1)                       NTPsec                       NTPLOGTEMP(1)
2
3
4

NAME

6       ntplogtemp - log temperature data
7

SYNOPSIS

9       ntplogtemp [-h] [-l LOGFILE] [-o] [-w WAIT] [-v] [-V]
10
11           -h, --help            show this help message and exit
12           -l LOGFILE, --logfile LOGFILE
13                                 append log data to LOGFILE instead of stdout
14           -q, --quiet                                be quiet
15           -o, --once            log one line, then exit
16           -w WAIT, --wait WAIT  wait WAIT seconds after each log line, default 60
17           -v, --verbose         be verbose
18           -V, --version         show program's version number and exit
19

DESCRIPTION

21       ntplogtemp gathers temperature readings across a system. The standard
22       user is ntpuser and should have permissions to execute lm_sensors and
23       smartctl.
24
25       The default is to write the data to stdout once every 60 seconds. The
26       log file looks like:
27
28           # time, sensor, value
29           1485816568 ZONE0 39.0
30           1485816568 ZONE1 20.0
31           1485816568 ZONE2 42.0
32           1485816568 ZONE3 0.0
33
34       Time is the POSIX time of when the log line is written.
35
36       Sensor is the sensor the temperature reading was obtained from.
37
38       Value is the temperature reading in celsius.
39

OPTIONS

41       -h, --help
42           Displays usage information and exits.
43
44       -l LOGFILE, --logfile LOGFILE
45           Append log data to LOGFILE instead of stdout
46
47       -q, --quiet
48           Quiet output, will not display errors
49
50       -o, --once
51           Log the data once, then exit
52
53       -v, --verbose
54           Be verbose
55
56       -w WAIT, --wait WAIT
57           Wait WAIT seconds after each log line. The default is 60 seconds.
58           The minimum wait time is 5 seconds.
59
60       -V, --version
61           show program’s version number and exit
62

USAGE

64       ntplogtemp
65           This the simplest use of this program. It can be used to check the
66           temperature readings of Zones, CPU, and disk drives every minute.
67
68       ntplogtemp -l /var/log/ntpstats/temperature -w 60 &
69           This will continuously log the temperature data in the background
70           to the file /var/log/ntpstats/temperature. Only log every 60
71           seconds.
72

EXIT STATUS

74       One of the following exit values will be returned:
75
76       0 (EXIT_SUCCESS)
77           Successful program execution.
78
79       1 (EXIT_FAILURE)
80           The operation failed or the command syntax was not valid.
81

AUTHORS

83       Gary E. Miller
84
85       Keane S. Wolter
86

EXIT STATUS

88       One of the following exit values will be returned:
89
90       0 (EXIT_SUCCESS)
91           Successful program execution.
92
93       1 (EXIT_FAILURE)
94           The operation failed or the command syntax was not valid.
95
96
97
98NTPsec                            2023-01-02                     NTPLOGTEMP(1)
Impressum