Current time: 03-04-2021, 11:30 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebPageTest Agent Healthcheck
11-05-2017, 07:44 AM
Post: #1
WebPageTest Agent Healthcheck
I'm new to WebPageTest and looking into running this in a test environment.

I've currently set this up locally on a mac, using docker for the WPT Server and Agent.

I wanted a way to perform a healthcheck to indicate if the agent is running, and came across this python script -

Background: The reason for the healthcheck, is that there will be a service making healthcheck pings to agents to ensure the agent is running.

Looking at the python script (, the script needs to be running on the same instance/container as the agent and it will check 2 things
1. The process uptime in /proc/uptime
2. An ALIVE_FILE (which needs to be pointing to something), passed in as an option (see:

Question: I would like to know is there already another file that gets updated that could be referenced as an ALIVE_FILE (ideally a log file?).
Or if there is a log file in the container / a way to configure a log file within the docker container?

I also had a look at the agent container logs (running: docker logs --tail <container>), I see this as output:
02:12:25.380 - Get Work Error: None
02:12:30.505 - Get Work Error: None

Question: Is there a way to have this log to a file?
Find all posts by this user
Quote this message in a reply
11-07-2017, 09:54 AM
Post: #2
RE: WebPageTest Agent Healthcheck
I don't know much about the python script you're referencing, but I find that using the /getTesters.php and /getLocations.php files on the wpt server provide a good summary of knowing how your agents are performing.
Find all posts by this user
Quote this message in a reply
11-08-2017, 10:00 AM
Post: #3
RE: WebPageTest Agent Healthcheck
Thanks for the reply Smile

Hm, in my case, we need to check the agents directly.

For example consider the case where:
The server is running and agent is running but there could be issues with network which might prevent the agent registering with the server

So ideally checking something on the agent would be ideal.

Workaround 1: We could run docker commands remotely on the agent to check /proc/uptime I suppose
Find all posts by this user
Quote this message in a reply
05-31-2019, 01:10 AM
Post: #4
RE: WebPageTest Agent Healthcheck
Does anyone have a workaround for adding healthcheck to wptagent?

I'm trying to run a wptagent docker container on AWS and have some healthchecks running. Saw this http healthcheck responder. But wondering if anyone has baked this healthcheck into the wptagent docker container.
Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump:

User(s) browsing this thread: 1 Guest(s)