A monitoring/inventory plugin to check components and health status of systems which support Redfish. It will also create a inventory of all components of a system.
os.uname()[1] only works on Unix-like operating systems (and also truncates the hostname to 8 characters on some systems), socket.gethostname() gets the same data in a better cross-platform way.
In my case this was the only thing I needed to change to get this running on Windows (to collect inventory data)
os.uname()[1] only works on Unix-like operating systems (and also truncates the hostname to 8 characters on some systems), socket.gethostname() gets the same data in a better cross-platform way.
In my case this was the only thing I needed to change to get this running on Windows (to collect inventory data)
Reference: https://docs.python.org/3/library/os.html#os.uname