Knock daemon configurations are located in /etc/knock/knockdaemon/
This is the main configuration file (ini format).
Note : we may move to json in future releases.
Important : Specifying agressive values, like for http_send_min_interval_ms or exec_interval_sec, is definitively not allowed. Shipped values are nominal; aggressive values may overload our infrastructure and may force us to shut your namespace.
Section [knockd]
Section [transport]
Sections [knock_PROBE_NAME]
Note : PROBE_NAME is replaced by probe unique name (knock_Memory, knock_Load and so on).
Note : If a probe implementation is not specified in sections below, it has no specific configuration other than common items..
Common properties for all probes :
Section [knock_CheckProcess]
{
"knockdaemon": {
"startup": "/etc/init.d/knockdaemon",
"pid": "/var/run/knockdaemon.pid"
}
}
Section [knock_CheckDns]
dns_host = www.google.com,api.knock.center
Section [knock_Apache]
url = http://127.0.0.1:80/server-status|http://127.0.0.1:8080/server-status|http://127.0.0.1:8090/server-status
Section [knock_Nginx]
url = http://127.0.0.1:80/nginx_status|http://127.0.0.1:8080/nginx_status|http://127.0.0.1:8090/nginx_status
Section [knock_PhpFpm]
url0 = www_a|http://127.0.0.1:80/status|http://127.0.0.1:80/phpfpm-status|http://127.0.0.1:80/php5fpm-status
url1 = www_b|http://127.0.0.1:81/status|http://127.0.0.1:81/phpfpm-status|http://127.0.0.1:81/php5fpm-status
Section [knock_Netstat]
ping_target_server = 127.0.0.1
Section [knock_TimeDiff]
time_target_server = 2.pool.ntp.org
time_http_target_server = https://api.knock.center/
The configuration file specifying your namespace and it associated namespace key (ini format).
Keep this file private.
Section [knockd]
acc_namespace = foocompany
acc_key = FOOAPIKEY