I am attempting to use a custom command to perform a Service Check.
I am added a Python script to /usr/local/nagios/libexec.
I have created the command itself:
Code: Select all
/usr/bin/python3 $USER1$/my_script.py $ARG1$ $ARG2$ $ARG3$Within my script:
Code: Select all
#!/usr/bin/python3
import requests
Code: Select all
module 'requests' has no attribute 'request'Code: Select all
Package Version
------------------ -----------
requests 2.27.1Can anyone share some pointers, please?