Defaults to /etc/trafficcontro-cache-config/tm-health-client.json
-h, --help
Prints command line usage and exits
-l, --logging-dir=logging-directory
Specify the directory where log files are kept. The default location is /var/log/trafficcontrol-cache-config/
-v, --verbose
Logging verbosity. Errors are logged to the default log file /var/log/trafficcontrol-cache-config/tm-health-client.log To add Warnings, use -v. To add Warnings and Informational logging, use -vv. Finally you may add Debug logging using -vvv.
The configuration file is a JSON file and is looked for by default at /etc/trafficcontrol-cache-config/tm-health-client.json
Sample configuarion file:
{ "cdn-name": "over-the-top", "enable-active-markdowns": false, "reason-code": "active", "to-credential-file": "/etc/credentials", "to-url": "https://tp.cdn.com:443", "to-request-timeout-seconds": "5s", "tm-poll-interval-seconds": "60s", "tm-update-cycles": 5, "trafficserver-config-dir": "/opt/trafficserver/etc/trafficserver", "trafficserver-bin-dir": "/opt/trafficserver/bin", }
The name of the CDN that the Traffic Server host is a member of.
When enabled, the client will actively mark down Traffic Server parents. When disabled, the client will only log that it would have marked down Traffic Server parents. Down Parents are always marked UP if Traffic Monitor reports them available irregardless of this setting.
Use the reason code active or local when marking down Traffic Server hosts in the Traffic Server HostStatus subsystem.
The file where Traffic Ops credentials are read. The file should define the following variables:
The Traffic Ops URL
The time in seconds to wait for a query response from both Traffic Ops and the Traffic Monitors
The polling interval in seconds used to update Traffic Server parent status.
Each time a polling cycle completes a count is incremented. When the count reaches tm-update-cycles, TrafficOps is polled for a new list of available TrafficMonitors for the CDN and the poll count is reset to 0.
The location on the host where Traffic Server configuration files are located.
The location on the host where Traffic Server traffic_ctl tool may be found.