Module: Wazuh::Api::Endpoints::Syscheck
- Included in:
- Wazuh::Api::Endpoints, V4::Syscheck
- Defined in:
- lib/wazuh/api/endpoints/syscheck.rb
Instance Method Summary collapse
-
#clear_syscheck_database(agent_id) ⇒ Object
Clears the syscheck database for the specified agent.
-
#last_syscheck_scan(agent_id) ⇒ Object
Return the timestamp of the last syscheck scan.
-
#run_syscheck(agent_id) ⇒ Object
Runs syscheck and rootcheck on an agent (Wazuh launches both processes simultaneously).
-
#run_syscheck_all_agents ⇒ Object
Runs syscheck and rootcheck on all agents (Wazuh launches both processes simultaneously).
-
#syscheck_files(agent_id, options = {}) ⇒ Object
Get syscheck files Returns the syscheck files of an agent.
Instance Method Details
#clear_syscheck_database(agent_id) ⇒ Object
Clears the syscheck database for the specified agent.
44 45 46 |
# File 'lib/wazuh/api/endpoints/syscheck.rb', line 44 def clear_syscheck_database(agent_id) delete "/syscheck/#{agent_id}" end |
#last_syscheck_scan(agent_id) ⇒ Object
Return the timestamp of the last syscheck scan.
53 54 55 |
# File 'lib/wazuh/api/endpoints/syscheck.rb', line 53 def last_syscheck_scan(agent_id) get "/syscheck/#{agent_id}/last_scan" end |
#run_syscheck(agent_id) ⇒ Object
Runs syscheck and rootcheck on an agent (Wazuh launches both processes simultaneously).
69 70 71 |
# File 'lib/wazuh/api/endpoints/syscheck.rb', line 69 def run_syscheck(agent_id) put "/syscheck/#{agent_id}" end |
#run_syscheck_all_agents ⇒ Object
Runs syscheck and rootcheck on all agents (Wazuh launches both processes simultaneously).
60 61 62 |
# File 'lib/wazuh/api/endpoints/syscheck.rb', line 60 def run_syscheck_all_agents put '/syscheck' end |
#syscheck_files(agent_id, options = {}) ⇒ Object
Get syscheck files Returns the syscheck files of an agent.
35 36 37 |
# File 'lib/wazuh/api/endpoints/syscheck.rb', line 35 def syscheck_files(agent_id, = {}) offset_request('get', "/syscheck/#{agent_id}", ) end |