-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
[Bug]/system/health doesn't exist #392
Comments
7.17 is not supported. tho I'm not sure how can you be missing /system/health |
/system/health seems to be removed in 7.17rc3. It is present in 7.16.2.
|
Yes, check it out: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Not stale. |
Is your device missing any sensors? Not even temp and voltage? |
There are no sensors on the device. As you see they changed it in 7.17rc3 - if there are no sensors, there is no "/system/health". There are many devices that have no sensors, for example, Audience, hap ac2. |
I just find it weird, but ok. We will need a way to figure out that there are no sensors without api failure on query. |
I have same problem after upgrade to 7.17 on microtik ac3 . Logger: custom_components.mikrotik_router.mikrotikapi Mikrotik 192.168.2.11 error while building list for path /system/health : no such command or directory (health), no such command prefix Microtik ax3, wAP ac with 7.17 - no issues ( maybe ax3 and wAP ac have /system/health sensor ) |
hap ax3 has CPU temperature sensor:
|
Model RBcAPGi-5acD2nD doesn't have health sensors, so the integration fails... |
For all struggling with the issue, just downgrade your router os to previous version. In my case 7.17 ->7.16. After this integration started working normally |
Not sure how to deal with this right now. This is not documented outside of changelog. |
7.17 stable was released on 2025-Jan-16. |
works for me
|
for device cAP ac (https://mikrotik.com/product/cap_ac) there are no health sensors so they are hiding on 7.17 stable version |
Did you try it? |
Wrong. I'm using a cAP ac (the round one) and the workaround works fine... |
On hAP ac^2 with this patch I get the message "'MikrotikCoordinator' object has no attribute 'minor_fw_version'". So I fixed it temporarily by changing it to: elif (0 < self.major_fw_version >= 8): Not ideal, but it works. |
I guess is related with syntax issue can you please share coordinator.py file? :) |
There is an issue with this fix. /system/health sensors won't show up on the routers that have them (if the integration manages several routers). |
I have the same problem with some of my Mikrotiks, so I can't use the workaround. |
We need to collect statistics, but it seems to me that 'health' is only on ARM and ARM64 (maybe on x86), but not on MIPS. And then it will be possible to add more checks by CPU. |
Also on tile:
|
...and also on MIPS.
|
Powerbox Pro also mipsbe with voltage and temperature sensors ... |
Alternatively, 'check_path' function can be added to mikrotikapi.py and check for the existence of '/system/health' in the 'get_system_health' function. |
Describe the issue
Router doesn't have a /system/health entry. Integration continuously prints messages "2024-12-19 18:13:16.066 ERROR (SyncWorker_4) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 10.1.1.2 error while building list for path /system/health : no such command or directory (health), no such command prefix" to the log.
How to reproduce the issue
Configure any Mikrotik router without /system/health (for example Audience).
Expected behavior
No error
Software versions
All fields in this sections are required.
Traceback/Error logs
2024-12-19 12:52:21.025 WARNING (SyncWorker_3) [custom_components.mikrotik_router.mikrotikapi] Mikrotik Reconnected to 10.1.1.2
2024-12-19 12:52:21.042 ERROR (SyncWorker_1) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 10.1.1.2 error while building list for path /system/health : no such command or directory (health), no such command prefix
2024-12-19 12:52:51.018 WARNING (SyncWorker_6) [custom_components.mikrotik_router.mikrotikapi] Mikrotik Reconnected to 10.1.1.2
2024-12-19 12:52:52.073 ERROR (SyncWorker_5) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 10.1.1.2 error while building list for path /system/health : no such command or directory (health), no such command prefix
2024-12-19 12:53:22.018 WARNING (SyncWorker_2) [custom_components.mikrotik_router.mikrotikapi] Mikrotik Reconnected to 10.1.1.2
2024-12-19 12:53:23.050 ERROR (SyncWorker_0) [custom_components.mikrotik_router.mikrotikapi] Mikrotik 10.1.1.2 error while building list for path /system/health : no such command or directory (health), no such command prefix
The text was updated successfully, but these errors were encountered: