On a testing plateform, I’m trying to have both gvm-9 and gvm-11 co-existing for testing purposes. So I have created a specific redis installation for gvm-11, and one for gvm-9.
Problem: I can’t see anyway to actually tells ospd-openvas to talk to a specific redis socket. I’m using the following command:
/opt/gvm/bin/ospd-scanner/bin/python3.6 /opt/gvm/bin/ospd-scanner/bin/ospd-openvas --pid-file /opt/gvm/var/run/ospd-openvas.pid -s /opt/gvm/etc/openvas/openvas.conf --log-level debug -f
Which gives the following error:
2020-03-03 06:17:32,585 OSPD - openvas: DEBUG: (ospd_openvas.db) Redis connection lost: Error 13 connecting to unix socket: /run/redis/redis.sock. Permission denied… Trying again in 5 seconds.
The problem is ospd-openvas is not suppose to talk to /run/redis/redis.sock but to /var/run/redis/redis-gvm.sock, as specified in the config file /opt/gvm/etc/openvas/openvas.conf which reads:
[OSPD - openvas]
Whatever I put in this file seems completely ignored by the ospd-openvas command. So is the “-s” or “–config” flag actually used ? If so, what’s wrong with my file so it gets completely ignored ?
Thanks a lot