diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-03-24 16:34:39 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-03-24 16:34:39 +0000 |
commit | 66065be0e68fdb1e20cef3f142e90efb1a1f5952 (patch) | |
tree | 01f7d6d6f5685f9feb4789cbd393841a25774c70 /src/zabbix_agent | |
parent | 4a98cbb6eecb52025e23ff85e05d87a46ec2bdf3 (diff) | |
download | zabbix-66065be0e68fdb1e20cef3f142e90efb1a1f5952.tar.gz zabbix-66065be0e68fdb1e20cef3f142e90efb1a1f5952.tar.xz zabbix-66065be0e68fdb1e20cef3f142e90efb1a1f5952.zip |
- added "EnableRemoteCommands" option in to configuration file (Eugene)
- BY DEFAULT REMOTE COMMANDS DISABLED
git-svn-id: svn://svn.zabbix.com/trunk@2710 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/zabbix_agent')
-rw-r--r-- | src/zabbix_agent/zabbix_agent.c | 1 | ||||
-rw-r--r-- | src/zabbix_agent/zabbix_agentd.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/zabbix_agent/zabbix_agent.c b/src/zabbix_agent/zabbix_agent.c index 6e18f8f0..8aa7f3e3 100644 --- a/src/zabbix_agent/zabbix_agent.c +++ b/src/zabbix_agent/zabbix_agent.c @@ -28,6 +28,7 @@ static char *CONFIG_HOSTS_ALLOWED = NULL; static int CONFIG_TIMEOUT = AGENT_TIMEOUT; +int CONFIG_ENABLE_REMOTE_COMMANDS = 0; void signal_handler( int sig ) { diff --git a/src/zabbix_agent/zabbix_agentd.c b/src/zabbix_agent/zabbix_agentd.c index 23260e30..5123c260 100644 --- a/src/zabbix_agent/zabbix_agentd.c +++ b/src/zabbix_agent/zabbix_agentd.c @@ -74,6 +74,7 @@ char *CONFIG_LOG_FILE = NULL; int CONFIG_AGENTD_FORKS = AGENTD_FORKS; int CONFIG_NOTIMEWAIT = 0; int CONFIG_DISABLE_ACTIVE = 0; +int CONFIG_ENABLE_REMOTE_COMMANDS = 0; int CONFIG_TIMEOUT = AGENT_TIMEOUT; int CONFIG_LISTEN_PORT = 10050; int CONFIG_SERVER_PORT = 10051; @@ -241,6 +242,7 @@ void init_config(void) {"LogFile",&CONFIG_LOG_FILE,0,TYPE_STRING,PARM_OPT,0,0}, /* {"StatFile",&CONFIG_STAT_FILE,0,TYPE_STRING,PARM_OPT,0,0},*/ {"DisableActive",&CONFIG_DISABLE_ACTIVE,0,TYPE_INT,PARM_OPT,0,1}, + {"EnableRemoteCommands",&CONFIG_ENABLE_REMOTE_COMMANDS,0,TYPE_INT,PARM_OPT,0,1}, {"Timeout",&CONFIG_TIMEOUT,0,TYPE_INT,PARM_OPT,1,30}, {"NoTimeWait",&CONFIG_NOTIMEWAIT,0,TYPE_INT,PARM_OPT,0,1}, {"ListenPort",&CONFIG_LISTEN_PORT,0,TYPE_INT,PARM_OPT,1024,32767}, |