Check_omp fails to find task

gmp
gvm-tools

#1

Hi

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.

$ check_omp --version
Check-OMP Nagios Command Plugin 1.4.5

Using the omp CLI, I can see the tasks:

$ omp -h 10.0.0.29 -u user -w password --get-tasks
7992bf61-47f1-4069-926a-23736041998d Stopped gpms-vt
59755173-a153-4c62-a850-6751e580b6f1 Done introlsys

Yet, check_omp doesn’t find it:

$ check_omp --status -H 10.0.0.29 -u user -w password -T introlsys --last-report -F 10.0.0.26
OMP UNKNOWN: Unknown task: introlsys

I also tried using the ID, but that didn’t work either:

$ check_omp --status -H 10.0.0.29 -u user -w password -T 59755173-a153-4c62-a850-6751e580b6f1 --last-report -F 10.0.0.26
OMP UNKNOWN: Unknown task: 59755173-a153-4c62-a850-6751e580b6f1

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.

Appreciate any thoughts on where to look next.

Jay


#2

I’ve moved this topic to the GMP category.

omp is deprecated and even may not work with OpenVAS/GVM version 9 and later. Furthermore check_omp is completely unknown to me.

Please take a look at gvm-tools and python-gvm instead.


#3

The check_gmp.py script which is a replacement for the deprecated check_omp seems to be available here:

https://docs.greenbone.net/GSM-Manual/gos-4/en/tools.html#tools-check-gmp


#4

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>


#5

I am sorry check_gmp.py is not compatible with gvm-tools 2.0.0.beta1 currently. Could you try the 1.4.1 version instead?


#6

Thank you very much for the help. That was the missing piece!

$ ./check_gmp.py tls -H 10.0.0.29 -u user -w password -T “introlsys” --last-report --overrides -F 10.0.0.8 --status
GMP OK: 1 vulnerabilities found - High: 0 Medium: 0 Low: 1