Hello,
is there an API for OMV 6 available? At Home Assistant forums the question is raised, so that the integration of OMV in HA can be made compatible...
If it is available, please tell us, where.
Thank you very much.
Hello,
is there an API for OMV 6 available? At Home Assistant forums the question is raised, so that the integration of OMV in HA can be made compatible...
If it is available, please tell us, where.
Thank you very much.
is there an API for OMV 6 available?
No rest api but rpc is available via rpc.php and omv-rpc on the host. Maybe these would help:
https://openmediavault.readthe…mv_rpc.html?highlight=rpc
https://github.com/dunderrrrrr/openmediavault-fastapi-docker
Well, the GitHub fastapi is about 7 months old.
We do need recent documentation, as what we use for OMV 5 does not play well with OMV 6.
We do need recent documentation, as what we use for OMV 5 does not play well with OMV 6
My bad. I didn't know HA was already doing things with OMV. I wouldn't have linked all of those things if I realized that.
While I don't envision OMV 6.x changing from where it is now, it hasn't been released yet. What doesn't play well? I know a few of the rpc calls have changed but not in a major way. I don't know what HA is doing with OMV either. So, hard to help there.
You could have a look here, it is not HA official, but a volunteer HACS integration. With OMV 5 it works fine, but Tomaee, the maintainer, needs some info, so that he can adapt it for OMV 6 also...
https://github.com/tomaae/homeassistant-openmediavault
and here:
https://community.home-assista…ult-integration/189310/89
Thank you very much for your attention
needs some info
Was there a particular api that wasn't working. The first two I looked at (System/getInformation and Diskmgmt/enumerateDevices) haven't changed.
I just checked and it claims to have these features:
Don't you think it is wise to collect these figures with one of the gazillion monitoring tools out there for debian systems instead using an non official API?
Just to clarify, I'm looking for documentation with all entry points and response codes. I can only find OMV4 API docs.
So far it is just very basic integration because I had to go blindly and dig through omv sources.
snmp provides a fair amount of data and is part of debian, I would bet HA has support for it too. What is missing from snmp and would come from the api?
Just to clarify, I'm looking for documentation with all entry points and response codes. I can only find OMV4 API docs.
So far it is just very basic integration because I had to go blindly and dig through omv sources.
I was digging through the sources as well. The automated api docs haven't been run in a long time. So, that is why they are still on OMV 4.x. I don't even know if the process still works.
Integration is about integrating OMV itself. Basic OS data are just a small bonus.
SNMP wont provide data as OMV sees things, not to mention OMV configuration.
I was digging through the sources as well. The automated api docs haven't been run in a long time. So, that is why they are still on OMV 4.x. I don't even know if the process still works.
I guess that will be only way forward then.
I guess that will be only way forward then.
We could let votdev tell us if the api docs process still works.
We could let votdev tell us if the api docs process still works.
I would appreciate that.
I personally dont use OMV anymore, which makes maintaining integration more difficut. But there are many users who use the integration and there are no alternatives, so I dont want to discontinue it.
I would like to improve the integration and add OMV6 support.
I personally dont use OMV anymore
I'm afraid that to see new api docs, you would have to start using it again
Nice. What do the HA users want to monitor?
I am using some icinga2/nagios scripts to monitor and telegraf , but not using the API.
Nice. What do the HA users want to monitor?
I am using some icinga2/nagios scripts to monitor and telegraf , but not using the API.
Its more about triggering automations based on values and control services on OMV.
I personally use NAS API to trigger snapshots and offsiting based on activity per dataset, utilization on internet gateway and presence.
I know its an overkill, but it adds quite a bit of comfort and reliability.
hmm, "smb", "getShareList" reports None. Thats very weird.
I just noticed an update for a package wsdd. Don't know much about it.Maybe samba info you are looking for could be available from that?
wsdd implements both a Web Service Discovery (WSD) host and a WSD client daemon. The host implementation enables (Samba) hosts, like your local NAS device, to be found by Web Service Discovery clients like Windows. The client mode allows searching for other WSD hosts on the local network.
wsdd 0.7+gitc87819b Web Services on Devices (WSD) daemon
Web Services on Devices (WSD) is a Microsoft API to simplify programmingconnections to web service enabled devices, such as Printers, Scannersand File Shares.
This daemon advertises and responds to probe requests from Windowsclients looking for File Shares.
Maintainer: Volker Theile <volker.theile@openmediavault.org>
Repository: openmediavault.org archive/shaitan
Size: 18.71 KiB
https://www.mankier.com/1/wsdd Might be better links
hmm, "smb", "getShareList" reports None. Thats very weird.
This command works sudo omv-rpc -u admin "SMB" "getShareList" '{"start":0,"limit":25}'. Are you passing start and limit? They are required.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!