You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure I'm doing something wrong, as I'm new to icinga2/nagios, but when I run '/usr/lib/nagios/plugins/check_pve.py -u monitoring@pve -p blablabla -k -e pve1.ncimfg.com -p 8006 -m '$anyCheck' I get 'UNKNOWN - Could not fetch data from API: Could not connection to PVE API: invalid username or password'
FYI, I have very little experience with python.
I had to change from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
to urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
Before that change it would return nothing. So I may have something wrong, but I can curl and get a token using the username and password, then using the token, I can curl and get data from the API. So I'm sure the password is correct.
I have tried to print from inside def get_ticket(self): (not sure if you can do that in python), but I get nothing on the command line. I'm not sure if get_ticket is happening at all now.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
I'm sure I'm doing something wrong, as I'm new to icinga2/nagios, but when I run '/usr/lib/nagios/plugins/check_pve.py -u monitoring@pve -p blablabla -k -e pve1.ncimfg.com -p 8006 -m '$anyCheck' I get 'UNKNOWN - Could not fetch data from API: Could not connection to PVE API: invalid username or password'
FYI, I have very little experience with python.
I had to change
from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
to
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
Before that change it would return nothing. So I may have something wrong, but I can curl and get a token using the username and password, then using the token, I can curl and get data from the API. So I'm sure the password is correct.
I have tried to print from inside
def get_ticket(self):
(not sure if you can do that in python), but I get nothing on the command line. I'm not sure if get_ticket is happening at all now.Any help would be appreciated.
The text was updated successfully, but these errors were encountered: