Closed neginsadeghi closed 3 years ago
Make sure you are looking at current docs on using the API. I'm pretty sure that socket name is no longer used. There is /tmp/ospd.sock if you want to work dicrectly with the openvas scanner. For the gvmd, you don't need the socket to access the API.
can you please give me the docs for the api ? cause I couldn't find anything
I wanted to use this one ( https://github.com/Mixeway/MixewayOpenVASRestAPI )
if there is anything more reliable + easy to use API please give me the reference
I've personally not done much with the API, so unfortunately, I can only point you to the Greenbone Docs. https://greenbone.github.io/docs/ If you can't find what you are looking for there, start asking questions on the community forums at Greenbone. https://community.greenbone.net/
Good luck -Scott
@neginsadeghi The OSPd socket link is now located at /var/run/ospd/ospd.sock
@maxproske Yes. ... Thank you. I've been underwater and getting pulled deeper by the blasted bug that was causing my container to segfault.
@immauss Hi, did u get any progress? I have the same issue. the api services report Premature end of file and I have no idea to fix it.
@dotw Not sure what you are referencing. Can you open a new issue and provide some logs? And know that I pushed a new version yesterday, 21.4.4-06 that fixes quite a lot of problems, so if you could try to reproduce the problem with the new image first, I would really appreciate it.
@dotw If by "the api services" you mean Mixeway's OpenVASRestAPI, they don't appear to support gvmd listening on a port instead of a socket. You can follow my issue here: https://github.com/Mixeway/MixewayOpenVASRestAPI/issues/8
I can't find openvasmd.sock file on the container, can you please guide me that I could find it ? or force gvm to create a unix socket ?
I want to use API and that's why I need it