DOKK / manpages / debian 12 / uptimed / uptimed.conf.5.en
UPTIMED.CONF(5) UPTIMED.CONF(5)

uptimed.conf - The configuration file for uptimed(8)

uptimed.conf contains a list of key-value pairs to configure the behaviour of uptimed(8), comments start with #. The beginning of uptimed.conf might look like the following:

# Uptimed configuration file.
# Interval to write the logfile with in seconds.
UPDATE_INTERVAL=3600
# Maximum number of entries in logfile. Set to 0 for unlimited.
LOG_MAXIMUM_ENTRIES=500

The variables LOG_MINIMUM_UPTIMED, MAIL_MINIMUM_UPTIME and MILESTONE expect a time unit which are encoded by a single letter. h is used for hour, d is used for day, w is used for weeks and y is used for years. Default (nothings specified) is seconds.

The default uptimed.conf is quite well commented so you should be able to use it as a basis. The following keys are supported:

Interval to write the logfile with in seconds, e.g. 60.
Maximum number of entries in logfile, e.g. 50. Set to 0 for unlimited.
Minimum uptime that must be reached to be considered a record.
Minimum uptime before sending out e-mail.
Minimum position in uptime ranking before sending out e-mail.
Email address to mail milestones/records to. Assumes sendmail(8) compatible MTA installed as /usr/lib/sendmail. You can enable this with SEND_EMAIL or with the -e option on the commandline.
Controls if email is sent. Use 0 if you never want an email, 1 if you want emails for both milestones and records, 2 if you want emails only for milestones and 3 if you want emails only for records.
Command to call a sendmail compatible mailer, e.g. /usr/lib/sendmail -t.
Path to store PID file, e.g. /var/run/uptimed
Configurable milestones. Syntax is pretty easy: MILESTONE=time:description. Keep in mind that the description needs to fit in the window.

MILESTONE=5d:five days
MILESTONE=10d:ten days
MILESTONE=25d:twenty-five days
MILESTONE=50d:fifty days
MILESTONE=10w:ten weeks
MILESTONE=75d:seventy-five days
MILESTONE=100d:hundred days
MILESTONE=150d:hundred and fifty days
MILESTONE=25w:twenty-five weeks
MILESTONE=200d:two hundred days
MILESTONE=250d:250 days
MILESTONE=300d:three hundred days
MILESTONE=50w:fifty weeks
MILESTONE=1y:one year
MILESTONE=400d:four hundred days
MILESTONE=500d:five hundred days
MILESTONE=100w:hundred weeks
MILESTONE=750d:750 days
MILESTONE=1000d:thousand days

This man page was written by Helge Kreutzmann <kreutzm@itp.uni-hannover.de> for the Debian GNU/Linux project but may be used by others.

uptimed(8), uprecords(1)

16 October 2022 uptimed.conf