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

Add hostname board serial fields to agent inventory #6191

Merged
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to the Wazuh app project will be documented in this file.
### Added

- Support for Wazuh 4.7.2
- Added hostname and board serial to Agents > Inventory data [#6191](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6191)

## Wazuh v4.7.1 - OpenSearch Dashboards 2.8.0 - Revision 01

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exports[`Inventory component A Apple agent should be well rendered. 1`] = `
</div>
</div>
<div
class="euiFlexItem"
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<div
class="euiText euiText--medium"
Expand All @@ -78,6 +78,30 @@ exports[`Inventory component A Apple agent should be well rendered. 1`] = `
/>
</div>
</div>
<div
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<div
class="euiText euiText--medium"
>
Hostname:
<span
class="euiLoadingSpinner euiLoadingSpinner--small"
/>
</div>
</div>
<div
class="euiFlexItem"
>
<div
class="euiText euiText--medium"
>
Board serial:
<span
class="euiLoadingSpinner euiLoadingSpinner--small"
/>
</div>
</div>
<div
class="euiFlexItem euiFlexItem--flexGrowZero"
>
Expand Down Expand Up @@ -2096,7 +2120,7 @@ exports[`Inventory component A Linux agent should be well rendered. 1`] = `
</div>
</div>
<div
class="euiFlexItem"
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<div
class="euiText euiText--medium"
Expand All @@ -2107,6 +2131,30 @@ exports[`Inventory component A Linux agent should be well rendered. 1`] = `
/>
</div>
</div>
<div
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<div
class="euiText euiText--medium"
>
Hostname:
<span
class="euiLoadingSpinner euiLoadingSpinner--small"
/>
</div>
</div>
<div
class="euiFlexItem"
>
<div
class="euiText euiText--medium"
>
Board serial:
<span
class="euiLoadingSpinner euiLoadingSpinner--small"
/>
</div>
</div>
<div
class="euiFlexItem euiFlexItem--flexGrowZero"
>
Expand Down Expand Up @@ -4199,7 +4247,7 @@ exports[`Inventory component A Windows agent should be well rendered. 1`] = `
</div>
</div>
<div
class="euiFlexItem"
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<div
class="euiText euiText--medium"
Expand All @@ -4210,6 +4258,30 @@ exports[`Inventory component A Windows agent should be well rendered. 1`] = `
/>
</div>
</div>
<div
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<div
class="euiText euiText--medium"
>
Hostname:
<span
class="euiLoadingSpinner euiLoadingSpinner--small"
/>
</div>
</div>
<div
class="euiFlexItem"
>
<div
class="euiText euiText--medium"
>
Board serial:
<span
class="euiLoadingSpinner euiLoadingSpinner--small"
/>
</div>
</div>
<div
class="euiFlexItem euiFlexItem--flexGrowZero"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function InventoryMetrics({ agent }) {
)}
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={true}>
<EuiFlexItem grow={false}>
<EuiText>
CPU:{' '}
{syscollector.isLoading ? (
Expand All @@ -105,6 +105,30 @@ export function InventoryMetrics({ agent }) {
)}
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiText>
Hostname:{' '}
{syscollector.isLoading ? (
<EuiLoadingSpinner size='s' />
) : syscollector.data.os.hostname ? (
<strong>{syscollector.data.os.hostname}</strong>
) : (
<strong>-</strong>
)}
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={true}>
<EuiText>
Board serial:{' '}
{syscollector.isLoading ? (
<EuiLoadingSpinner size='s' />
) : syscollector.data.hardware.board_serial ? (
<strong>{syscollector.data.hardware.board_serial}</strong>
) : (
<strong>-</strong>
)}
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiText>
Last scan:{' '}
Expand Down
Loading