Advertisement
Guest User

Untitled

a guest
Dec 29th, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. ############################################################
  2. #
  3. # Splunk for OSSEC server configuration
  4. #
  5. ############################################################
  6. #
  7. # Fields:
  8. # [title] : Section header will also be used as the hostname
  9. # '_local' can be used as a macro to automatically
  10. # fill in the system's unqualified hostname
  11. # DISABLED : Boolean. If True, stanza will be ignored.
  12. # AGENT_CONTROL : Command-line to run manage_agents without a password prompt
  13. # MANAGE_AGENTS : Command-line to run agent_control -l without a password prompt
  14. #
  15.  
  16.  
  17.  
  18. #
  19. # Local server, with automatically determined hostname
  20. # Uncomment the second line to enable agent management.
  21. #
  22.  
  23. [_local]
  24. AGENT_CONTROL = sudo /var/ossec/bin/agent_control -l
  25. MANAGE_AGENTS = sudo /var/ossec/bin/manage_agents
  26.  
  27.  
  28.  
  29.  
  30. ###
  31. ### Local server, with explicitly set name
  32. ###
  33. #[myhostname]
  34. #MANAGE_AGENTS = sudo /var/ossec/bin/manage_agents
  35. #AGENT_CONTROL = sudo /var/ossec/bin/agent_control -l
  36.  
  37.  
  38.  
  39. ###
  40. ### Remote server, with SSH key-based authentication and sudo
  41. ###
  42. #[remoteservername]
  43. #MANAGE_AGENTS = sudo /var/ossec/bin/manage_agents
  44. #AGENT_CONTROL = ssh nossec -t -l splunk -i /etc/splunk-poller/id_splunk sudo /var/ossec/bin/agent_control -l
  45.  
  46. [s_3_118]
  47. AGENT_CONTROL = ssh -t 192.168.3.118 -l ossec_for_splunk 'sudo /var/ossec/bin/agent_control -l'
  48. MANAGE_AGENTS = ssh -t 192.168.3.118 -l ossec_for_splunk 'sudo /var/ossec/bin/manage_agents'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement