Skip to content

Commit 6e43a04

Browse files
authored
Merge pull request #351 from atomicturtle/docs/issue-138
Clarify active response disable options (#138)
2 parents af81469 + 5dd5cfe commit 6e43a04

4 files changed

Lines changed: 40 additions & 5 deletions

File tree

docs/manual/ar/ar-unix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ figurations>`_.
5555
</active-response>
5656
5757
58-
- **disabled**: Disables the active response capabilities if set to yes. If this is set, active response will not work.
58+
- **disabled**: When set to ``yes``, skips this active-response binding only. See :ref:`ossec_config.active-response` and :ref:`manual-ar`.
5959
- **command**: Used to link the response to the command
6060
- **location**: Where the command should be executed. You have four options:
6161

docs/manual/ar/index.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.. _manual-ar:
12

23
###############
34
Active Response
@@ -8,6 +9,19 @@ These triggers can be specific alerts, alert levels, or rule groups.
89

910
The active response framework is also what allows an OSSEC administrator to start a syscheck scan or restart OSSEC on a remote agent.
1011

12+
Disabling active response
13+
-------------------------
14+
15+
Different configuration elements disable active response at different scopes:
16+
17+
``<active-response>`` with ``<disabled>yes</disabled>``
18+
Skips **one** command binding; other bindings still run.
19+
20+
``<client>`` with ``<disable-active-response>yes</disable-active-response>``
21+
Stops **all** active-response execution on that agent.
22+
23+
See :ref:`ossec_config.active-response` and :ref:`ossec_config.client` for syntax.
24+
1125
Bundled active-response scripts are documented in :ref:`manual-ar-scripts`.
1226

1327
.. toctree::

docs/syntax/ossec_config.active-response.trst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ Active-response Options
3939

4040
- disabled
4141

42-
Disables active response if set to yes. If this is not defined active response is enabled on unix systems, and disabled on Windows systems.
43-
This option is available on server, local, and agent installations.
44-
Setting it to ``yes`` on an agent will disable active-response for that agent only,
45-
while setting it on the server will disable all active-response.
42+
When set to ``yes``, **this** ``<active-response>`` binding is skipped and its
43+
command is not registered. Other active-response blocks without ``disabled`` are
44+
unaffected. If ``disabled`` is omitted, active response is enabled on Unix
45+
systems and disabled on Windows by default.
46+
47+
This option is available on server, local, and agent installations. To disable
48+
all active-response execution on a single agent, use
49+
``<disable-active-response>`` in the agent ``<client>`` section instead (see
50+
:ref:`ossec_config.client`).
4651

4752
- command
4853

docs/syntax/ossec_config.client.trst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,19 @@
5050

5151
**Allowed:** aes, blowfish
5252

53+
- disable-active-response
54+
55+
When set to ``yes``, disables **all** active-response execution on this agent.
56+
The agent will not run any active-response scripts locally, regardless of
57+
individual ``<active-response>`` blocks.
58+
59+
**Default:** no
60+
61+
**Allowed:** yes, no
62+
63+
.. note::
64+
65+
This is an agent-only option inside ``<client>``. To disable a single
66+
active-response binding, use ``<disabled>yes</disabled>`` inside that
67+
``<active-response>`` block instead (see :ref:`ossec_config.active-response`).
68+

0 commit comments

Comments
 (0)