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

Commit

Permalink
Merge pull request #414 from greenbone/mergify/bp/master/pr-413
Browse files Browse the repository at this point in the history
Fix regex of gvmcg titles for get_performance command (backport #413)
  • Loading branch information
Kraemii authored Jun 14, 2021
2 parents 4937b40 + be5ceb7 commit cd60fb4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,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

0 comments on commit cd60fb4

Please sign in to comment.