NIXStats / nixstatsagent

NIXStats monitoring agent
https://www.nixstats.com
Other
92 stars 38 forks source link

nixstatshello: os.uname()[1] not available in windows #17

Closed vfuse closed 7 years ago

vfuse commented 7 years ago

Traceback (most recent call last): File "C:\Python27\Scripts\nixstatshello-script.py", line 9, in load_entry_point('nixstatsagent==1.1.3', 'console_scripts', 'nixstatshello')() File "c:\python27\lib\site-packages\nixstatsagent\nixstatsagent.py", line 45, in hello 'hostname': os.uname()[1] AttributeError: 'module' object has no attribute 'uname'

Use socket.gethostname() or socket.getfqdn()