I need help in setting up consul health check for my data system

I am trying to set up consul checks using a custom script. Everytime I try to define it in the json file, it fails with TTL error, though it’s not a TTL check.
Have a look at the json file:
{
“service”: {
“id”: “test”,
“name”: “testname”,
“check”: {
“id”: “mem-util”,
“name”: “Memory utilization”,
“args”: ["/usr/local/bin/check_mem.py", “-limit”, “256MB”],
“interval”: “10s”,
“timeout”: “1s”
}
}
}