Closed Mikagami closed 7 years ago
I have been trying to get the new version of cachet-monitor up and running but I am running into an issue that I can't find the answer to...
When I run the process I get the following error:
Here is my entire config file but I am not seeing the extra '}'. Any one have an idea?
{ "api": { "url": "MyCachet URL", "token": "MyToken", "insecure": false }, "date_format": "02/01/2006 15:04:05 PST", "monitors": [ { "name": "Site#1", "target": "Site1-Target", "strict": true, "method": "POST", "component_id": 1, "interval": 10, "timeout": 5, "threshold": 80, "expected_status_code": 200, }, { "name": "Site#2", "target": "Site2-Target", "strict": true, "method": "POST", "component_id": 2, "interval": 10, "timeout": 5, "threshold": 80, "expected_status_code": 200, }, { "name": "Site#3", "target": "Site3-Target", "strict": true, "method": "POST", "component_id": 4, "interval": 10, "timeout": 5, "threshold": 80, "expected_status_code": 200, }, { "name": "Site#4", "target": "Site4-Target", "strict": true, "method": "POST", "component_id": 8, "interval": 10, "timeout": 5, "threshold": 80, "expected_status_code": 200, }, { "name": "Site#5", "target": "Site5-Target", "strict": true, "method": "POST", "component_id": 9, "interval": 10, "timeout": 5, "threshold": 80, "expected_status_code": 200, } ] }
Your JSON config is invalid..
See this tool: http://jsonlint.com/
Those commas at the end of each Monitor! Thanks for the tool link. Going to be using that a lot from now on. 👍
I have been trying to get the new version of cachet-monitor up and running but I am running into an issue that I can't find the answer to...
When I run the process I get the following error:
Here is my entire config file but I am not seeing the extra '}'. Any one have an idea?