ntplogtemp [-h] [-l LOGFILE] [-o] [-w WAIT] [-v] [-V]
-h, --help show this help message and exit -l LOGFILE, --logfile LOGFILE append log data to LOGFILE instead of stdout -q, --quiet be quiet -o, --once log one line, then exit -w WAIT, --wait WAIT wait WAIT seconds after each log line, default 60 -v, --verbose be verbose -V, --version show program's version number and exit
ntplogtemp gathers temperature readings across a system. The standard user is ntpuser and should have permissions to execute lm_sensors and smartctl.
The default is to write the data to stdout once every 60 seconds. The log file looks like:
# time, sensor, value 1485816568 ZONE0 39.0 1485816568 ZONE1 20.0 1485816568 ZONE2 42.0 1485816568 ZONE3 0.0
Time is the POSIX time of when the log line is written.
Sensor is the sensor the temperature reading was obtained from.
Value is the temperature reading in celsius.
-h, --help
-l LOGFILE, --logfile LOGFILE
-q, --quiet
-o, --once
-v, --verbose
-w WAIT, --wait WAIT
-V, --version
ntplogtemp
ntplogtemp -l /var/log/ntpstats/temperature -w 60 &
One of the following exit values will be returned:
0 (EXIT_SUCCESS)
1 (EXIT_FAILURE)
Gary E. Miller
One of the following exit values will be returned:
0 (EXIT_SUCCESS)
1 (EXIT_FAILURE)