Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing columns in the agents table of a group #6183

Closed
Desvelao opened this issue Nov 30, 2023 · 1 comment · Fixed by #6184
Closed

Missing columns in the agents table of a group #6183

Desvelao opened this issue Nov 30, 2023 · 1 comment · Fixed by #6184
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@Desvelao
Copy link
Member

Desvelao commented Nov 30, 2023

Wazuh Rev Browser
4.7.0 04 Chrome, Firefox, Safari, etc

Description

A community user reported there are missing columns in the agent's table of a group. I could replicate the problem.

Evidence:
image

Steps to reproduce

  1. Go to Management > Groups
  2. Select a group
  3. See the agents table

Expected Result
Other columns related to agent info as ID, name, status, etc.. should be displayed.

4.6.0
image

Actual Result
Only the version column is displayed

@Desvelao Desvelao self-assigned this Nov 30, 2023
@Desvelao Desvelao added type/enhancement Enhancement issue type/bug Bug issue level/task Task issue and removed type/enhancement Enhancement issue labels Nov 30, 2023
@Desvelao Desvelao linked a pull request Nov 30, 2023 that will close this issue
6 tasks
@wazuhci wazuhci moved this to In progress in Release 4.7.1 Nov 30, 2023
@Desvelao
Copy link
Member Author

Desvelao commented Nov 30, 2023

Workaround - Patching Wazuh dashboard 4.7.0

ℹ️ This problem will be fixed in a future release.

If you want to fix this problem, it is possible to edit the files of Wazuh dashboard 4.7.0 and solve the problem.

⚠️ The application of the patch is under your responsibility, which could cause the Wazuh dashboard to not work.

Steps:
0. Backup the files:

  • /usr/share/wazuh-dashboard/plugins/wazuh/target/public/wazuh.chunk.10.js
  • /usr/share/wazuh-dashboard/plugins/wazuh/target/public/wazuh.chunk.10.js.gz
  • /usr/share/wazuh-dashboard/plugins/wazuh/target/public/wazuh.chunk.10.js.br
  1. Ensure the brotli and gzip packages are installed. These are required to recreate some files. The installation of these depends on you operating system.

  2. Apply the path:

cd /usr/share/wazuh-dashboard
sed -i 's|field:"version",name:"Version",align:"left",searchable:true,sortable:true,show:true|field:"version",name:"Version",align:"left",searchable:true,sortable:true|' ./plugins/wazuh/target/public/wazuh.chunk.10.js
gzip -c ./plugins/wazuh/target/public/wazuh.chunk.10.js > ./plugins/wazuh/target/public/wazuh.chunk.10.js.gz
brotli -c ./plugins/wazuh/target/public/wazuh.chunk.10.js > ./plugins/wazuh/target/public/wazuh.chunk.10.js.br
  1. Clear the browser files cache

  2. You should see the missing columns there.

image

If you get any problem with the patch, restore the backup files.

Note this patch is lost if upgrading or changing the version of the installed Wazuh dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants