I’m running OpenVAS-9 on Ubuntu and trying to use the check_omp utility with nagios, however, I keep getting a message stating that my task doesn’t exist. This used to work with an older version of OpenVAS.
For the testing all the cli commands, including the check_omp I have been running directly on the OpenVAS server just to eliminate any network issues between servers that might have caused an issue. The user has the admin role to rule out a role permissions issue reading the status.
Thank you for the pointers. I installed gvm-tools, python-gvm, and the check_gmp script. Unfortunately I’m still having a problem getting expected output.
It appears that I’m missing a module, gmp:
$ ~/check_gmp.py --version
Traceback (most recent call last):
File “/home/ubuntu/check_gmp.py”, line 37, in
from gmp.gvm_connection import (SSHConnection,
ModuleNotFoundError: No module named ‘gmp’
ubuntu@ip-10-0-0-29:~$ python3
I checked the modules in python, and I can see a gvm module, but no gmp module. What am I missing?
I found that I can change the check_gmp.py script to import from gvm.connections and that will let me run the version command. But all the checks fails.
#from gmp.gvm_connection import (SSHConnection,
from gvm.connections import (SSHConnection,
For example:
$ ./check_gmp.py tls -H 10.0.0.29 -u user -w password --ping
GMP CRITICAL: init() got an unexpected keyword argument ‘shell_mode’
gmp works in using gvm-pyshell:
version = gmp.get_version()
from gvmtools.helper import pretty_print
pretty_print(version)
<get_version_response status=“200” status_text=“OK”>
7.0
</get_version_response>