-
Notifications
You must be signed in to change notification settings - Fork 786
Fix mikrotik_routeros_system_resource_print #2286
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,12 +4,12 @@ Value UPTIME_DAYS (\d+) | |
| Value UPTIME_HOURS (\d+) | ||
| Value UPTIME_MINUTES (\d+) | ||
| Value UPTIME_SECONDS (\d+) | ||
| Value VERSION (.+) | ||
| Value BUILD_TIME ([A-Za-z]{3}\/\d{1,2}\/\d{4} \d{2}:\d{2}:\d{2}) | ||
| Value FACTORY_SOFTWARE (\S+) | ||
| Value VERSION (\S+(?:\s+\S+)*) | ||
| Value BUILD_TIME ((\d{4}-\d{2}-\d{2}|[A-Za-z]{3}\/\d{1,2}\/\d{4}) \d{2}:\d{2}:\d{2}) | ||
| Value FACTORY_SOFTWARE (\S+(?:\s+\S+)*) | ||
| Value FREE_MEMORY (\d+\.\d{1}(K|M|G)iB) | ||
| Value TOTAL_MEMORY (\d+\.\d{1}(K|M|G)iB) | ||
| Value CPU (.+) | ||
| Value CPU (\S+(?:\s+\S+)*) | ||
| Value CPU_COUNT (\d+) | ||
| Value CPU_FREQUENCY (\d+(M|G)Hz) | ||
| Value CPU_LOAD (\d{1,3}%) | ||
|
|
@@ -18,9 +18,9 @@ Value TOTAL_HDD_SPACE (\d+\.\d{1}(K|M|G)iB) | |
| Value WRITE_SECT_SINCE_REBOOT (\d+) | ||
| Value WRITE_SECT_TOTAL (\d+) | ||
| Value BAD_BLOCKS (\d{1,3}(\.\d+)?%) | ||
| Value ARCHITECTURE_NAME (\S*) | ||
| Value BOARD_NAME (.+) | ||
| Value PLATFORM (.+) | ||
| Value ARCHITECTURE_NAME (\S+(?:\s+\S+)*) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. None of the |
||
| Value BOARD_NAME (\S+(?:\s+\S+)*) | ||
| Value PLATFORM (\S+(?:\s+\S+)*) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| Start | ||
| ^\s*uptime\:\s+${UPTIME}\s*$$ -> Continue | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| uptime: 7w5d6h42m45s | ||
| version: 7.16.1 (stable) | ||
| build-time: 2024-10-10 14:03:32 | ||
| factory-software: 6.41.3 | ||
| free-memory: 178.4MiB | ||
| total-memory: 256.0MiB | ||
| cpu: MIPS 1004Kc V2.15 | ||
| cpu-count: 4 | ||
| cpu-frequency: 880MHz | ||
| cpu-load: 1% | ||
| free-hdd-space: 5.5MiB | ||
| total-hdd-space: 16.0MiB | ||
| write-sect-since-reboot: 12691 | ||
| write-sect-total: 576299 | ||
| architecture-name: mmips | ||
| board-name: hEX S | ||
| platform: MikroTik |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| parsed_sample: | ||
| - architecture_name: "mmips" | ||
| bad_blocks: "" | ||
| board_name: "hEX S" | ||
| build_time: "2024-10-10 14:03:32" | ||
| cpu: "MIPS 1004Kc V2.15" | ||
| cpu_count: "4" | ||
| cpu_frequency: "880MHz" | ||
| cpu_load: "1%" | ||
| factory_software: "6.41.3" | ||
| free_hdd_space: "5.5MiB" | ||
| free_memory: "178.4MiB" | ||
| platform: "MikroTik" | ||
| total_hdd_space: "16.0MiB" | ||
| total_memory: "256.0MiB" | ||
| uptime: "7w5d6h42m45s" | ||
| uptime_days: "5" | ||
| uptime_hours: "6" | ||
| uptime_minutes: "42" | ||
| uptime_seconds: "45" | ||
| uptime_weeks: "7" | ||
| version: "7.16.1 (stable)" | ||
| write_sect_since_reboot: "12691" | ||
| write_sect_total: "576299" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| uptime: 2h14m31s | ||
| version: 7.18.2 (stable) | ||
| build-time: 2025-03-11 11:59:04 | ||
| factory-software: 7.4.1 | ||
| free-memory: 845.8MiB | ||
| total-memory: 1024.0MiB | ||
| cpu: ARM64 | ||
| cpu-count: 4 | ||
| cpu-frequency: 350MHz | ||
| cpu-load: 1% | ||
| free-hdd-space: 992.3MiB | ||
| total-hdd-space: 1024.0MiB | ||
| write-sect-since-reboot: 40 | ||
| write-sect-total: 315102 | ||
| bad-blocks: 0% | ||
| architecture-name: arm64 | ||
| board-name: RB5009UG+S+ | ||
| platform: MikroTik |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| parsed_sample: | ||
| - architecture_name: "arm64" | ||
| bad_blocks: "0%" | ||
| board_name: "RB5009UG+S+" | ||
| build_time: "2025-03-11 11:59:04" | ||
| cpu: "ARM64" | ||
| cpu_count: "4" | ||
| cpu_frequency: "350MHz" | ||
| cpu_load: "1%" | ||
| factory_software: "7.4.1" | ||
| free_hdd_space: "992.3MiB" | ||
| free_memory: "845.8MiB" | ||
| platform: "MikroTik" | ||
| total_hdd_space: "1024.0MiB" | ||
| total_memory: "1024.0MiB" | ||
| uptime: "2h14m31s" | ||
| uptime_days: "" | ||
| uptime_hours: "2" | ||
| uptime_minutes: "14" | ||
| uptime_seconds: "31" | ||
| uptime_weeks: "" | ||
| version: "7.18.2 (stable)" | ||
| write_sect_since_reboot: "40" | ||
| write_sect_total: "315102" |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
factory softwaredata provided does not require a change to the regex as there only appears to be one word (not two words/strings separated with a space).Do you have data that shows a version separated with a space?