Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Fix regex of gvmcg titles for get_performance command #413

Merged
merged 2 commits into from
Jun 14, 2021
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- Do not start all queued scans simultaneously once available memory is enough. [#401](https://github.com/greenbone/ospd/pull/401)
- Remove the pid file if there is no process for the pid or the process name does not match. [#405](https://github.com/greenbone/ospd/pull/405)
- Fix regex of gvmcg titles for get_performance command. [#413](https://github.com/greenbone/ospd/pull/413)

[Unreleased]: https://github.com/greenbone/ospd/compare/v20.8.2...HEAD

Expand Down
16 changes: 8 additions & 8 deletions ospd/command/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,21 @@ def handle_xml(self, xml: Element) -> bytes:


GVMCG_TITLES = [
'cpu-*',
'cpu-.*',
'proc',
'mem',
'swap',
'load',
'df-*',
'df-.*',
'disk-sd[a-z][0-9]-rw',
'disk-sd[a-z][0-9]-load',
'disk-sd[a-z][0-9]-io-load',
'interface-eth*-traffic',
'interface-eth*-err-rate',
'interface-eth*-err',
'sensors-*_temperature-*',
'sensors-*_fanspeed-*',
'sensors-*_voltage-*',
'interface-eth.*-traffic',
'interface-eth.*-err-rate',
'interface-eth.*-err',
'sensors-.*_temperature-.*',
'sensors-.*_fanspeed-.*',
'sensors-.*_voltage-.*',
'titles',
] # type: List[str]

Expand Down