|
17 | 17 | its('exit_status') { should eq 0 }
|
18 | 18 | end
|
19 | 19 |
|
20 |
| -describe command('ps -ef | grep ossec-monitord') do |
| 20 | +describe command('ps -ef | grep wazuh-monitord') do |
21 | 21 | its('exit_status') { should eq 0 }
|
22 | 22 | end
|
23 | 23 |
|
24 |
| -describe command('ps -ef | grep ossec-logcollector') do |
| 24 | +describe command('ps -ef | grep wazuh-logcollector') do |
25 | 25 | its('exit_status') { should eq 0 }
|
26 | 26 | end
|
27 | 27 |
|
28 |
| -describe command('ps -ef | grep ossec-remoted') do |
| 28 | +describe command('ps -ef | grep wazuh-remoted') do |
29 | 29 | its('exit_status') { should eq 0 }
|
30 | 30 | end
|
31 | 31 |
|
32 |
| -describe command('ps -ef | grep ossec-syscheckd') do |
| 32 | +describe command('ps -ef | grep wazuh-syscheckd') do |
33 | 33 | its('exit_status') { should eq 0 }
|
34 | 34 | end
|
35 | 35 |
|
36 |
| -describe command('ps -ef | grep ossec-analysisd') do |
| 36 | +describe command('ps -ef | grep wazuh-analysisd') do |
37 | 37 | its('exit_status') { should eq 0 }
|
38 | 38 | end
|
39 | 39 |
|
40 |
| -describe command('ps -ef | grep ossec-execd') do |
| 40 | +describe command('ps -ef | grep wazuh-execd') do |
41 | 41 | its('exit_status') { should eq 0 }
|
42 | 42 | end
|
43 | 43 |
|
44 | 44 | describe command('ps -ef | grep wazuh-db') do
|
45 | 45 | its('exit_status') { should eq 0 }
|
46 | 46 | end
|
47 | 47 |
|
48 |
| -describe command('ps -ef | grep ossec-authd') do |
| 48 | +describe command('ps -ef | grep wazuh-authd') do |
49 | 49 | its('exit_status') { should eq 0 }
|
50 | 50 | end
|
51 | 51 |
|
52 |
| -describe command('ps -ef | grep ossec-apid') do |
| 52 | +describe command('ps -ef | grep wazuh-apid') do |
53 | 53 | its('exit_status') { should eq 0 }
|
54 | 54 | end
|
55 | 55 |
|
56 | 56 | # Check OSSEC dir
|
57 | 57 |
|
58 |
| -describe file('/var/ossec/etc/ossec-init.conf') do |
59 |
| - it { should be_symlink } |
60 |
| -end |
61 |
| - |
62 | 58 | describe file('/var/ossec') do
|
63 | 59 | it { should be_directory }
|
64 | 60 | its('mode') { should cmp '0750' }
|
|
73 | 69 | its('group') { should cmp 'ossec' }
|
74 | 70 | end
|
75 | 71 |
|
76 |
| -describe file('/etc/ossec-init.conf') do |
77 |
| - it { should exist } |
78 |
| - its('owner') { should cmp 'root' } |
79 |
| - its('group') { should cmp 'ossec' } |
80 |
| - its('mode') { should cmp '0640' } |
81 |
| -end |
82 |
| - |
83 | 72 | describe file('/var/ossec/etc/shared/default/agent.conf') do
|
84 | 73 | it { should exist }
|
85 | 74 | its('owner') { should cmp 'ossec' }
|
|
0 commit comments