You can enable TCP checks by creating a file /etc/atatus-infra-agent/conf.d/tcp_check.d/tcp_check.yml
. For your convenience, we have placed a file called tcp_check.yml.template
in the location /etc/atatus-infra-agent/conf.d/tcp_check.d/
. You can just copy the file as follows:
copy
cd /etc/atatus-infra-agent/conf.d/tcp_check.d/
cp tcp_check.yml.template tcp_check.yml
Once it is copied, you can update the name and hosts of the checks as follows:
copy
checks:
- type: tcp
name: mysql
hosts: ["localhost:3306"]
- type: tcp
name: postgres
hosts: ["localhost:5432"]
- type: tcp
name: memcached
hosts: ["localhost:11211"]