Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

sistem.ekibi

Reviews(1)
bysistem.ekibi, May 8, 2019
1 of 2 people found this review helpful
Hello,

When we run your script we get an error below:

/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Traceback (most recent call last):
File "./check_unity.py", line 569, in
main()
File "./check_unity.py", line 522, in main
value, descid, desc = getBattery(hostaddress, token, cookie)
File "./check_unity.py", line 107, in getBattery
j = json.loads(r.text)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Could you please help?

Python version:2.7.13-2
Python Requests version:2.12.4-1
Owner's reply

Hello,
Its working on python-26, as monitoring system that is integrated with is kind of old...
You should check how to ignore SSL warnings, I currently have no access to a box to test it.

Here there are some refactoring for new python: https://github.com/rverchere/nagios/tree/master/dellemc-unity_storage

Tks