Check_MK-Things icon indicating copy to clipboard operation
Check_MK-Things copied to clipboard

Fix ilo_api_mem.py

Open systeembeheerder opened this issue 2 years ago • 2 comments

Plugin fails to detect warning state in module; fixed syntax.

Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> health="Warning"
>>> if health == "Good" or "OK":
...   print ("strange")
...
strange
>>>

systeembeheerder avatar Feb 22 '23 12:02 systeembeheerder

@Yogibaer75 in your code

if data[3] == "GoodInUse" or "OK":

gives the wrong results. See the test above.

systeembeheerder avatar Nov 30 '23 10:11 systeembeheerder

Can you please migrate the checks to the generic redfish agent? I joined all the manufacturer versions to one special agent. This one is then the only one who gets fixed and further development.

Yogibaer75 avatar Dec 01 '23 17:12 Yogibaer75