Code Monkey home page Code Monkey logo

python-qnapstats's Introduction

python-qnapstats

Build Status Supported Python Versions

Library from obtaining system information from QNAP NAS devices running QTS.

Installation

This library requires xmltodict, so make sure you have that installed:

pip3 install xmltodict>=0.10.0

Then install this Python module:

pip3 install qnapstats

Usage Example

#!/usr/bin/env python3
from qnapstats import QNAPStats
from pprint import pprint

qnap = QNAPStats('192.168.1.3', 8080, 'admin', 'correcthorsebatterystaple')

pprint(qnap.get_system_stats())
pprint(qnap.get_system_health())
pprint(qnap.get_smart_disk_health())
pprint(qnap.get_volumes())
pprint(qnap.get_bandwidth())

Note: The user you connect with must be in the admin group. It doesn't necessarily need to be THE "administrator" account, but you do need to use some account in the administrators group. MFA must also be disabled for that user for this library to work.

Device Support

This library has been tested against the following devices and firmwares:

Model QTS* Firmware Versions Notes
D4 Pro 4.5.1 User-reported: no automated tests
TS-110 4.2.4  
TS-112P 4.3.3 This device does not report CPU temps
TS-210 4.2.6 This device does not report CPU temps
TS-219P II 4.3.3 User-reported: no automated tests
TS-251B 4.4.3  
TS-228A 5.0.1 This device does not report CPU temps
TS-233 5.1.x  
TS-251+ 4.5.1 No information on dnsInfo
TS-253 Pro 4.5.2  
TS-253D 4.5.3  
TS-332 5.0.0  
TS-364 5.0.1  
TS-269L 4.3.3 User-reported: no automated tests
TS-410 4.2.3 This device does not report CPU temps
TS-412 4.3.3 This device does not report CPU temps
TS-431P 4.3.4  
TS-451 4.2.2 - 4.2.4  
TS-453A 4.3.4; 5.0.1  
TS-453Be 4.2.3; 5.0.1  
TS-639 4.2.3  
TS-659 4.2.6 May report None for some disk temps
TS-853 Pro 4.5.4  
TS-869 Pro 4.3.4  
TS-873A 5.0.1.2248  
TS-1677XU-RP 4.5.2  
TS-EC1280U 4.5.2  
TS-h886 QuTS h5.0.1.2376  
TS-X53 4.5.4  
TVS-672N 5.0.1  
TVS-1282 5.0.1  

⚠️ QuTS is not currently supported - see [issue #84](#84)

Other QNAP devices using these QTS firmwares should probably work fine, as should the devices listed above on newer firmwares. If you encounter any compatibility issues, please let us know (or better yet, contribute a patch!)

Upgrading to QTS 5? Make sure the account you connect with meets the criteria listed earlier in this README. Also be sure to log into your NAS and complete any agreements, warnings, wizards, etc. that may prevent this library from using the QNAP API.

python-qnapstats's People

Contributors

anurag-nagpal avatar colinodell avatar cr4nk89 avatar deftdawg avatar gralin avatar jeremykenedy avatar julien-bouquet avatar m4v3r1ck87 avatar patchedsoul avatar rbialon avatar semantic-release-bot avatar stephankn avatar tche333 avatar tmin10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-qnapstats's Issues

New maintainer wanted

This project has reached the level of maturity for my personal needs, but judging by the 7 open issues there is still some interest in expanding compatibility and features further. I unfortunately have competing priorities in my personal life that will prevent me from addressing most of those open issues.

I am therefore looking for anyone who would be interested in taking over this project. You would receive full administrator access to this repository and have full authority to merge code, create releases, or anything else a project owner would normally do. I can be around to answer simple questions but would no longer maintain this repository.

The ideal person to take over this repository would match the following:

  • You own a QNAP device
  • You use Home Assistant
  • You've successfully contributed to this project or to Home Assistant in the past
  • You know how to release libraries and new versions on PyPI (or know enough about the Python ecosystem to figure it out)

If you feel you meet those (or at least come very close), please let me know about your interest :) Either reply below or email me.

Can't integrate a QNAP TS-251

I cannot integrate my QNAP into HA as described here: home-assistant/core#46637

Device Model Number: TS-251

QTS Version: 4.5.2

XML/Debug Output:

<2021-02-17 08:19:12 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.qnap
2021-02-17 08:19:12 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=sensor>
2021-02-17 08:19:12 DEBUG (SyncWorker_6) [homeassistant.util.json] JSON file not found: /config/.storage/camera
2021-02-17 08:19:12 ERROR (SyncWorker_0) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
    self.data["system_stats"] = self._api.get_system_stats()
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
    resp = self._get_url(
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
    self._init_session()
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
    if self._login() is False:
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 57, in _login
    result = self._execute_post_url("authLogin.cgi", data, False)
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 98, in _execute_post_url
    return self._handle_response(resp, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 112, in _handle_response
    auth_passed = data['authPassed']
KeyError: 'authPassed'>

TS-431 Confirmed working

It seems to work on my:
Device Model Number: TS-431
QTS Version: 4.3.4.0569 Build 20180501

qnas

Thank you and keep up the awesome work.

get_bandwidth throws and error / no longer returns data

Hi,

My home assistant instance is now throwing an error with the QNAP integration when it is trying to pull in the network stats.
2021-07-06 09:29:20 ERROR (SyncWorker_8) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 197, in update
self.data["bandwidth"] = self._api.get_bandwidth()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 290, in get_bandwidth
default = resp["bandwidth_info"]["df_gateway"]
KeyError: 'bandwidth_info'
Someone else has already raised home-assistant/core#52477

I have been tracing things backwards and it appears that the "management/chartReq.cgi?chart_func=QSM40bandwidth" endpoint is either no longer valid, or needs different parameters to return the expected data.

Tracing through the web requests, I can see there is a "management/chartReq.cgi?chart_func=bandwidth" endpoint, but the data returned appears to be a different structure. As I wasn't sure what the origin of the QSM40bandwidth endpoint, I'm not sure whether the bandwidth endpoint is an acceptable subsitution (with the corresponding code changes).

Cheers
Sam

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-453D

QTS Version: 4.5.4.1715

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

Host (prefix with 'https://' if needed): http://192.168.1.3
Port: 8080
Username: admin
Password:
DEBUG: Creating new session
DEBUG: POST to URL: http://192.168.1.3:8080/cgi-bin/authLogin.cgi
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 06 Jul 2021 01:28:12 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=400", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><shutdown_info><type><![CDATA[-1]]></type><timestamp><![CDATA[0]]></timestamp><duration><![CDATA[0]]></duration></shutdown_info>
<SMBFW><![CDATA[0]]></SMBFW><hero_model><![CDATA[0]]></hero_model><qts_mode_type><![CDATA[0]]></qts_mode_type><authPassed><![CDATA[1]]></authPassed><authSid><![CDATA[sv7msgbp]]></authSid><pw_status><![CDATA[0]]></pw_status><isAdmin><![CDATA[1]]></isAdmin><username><![CDATA[admin]]></username><groupname><![CDATA[administrators]]></groupname><ts><![CDATA[24936692]]></ts><fwNotice><![CDATA[0]]></fwNotice><SUID><![CDATA[13eda5b32e6a0f2aaf2a09385e8d7082]]></SUID><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><standard_massage><![CDATA[]]></standard_massage><standard_color><![CDATA[#ffffff]]></standard_color><standard_size><![CDATA[12px]]></standard_size><standard_bg_style><![CDATA[fill]]></standard_bg_style><showVersion><![CDATA[0]]></showVersion><show_link><![CDATA[1]]></show_link><cuid><![CDATA[09c03b60ea7172d2524dad11247c669f]]></cuid></QDocRoot>

DEBUG: GET from URL: http://192.168.1.3:8080/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&hd=no&multicpu=1
DEBUG: Appending access_token (SID: sv7msgbp) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 06 Jul 2021 01:28:12 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=399", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X53D]]></modelName><internalModelName><![CDATA[TS-X53B]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_GEMINILAKE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-453D]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.4]]></version><number><![CDATA[1715]]></number><build><![CDATA[20210630]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/06/30]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><root>
<timezone><![CDATA[(GMT+08:00) Perth]]></timezone><cpu_usage><![CDATA[13.5 %]]></cpu_usage><cpufan_count>0</cpufan_count>
<fan_reg_cnt><![CDATA[0]]></fan_reg_cnt><temp_reg_cnt><![CDATA[0]]></temp_reg_cnt><cpu_model><![CDATA[Intel(R) Celeron(R) J4125 CPU @ 2.00GHz]]></cpu_model><total_memory><![CDATA[3836.0]]></total_memory><free_memory><![CDATA[1801.3]]></free_memory><mem_info_support><![CDATA[1]]></mem_info_support><mem_max_channels><![CDATA[2]]></mem_max_channels><mem_max_slots><![CDATA[2]]></mem_max_slots><mem_slot_info><mem_valid><![CDATA[1]]></mem_valid><mem_slot_id><![CDATA[1]]></mem_slot_id><mem_dimm_id><![CDATA[1]]></mem_dimm_id><mem_channel_id><![CDATA[A]]></mem_channel_id><mem_dimm_size><![CDATA[4096]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[A-DATA Technology]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[0]]></mem_valid><mem_slot_id><![CDATA[2]]></mem_slot_id><mem_dimm_id><![CDATA[2]]></mem_dimm_id><mem_channel_id><![CDATA[B]]></mem_channel_id><mem_dimm_size><![CDATA[0]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[]]></mem_dimm_manufacturer></mem_slot_info>
<nic_cnt><![CDATA[2]]></nic_cnt><nic_lan_cnt><![CDATA[2]]></nic_lan_cnt><nic_qa_port_cnt><![CDATA[0]]></nic_qa_port_cnt><ifindex1>2</ifindex1>
<ifname1>eth0</ifname1>
<dname1>Adapter 1</dname1>
<rx_packet1>122385225</rx_packet1>
<tx_packet1>111805871</tx_packet1>
<err_packet1>0</err_packet1>
<eth_status1>1</eth_status1>
<eth_max_speed1>2500</eth_max_speed1>
<is_QA_port_eth1>0</is_QA_port_eth1>
<eth_ip1>192.168.1.3</eth_ip1>
<eth_mask1>255.255.255.0</eth_mask1>
<eth_mac1>24:5e:be:51:29:b7</eth_mac1>
<eth_usage1>DHCP</eth_usage1>
<eth_ipv6_info1><eth_ipv6_enable>1</eth_ipv6_enable><eth_ipv6_ip1>fe80::265e:beff:fe51:29b7</eth_ipv6_ip1>
</eth_ipv6_info1><dnsinfo1><dns1>192.168.1.6</dns1>
</dnsinfo1><ifindex2>3</ifindex2>
<ifname2>eth1</ifname2>
<dname2>Adapter 2</dname2>
<rx_packet2>122385225</rx_packet2>
<tx_packet2>111805871</tx_packet2>
<err_packet2>0</err_packet2>
<eth_status2>1</eth_status2>
<eth_max_speed2>2500</eth_max_speed2>
<is_QA_port_eth2>0</is_QA_port_eth2>
<eth_ip2>192.168.1.3</eth_ip2>
<eth_mask2>255.255.255.0</eth_mask2>
<eth_mac2>24:5e:be:51:29:b7</eth_mac2>
<eth_usage2>DHCP</eth_usage2>
<eth_ipv6_info2><eth_ipv6_enable>1</eth_ipv6_enable><eth_ipv6_ip1>fe80::265e:beff:fe51:29b7</eth_ipv6_ip1>
</eth_ipv6_info2><dnsinfo2><dns1>192.168.1.6</dns1>
</dnsinfo2><bonding_list><bonding_info><ifindex>4</ifindex>
<ifname>bond0</ifname>
<dname>Adapter 1+2</dname>
<rx_packet>122385225</rx_packet>
<tx_packet>111805871</tx_packet>
<err_packet>0</err_packet>
<if_status>1</if_status>
<if_max_speed>0</if_max_speed>
<if_ip>192.168.1.3</if_ip>
<if_mask>255.255.255.0</if_mask>
<if_mac>24:5E:BE:51:29:B7</if_mac>
<if_usage>DHCP</if_usage>
<if_member_cnt>2</if_member_cnt><if_member_info><if_member1>eth0</if_member1><if_member2>eth1</if_member2></if_member_info><if_ipv6_info><if_ipv6_enable>1</if_ipv6_enable><if_ipv6_ip1>fe80::265e:beff:fe51:29b7</if_ipv6_ip1>
</if_ipv6_info><dnsinfo><dns1>192.168.1.6</dns1>
</dnsinfo></bonding_info>
</bonding_list>
<bonding_cnt><![CDATA[1]]></bonding_cnt><ipv6Enable><![CDATA[1]]></ipv6Enable><dnsInfo><DNS_LIST><![CDATA[ 192.168.1.6]]></DNS_LIST></dnsInfo>
<WirelessSupport><![CDATA[1]]></WirelessSupport><Error><![CDATA[1]]></Error><ThunderboltSupport><![CDATA[0]]></ThunderboltSupport><uptime_day><![CDATA[3]]></uptime_day><uptime_hour><![CDATA[21]]></uptime_hour><uptime_min><![CDATA[57]]></uptime_min><uptime_sec><![CDATA[42]]></uptime_sec><HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><cpu_tempc>44</cpu_tempc><cpu_tempf>111</cpu_tempf>
<CPUTempWarnT><![CDATA[80]]></CPUTempWarnT><CPUTempErrT><![CDATA[85]]></CPUTempErrT><sys_tempc>26</sys_tempc>
<sys_tempf>78</sys_tempf>
<SysTempWarnT><![CDATA[60]]></SysTempWarnT><SysTempErrT><![CDATA[70]]></SysTempErrT><tpu><tpu_dev_cnt><![CDATA[0]]></tpu_dev_cnt></tpu>
<sysfan_count>1</sysfan_count>
<sysfan_alias>SYS FAN</sysfan_alias>
<sysfan1>883</sysfan1>
<sysfan_fail1>0</sysfan_fail1>
<sysfan1_stat>0</sysfan1_stat>
<Power1Temp>-1</Power1Temp>
<Power1Status>0</Power1Status>
<PowerFanStatus1>-1</PowerFanStatus1>
<BusType>NAS</BusType>
<serial_number>Q207I00579L</serial_number>
<server_name><![CDATA[NAS]]></server_name><qat_support><![CDATA[0]]></qat_support><codepage><![CDATA[437]]></codepage><bios_version>Q04MAR12</bios_version>
</root>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.1.3:8080/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&sysHealth=1
DEBUG: Appending access_token (SID: sv7msgbp) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 06 Jul 2021 01:28:15 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=398", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X53D]]></modelName><internalModelName><![CDATA[TS-X53B]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_GEMINILAKE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-453D]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.4]]></version><number><![CDATA[1715]]></number><build><![CDATA[20210630]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/06/30]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><sysHealth><status><![CDATA[warning]]></status></sysHealth>
<needProcessEvent><item><type><![CDATA[warning]]></type><eventID><![CDATA[5]]></eventID><detail><volumeStat><![CDATA[raid5]]></volumeStat><volumeDisks><![CDATA[0:1,0:2,0:3,0:4]]></volumeDisks><volumeValue><![CDATA[DataVol1:1]]></volumeValue><isMajorVolume><![CDATA[1]]></isMajorVolume></detail>
</item>
</needProcessEvent>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.1.3:8080/cgi-bin/disk/qsmart.cgi?func=all_hd_data
DEBUG: Appending access_token (SID: sv7msgbp) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 06 Jul 2021 01:28:15 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=397", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X53D]]></modelName><internalModelName><![CDATA[TS-X53B]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_GEMINILAKE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-453D]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.4]]></version><number><![CDATA[1715]]></number><build><![CDATA[20210630]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/06/30]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><Disk_Info><entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:1]]></HDNo><Vendor><![CDATA[WDC WD30EFRX-68EUZN0 82.00A82]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[2.73 TB]]></Capacity><Temperature><oC><![CDATA[34]]></oC><oF><![CDATA[93]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[WD30EFRX-68EUZN0]]></Model><Serial><![CDATA[WD-WCC4N6NCJNLC]]></Serial><FirmVersion><![CDATA[82.00A82]]></FirmVersion><ATAVersion><![CDATA[82.00A82]]></ATAVersion><ATADescription><![CDATA[82.00A82]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:2]]></HDNo><Vendor><![CDATA[WDC WD30EFRX-68EUZN0 82.00A82]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[2.73 TB]]></Capacity><Temperature><oC><![CDATA[33]]></oC><oF><![CDATA[91]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[WD30EFRX-68EUZN0]]></Model><Serial><![CDATA[WD-WCC4N3DK90S4]]></Serial><FirmVersion><![CDATA[82.00A82]]></FirmVersion><ATAVersion><![CDATA[82.00A82]]></ATAVersion><ATADescription><![CDATA[82.00A82]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:3]]></HDNo><Vendor><![CDATA[WDC WD30EFRX-68EUZN0 82.00A82]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[2.73 TB]]></Capacity><Temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[2]]></LastTestType><LastTestTime><![CDATA[2019/11/03 08:11:38]]></LastTestTime><Model><![CDATA[WD30EFRX-68EUZN0]]></Model><Serial><![CDATA[WD-WCC4N5RVAJFE]]></Serial><FirmVersion><![CDATA[82.00A82]]></FirmVersion><ATAVersion><![CDATA[82.00A82]]></ATAVersion><ATADescription><![CDATA[82.00A82]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:4]]></HDNo><Vendor><![CDATA[WDC WD30EFRX-68EUZN0 82.00A82]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[2.73 TB]]></Capacity><Temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[WD30EFRX-68EUZN0]]></Model><Serial><![CDATA[WD-WCC4N0LNS554]]></Serial><FirmVersion><![CDATA[82.00A82]]></FirmVersion><ATAVersion><![CDATA[82.00A82]]></ATAVersion><ATADescription><![CDATA[82.00A82]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
</Disk_Info>
</QDocRoot>

DEBUG: GET from URL: http://192.168.1.3:8080/cgi-bin/management/chartReq.cgi?chart_func=disk_usage&disk_select=all&include=all
DEBUG: Appending access_token (SID: sv7msgbp) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 06 Jul 2021 01:28:15 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=396", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X53D]]></modelName><internalModelName><![CDATA[TS-X53B]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_GEMINILAKE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-453D]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.4]]></version><number><![CDATA[1715]]></number><build><![CDATA[20210630]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/06/30]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<volumeList><volume><volumeStat><![CDATA[raid5]]></volumeStat><volumeDisks><![CDATA[ 1,2,3,4]]></volumeDisks><volumeStatus><![CDATA[44]]></volumeStatus><Progress><![CDATA[100]]></Progress><volumeType><![CDATA[1]]></volumeType><volumeValue><![CDATA[1]]></volumeValue><freeSize><![CDATA[800]]></freeSize><fstype><![CDATA[9]]></fstype><volumeLabel><![CDATA[DataVol1]]></volumeLabel><FSRVP_support><![CDATA[0]]></FSRVP_support><edge_cache_support><![CDATA[0]]></edge_cache_support><edge_cache_type><![CDATA[-1]]></edge_cache_type><FolderCounter><![CDATA[18]]></FolderCounter><is_legacy_volume><![CDATA[0]]></is_legacy_volume><is_default_volume><![CDATA[1]]></is_default_volume><pool_vjbod><![CDATA[0]]></pool_vjbod><encryptfs_bool><![CDATA[0]]></encryptfs_bool><encryptfs_active_bool><![CDATA[0]]></encryptfs_active_bool><encryptfs_key_flag><![CDATA[N]]></encryptfs_key_flag></volume>
</volumeList>
<volumeUseList><volumeUse><volumeValue><![CDATA[1]]></volumeValue><total_size><![CDATA[8458770022400]]></total_size><free_size><![CDATA[860773998592]]></free_size><folder_element><sharename><![CDATA[Web]]></sharename><used_size><![CDATA[13717504]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Public]]></sharename><used_size><![CDATA[1097334784]]></used_size></folder_element>
<folder_element><sharename><![CDATA[homes]]></sharename><used_size><![CDATA[494340096000]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Videos]]></sharename><used_size><![CDATA[2912150077440]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Backup]]></sharename><used_size><![CDATA[1412036251648]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Recorded TV]]></sharename><used_size><![CDATA[602268246016]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Music]]></sharename><used_size><![CDATA[62862737408]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Movies]]></sharename><used_size><![CDATA[1089911795712]]></used_size></folder_element>
<folder_element><sharename><![CDATA[FileHistory]]></sharename><used_size><![CDATA[526607794176]]></used_size></folder_element>
<folder_element><sharename><![CDATA[ISOs]]></sharename><used_size><![CDATA[17414254592]]></used_size></folder_element>
<folder_element><sharename><![CDATA[CCTV]]></sharename><used_size><![CDATA[32768]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Syslogs]]></sharename><used_size><![CDATA[378798080]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Containers]]></sharename><used_size><![CDATA[45165899776]]></used_size></folder_element>
<folder_element><sharename><![CDATA[KidsTV]]></sharename><used_size><![CDATA[221631168512]]></used_size></folder_element>
<folder_element><sharename><![CDATA[KidsMovies]]></sharename><used_size><![CDATA[186844938240]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Browser Station]]></sharename><used_size><![CDATA[28672]]></used_size></folder_element>
<folder_element><sharename><![CDATA[QmailAgent]]></sharename><used_size><![CDATA[24576]]></used_size></folder_element>
<folder_element><sharename><![CDATA[PlexData]]></sharename><used_size><![CDATA[12288]]></used_size></folder_element>
<folder_element><sharename><![CDATA[System Reserved]]></sharename><used_size><![CDATA[27425898496]]></used_size><type><![CDATA[system]]></type></folder_element>
<others_size><![CDATA[7572723208192]]></others_size><found_quota><![CDATA[0]]></found_quota></volumeUse>
</volumeUseList>
</QDocRoot>

DEBUG: GET from URL: http://192.168.1.3:8080/cgi-bin/management/chartReq.cgi?chart_func=QSM40bandwidth
DEBUG: Appending access_token (SID: sv7msgbp) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 06 Jul 2021 01:28:15 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=395", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed></QDocRoot>

('bandwidth_info',)
Traceback (most recent call last):
  File "qnaptest.py", line 52, in <module>
    qnap.get_bandwidth()
  File "C:\Users\Sam\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\qnapstats\qnap_stats.py", line 290, in get_bandwidth
    default = resp["bandwidth_info"]["df_gateway"]
KeyError: 'bandwidth_info'

UPS Info

I have an UPS connected to my QNAP via USB. All the info from the UPS auto appears in the menu with the ups info:

image

I wonder if there is any way to pass this info as a sensor for homeassitant:

-> battery capacity
-> Estimated protection time.

thanks for your work

Possible status states

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: <TS-251+>

QTS Version: <4.4.1>

Trying to create a custom button card using the status and drive_smart_status stats. Where can I find a list of possible states the status sensors could be?

Thanks.

Failed to fetch QNAP stats from the NAS

Hello!

Device Model Number: TS-453-Pro

QTS Version: <5.0.0.1891>

I tried to configure in configuration.yaml as below:

  • platform: qnap
    host: 10.0.xxx.xxx
    username: xxxxxxx
    password: xxxxxxxxx
    monitored_conditions:

    • status
    • system_temp
    • drive_temp
    • cpu_temp
    • cpu_usage
    • memory_percent_used
    • drive_smart_status
    • network_tx
    • volume_percentage_used

    but unfortunately I can't get it to work, the log is as follows:

    Logger: homeassistant.components.qnap.sensor
    Source: components/qnap/sensor.py:296
    Integration: qnap (documentation, issues)
    First occurred: 22:35:23 (2 occurrences)
    Last logged: 22:38:23

Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 296, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.9/site-packages/qnapstats/qnap_stats.py", line 232, in get_system_stats
"temp_c": int(root["sys_tempc"]),
KeyError: 'sys_tempc'

I am working locally without a firewall, in the security tab of the qts control panel I have nothing blocked, ssh is active, I do not have two-factor authentication, I am using an administrator user.

Can anyone help me?

A thousand thanks

TS-269L Compatibility

You might want to add the TS-269L, firmware 4.3.3 to your compatibility list. The library's working just fine for me.

Oh, also: I'm using qnap_stats out of the box with python 2.7. There appears to be no compatibility issues.

Support for bonded ethernet ports

Coming via the Homeassistant plugin

Most QNAP NAS have two network ports, which can be bonded. If you bond them, the NAS now has 3 ethernet devices (1, 2 and a pseudo 1+2 device). The QNAP integration only reports on the first 2, which when bonded, generally see zero stats, as all traffic now goes through the bonded pseudo port.

e.g. The integration sets up an entity sensor.nas_network_up_eth0 and sensor.nas_network_up_eth1 but sensor.nas_network_up_eth0+eth1 is missing. Both nas_network_up_eth0 and eth1 will report as down with zero traffic.

error in ha

Tried using ssl and no ssl, same issue

Device Model Number: TVS-872XT

QTS Version: 4.5.4

Logger: homeassistant.components.sensor
Source: components/qnap/sensor.py:243
Integration: Sensor (documentation, issues)
First occurred: 11:27:39 AM (1 occurrences)
Last logged: 11:27:39 AM

Error while setting up qnap platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 243, in setup_platform
    for nic in config.get(CONF_NICS, api.data["system_stats"]["nics"])
TypeError: 'NoneType' object is not subscriptable

KeyError: 'cpu_tempc' in get_system_stats on TS-410 (4.2.3)

Similar to #4 , requesting qnap.get_system_stats() results in:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dist-packages/qnapstats/qnap_stats.py", line 236, in get_system_stats
    "temp_c": int(root["cpu_tempc"]),
KeyError: 'cpu_tempc'

Using a TS-410 running 4.2.3

pprint(qnap.get_smart_disk_health()) error on TS-110

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number:

QTS Version: <4.2.4>

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

FILE test.py:
#!/usr/bin/env python3
from qnapstats import QNAPStats
from pprint import pprint
qnap = QNAPStats('192.168.0.7', 8080, 'xxxx', 'xxxx')
# pprint(qnap.get_system_stats())
# pprint(qnap.get_system_health())
pprint(qnap.get_smart_disk_health())
# pprint(qnap.get_volumes())
# pprint(qnap.get_bandwidth())

ERROR:
(homeassistant) homeassistant@hassbian:/home/pi $ python test.py
Traceback (most recent call last):
  File "test.py", line 9, in <module>
    pprint(qnap.get_smart_disk_health())
  File "/srv/homeassistant/lib/python3.4/site-packages/qnapstats/qnap_stats.py", line 186, in get_smart_disk_health
    if disk["Model"]:
TypeError: string indices must be integers

KeyError: 'cpu_model' in get_system_stats on TS-639

cpu_model does not appear in the XML returned from my TS-639 Pro.

It's an older Intel Atom based system.

Here's the debug after I injected self._debuglog("Response Text: " + resp.text) before returning out of _execute_get_url

DEBUG: Creating new session
DEBUG: POST to URL: https://192.168.1.5:443/cgi-bin/authLogin.cgi
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:852: 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)
DEBUG: Request executed: 200
DEBUG: GET from URL: https://192.168.1.5:443/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&hd=no&multicpu=1
DEBUG: Appending access_token (SID: 5sk3ek6n) to url
/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py:852: 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)
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>                                                                                                                                                                                                                                           [1/40]
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-639]]></modelName><internalModelName><![CDATA[TS-639]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-639]]></displayModelName><storage_v2>0</
storage_v2>
</model>
<firmware><version><![CDATA[4.2.3]]></version><build><![CDATA[20170121]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2017/01/21]]></buildTime></firmware>
<specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAP-NAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><root><timezone><![CDATA[(GMT-05:00) Eastern Time(US &amp; Canada)]]></timezone><cpu_usage><![CDATA[8.0 %]]></cpu_usage><total_memory><![CDATA[2021.6]]></total_memory><free_memory><![CDATA[1250.8]]></free_memory><nic_cnt><![CDATA[2]]></nic_cnt><rx_pa
cket1>96552797</rx_packet1>
<tx_packet1>83455310</tx_packet1>
<err_packet1>0</err_packet1>
<eth_status1>1</eth_status1>
<eth_max_speed1>1000</eth_max_speed1>
<eth_ip1>192.168.1.5</eth_ip1>
<eth_mask1>255.255.255.0</eth_mask1>
<eth_mac1>00:08:9b:8c:fb:b0</eth_mac1>
<eth_usage1>DHCP</eth_usage1>
<rx_packet2>0</rx_packet2>
<tx_packet2>0</tx_packet2>
<err_packet2>0</err_packet2>
<eth_status2>0</eth_status2>
<eth_max_speed2>1000</eth_max_speed2>
<eth_ip2>0.0.0.0</eth_ip2>
<eth_mask2>0.0.0.0</eth_mask2>
<eth_mac2>00:08:9b:8c:fb:b1</eth_mac2>
<eth_usage2>DHCP</eth_usage2>
<ipv6Enable><![CDATA[0]]></ipv6Enable><dnsInfo><DNS_LIST><![CDATA[ 192.168.1.1
]]></DNS_LIST></dnsInfo>
<WirelessSupport><![CDATA[1]]></WirelessSupport><Error><![CDATA[1]]></Error><ThunderboltSupport><![CDATA[0]]></ThunderboltSupport><uptime_day><![CDATA[17]]></uptime_day><uptime_hour><![CDATA[12]]></uptime_hour><uptime_min><![CDATA[16]]></uptime_min><uptime_sec><![CDATA[45]]></uptime_sec><HDTempWarnT><
![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[65]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><cpu_tempc>43</cpu_tempc><cpu_tempf>109</cpu_tempf>
<CPUTempWarnT><![CDATA[62]]></CPUTempWarnT><CPUTempErrT><![CDATA[85]]></CPUTempErrT><sys_tempc>33</sys_tempc>
<sys_tempf>91</sys_tempf>
<SysTempWarnT><![CDATA[57]]></SysTempWarnT><SysTempErrT><![CDATA[70]]></SysTempErrT><sysfan1>779</sysfan1>
<sysfan1_stat>0</sysfan1_stat>
<sysfan2>728</sysfan2>
<sysfan2_stat>0</sysfan2_stat>
<sysfan_count>2</sysfan_count>
<serial_number>--</serial_number>
<server_name><![CDATA[QNAP-NAS]]></server_name><codepage><![CDATA[437]]></codepage></root>
</ownContent>
</func>
</QDocRoot>

DEBUG: Request executed: 200
Traceback (most recent call last):
  File "./qnap-test.py", line 15, in <module>
    serialized = jsonpickle.encode(qnap.get_system_stats())
  File "/usr/local/lib/python3.5/dist-packages/qnapstats/qnap_stats.py", line 231, in get_system_stats
    "model": root["cpu_model"],
KeyError: 'cpu_model'

TS-653a Compatibility

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-653a

QTS Version: 4.5.1.1540

Hello,

I tried to get the stats in Home Assistant from my Qnap TS-653a but without success.

This is what I applied to configuration.yaml:

sensor:
  - platform: qnap
    host: (myip)
    port: (myport)
    username: (myusername)
    password: (mypassword)
    verify_ssl: false
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - network_tx
      - volume_percentage_used

Is anything I can do? Thanks

Admin only user?

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-251

QTS Version: 4.2.3

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

Sun Jul 08 2018 23:06:45 GMT-0500 (Central Daylight Time)

Error while setting up platform qnap
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 129, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/sensor/qnap.py", line 134, in setup_platform
    for nic in config.get(CONF_NICS, api.data["system_stats"]["nics"]):
TypeError: 'NoneType' object is not subscriptable

It seems the above error occurs when using a non-admin user. Can you confirm that this package only works with administrators on the NAS?

Home assistant Error

2018-04-27 11:58:25 ERROR (SyncWorker_10) [homeassistant.components.sensor.qnap] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
timeout=timeout
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/packages/six.py", line 686, in reraise
raise value
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
chunked=chunked)
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/connectionpool.py", line 389, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "/srv/homeassistant/lib/python3.6/site-packages/urllib3/connectionpool.py", line 309, in _raise_timeout
raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.2.10', port=8080): Read timed out. (read timeout=5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/qnap.py", line 192, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/srv/homeassistant/lib/python3.6/site-packages/qnapstats/qnap_stats.py", line 207, in get_system_stats
force_list=("DNS_LIST")
File "/srv/homeassistant/lib/python3.6/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
self._init_session()
File "/srv/homeassistant/lib/python3.6/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
if self._login() is False:
File "/srv/homeassistant/lib/python3.6/site-packages/qnapstats/qnap_stats.py", line 57, in _login
result = self._execute_post_url("authLogin.cgi", data, False)
File "/srv/homeassistant/lib/python3.6/site-packages/qnapstats/qnap_stats.py", line 97, in _execute_post_url
resp = self._session.post(url, data, timeout=self._timeout, verify=self._verify_ssl)
File "/srv/homeassistant/lib/python3.6/site-packages/requests/sessions.py", line 555, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/requests/adapters.py", line 521, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.2.10', port=8080): Read timed out. (read timeout=5)

Additional model entry that I can confirm DOES work for your next revision of compatible systems

Device Model Number: TVS-872XT

QTS Version: 4.5.2.1630

Just a quick note for your next readme revision. qnapstats is working great on my TVS-872XT, surfacing data up through HomeAssistant.

I DID have a request in terms of feature enhancement and don't know if you want to keep the issues separate for tracking purposes, so let me know if you prefer me to file an additional (enhancement) issue independent of this Documentation issue.

The request is to surface if possible Thunderbolt Network performance (as you do with en0, en1, en2, etc). I was looking to see if I could get current & graphed data for tb1 and tb2. Not sure where to hook to but data is of course present in Q'center so HOPEFULLY it's also programmatically accessible to you if you were to offer to pass up any additional network bridges present. I would assume this might also include WiFi or USB bridges IF QNAP names them maps them appropriately for you to enumerate.

Thanks again for a great solution and only HOPE it can get better. Finally as a long time network engineer myself and developer if I can help test or provide insight/assistance, more than willing to help out for all.

All the best!
-Tom

TS-251 NoneType Error

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number:

QTS Version: <4.5.2.1630>

I'm having an issued with a TS-251, which another poster confirmed is not on the supported list. The login appears to work as I show the HA account I created on the NAS as logged in.

XML/Debug Output:

2021-04-18 23:09:21 ERROR (SyncWorker_5) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS                     
Traceback (most recent call last):                                                                                                          
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 193, in update                                                
    self.data["system_stats"] = self._api.get_system_stats()                                                                                
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 273, in get_system_stats                                      
    for dns in root["dnsInfo"]["DNS_LIST"]:                                                                                                 
TypeError: 'NoneType' object is not subscriptable   

Device QNAP TS-453Be with firmware 4.4.2.1320 is compatible

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: < TS-453Be >

QTS Version: <4.2.3>

This device<>firmware combination is compatible with qnapstats.

XML/Debug Output:

<Insert your XML or debug output here>

Remote unlock of encrypted volumes

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-228

QTS Version: 4.3.4

I was looking to leverage off your fine library to build a remote unlocker script for encrypted volumes. I can't find any good documentation for the API but I'm beginning to suspect it doesn't include unlocking encrypted volumes... any ideas where else I should look?

Home Assistant sensor was working

Please provide the following information along with your issue report (replace anything inside of <Hi, I was using the QNAP sensor for around 8 months.. I had to re install HA and not I can't get a ping to QNAP TS-253B Here are some HA logs Platform qnap not ready yet. Retrying in 180 seconds. 5:10 PM helpers/entity_platform.py (WARNING) - message first occurred at 12:04 AM and shows up 341 times Failed to fetch QNAP stats from the NAS 5:10 PM components/qnap/sensor.py (ERROR) - message first occurred at December 18, 2019, 11:56 PM and shows up 346 times. Plex sensor is able to access QNAP I've tried adding a dedicated admin to QNAP>):

Device Model Number:

QTS Version: <4.4.1.1146>

XML/Debug Output:

<Insert your XML or debug output here>

Any ideas!!! Thanks!!

Supporting TS-431

Device Model Number: TS-431

QTS Version: 4.3.6.1040

XML/Debug Output:

Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.7/http/client.py", line 1336, in getresponse
    response.begin()
  File "/usr/local/lib/python3.7/http/client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 368, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 389, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 307, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.1.111', port=8080): Read timed out. (read timeout=5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 192, in update
    self.data["system_health"] = self._api.get_system_health()
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 121, in get_system_health
    resp = self._get_url("management/manaRequest.cgi?subfunc=sysinfo&sysHealth=1")
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 69, in _get_url
    result = self._execute_get_url(url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 85, in _execute_get_url
    resp = self._session.get(url, timeout=self._timeout, verify=self._verify_ssl)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.1.111', port=8080): Read timed out. (read timeout=5)

Error while setting up platform qnap
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 140, in setup_platform
    for drive in config.get(CONF_DRIVES, api.data["smart_drive_health"]):
KeyError: 'smart_drive_health'

What can I do to help support my device please? This is the error I'm getting in my HASS.io (Home Assistant) logs.

TS-332X supported.

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-332

QTS Version: <5.0.0.1891>

This model is supported!

External drive info

I'm using us external drives and it will be great to see the status in my home assistant dashboard.

The basic info is available from the menu bar and later in the Storage & Snapshots app under External Storage menu.

image
Storage information are following:

  • Label
  • Manufacturer
  • File System
  • Device Type
  • Total / Free Size
  • Shared Folder

image

Is it possible to propagate at least some information to the home assistant sensor?

To have at least label, volume_size_free and volume_size_used will be great.

Thanks a lot for all you effort.

Add safe get in code base to avoid `KeyError`

Replace access by key in qnapstats/qnap_stats.py by get("key") to avoid KeyError, or add try: except
like :
Replace:

resp["func"]

by :

resp.get("func") and test if not None

or

try: 
resp["func"]
execpt KeyError:
 return None

Support Multiple System and CPU Fan stats

Possible to add more details to the get_system_stats() to include

  • CPU FAN (Based upon the count of cpufan_count)
  • System FAN (Based upon the count of sysfan_count)
  • PSU Stat (There is no count, have to check Power1Status or Power2Status)
    • Temp (-1 not supported)
    • Fan speed (-1 not supported)
    • Status (0 is okay, not sure what is the fail most likely be -1)

I've got two systems outputted from /cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&hd=no&multicpu=1

Reason to include these values is to understand when the FAN turn on (during load or not), and how often during the day.

Device Model Number: TDS-16489U
This is an multi-CPU system, oddly I cannot see any different using the parameter multicpu=0, multicpu=1, multicpu=2, would be nice to see the individual CPU temps and usage.

Has no CPU fan, but 4 inner fans.

                <cpufan_count>0</cpufan_count>
                <sysfan_count>4</sysfan_count>
                <sysfan1>2504</sysfan1>
                <sysfan_fail1>0</sysfan_fail1>
                <sysfan1_stat>0</sysfan1_stat>
                <sysfan2>2507</sysfan2>
                <sysfan_fail2>0</sysfan_fail2>
                <sysfan2_stat>0</sysfan2_stat>
                <sysfan3>2510</sysfan3>
                <sysfan_fail3>0</sysfan_fail3>
                <sysfan3_stat>0</sysfan3_stat>
                <sysfan4>2507</sysfan4>
                <sysfan_fail4>0</sysfan_fail4>
                <sysfan4_stat>0</sysfan4_stat>
                <Power1Temp>38</Power1Temp>
                <Power2Temp>37</Power2Temp>
                <Power1Status>0</Power1Status>
                <Power2Status>0</Power2Status>
                <PowerFanStatus1>5376</PowerFanStatus1>
                <PowerFanStatus2>5152</PowerFanStatus2>

Device Model Number: TS-879
Has no CPU fan, but 2 rear facing fans

                <cpufan_count>0</cpufan_count>
                <sysfan_count>2</sysfan_count>
                <sysfan1>959</sysfan1>
                <sysfan_fail1>0</sysfan_fail1>
                <sysfan1_stat>0</sysfan1_stat>
                <sysfan2>965</sysfan2>
                <sysfan_fail2>0</sysfan_fail2>
                <sysfan2_stat>0</sysfan2_stat>
                <Power1Temp>-1</Power1Temp>
                <Power1Status>0</Power1Status>
                <PowerFanStatus1>-1</PowerFanStatus1>

I've can provide mem_info_support details if you want to add additional memory stats. Such as Max channels, max slots, slot_info.

Thank you,

QTS Version: 4.3.5

TS-869 Pro and TS-853 Pro are compatible

Device Model Number: TS-869 Pro
QTS Version: 4.3.4.1652

Device Model Number: TS-853 Pro
QTS Version: 4.5.4.1741

When running the example script on the main page, I can confirm that these two models will return the complete information.

Regards,
Guy

Problem with QNAP that have only "Thick LUN" without volumes

Device Model Number: TS-EC1280U

QTS Version: 4.5.2.1594 Build 20210302

If QNAP only has a Thick LUN / iSCSI volume mounted then the script crashes because it does not have a standard volume.

I solved it momentarily by adding a "Try - Except" to the code, as I have also reported here at the bottom of the report: #53 (comment)

This is the result with error of debug:

("'NoneType' object is not subscriptable",)
Traceback (most recent call last):
  File "./debug.py", line 32, in <module>
    qnap.get_volumes()
  File "/usr/local/lib/python3.8/dist-packages/qnapstats/qnap_stats.py", line 144, in get_volumes
    for vol in resp["volumeList"]["volume"]:
TypeError: 'NoneType' object is not subscriptable

This is my configuration:

image

XML/Debug Output:

root@srv-monitorit02:~/test# ./debug.py 
DEBUG: Creating new session
DEBUG: POST to URL: http://192.168.11.2:8080/cgi-bin/authLogin.cgi
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><shutdown_info><type><![CDATA[-1]]></type><timestamp><![CDATA[0]]></timestamp><duration><![CDATA[0]]></duration></shutdown_info>
<SMBFW><![CDATA[1]]></SMBFW><hero_model><![CDATA[0]]></hero_model><qts_mode_type><![CDATA[0]]></qts_mode_type><authPassed><![CDATA[1]]></authPassed><authSid><![CDATA[1petkc5m]]></authSid><pw_status><![CDATA[0]]></pw_status><isAdmin><![CDATA[1]]></isAdmin><username><![CDATA[admin]]></username><groupname><![CDATA[administrators]]></groupname><ts><![CDATA[73106097]]></ts><fwNotice><![CDATA[0]]></fwNotice><SUID><![CDATA[a38409f0abce73b85c382a25dbbb4d3c]]></SUID><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><standard_massage><![CDATA[]]></standard_massage><standard_color><![CDATA[#ffffff]]></standard_color><standard_size><![CDATA[12px]]></standard_size><standard_bg_style><![CDATA[fill]]></standard_bg_style><showVersion><![CDATA[0]]></showVersion><show_link><![CDATA[1]]></show_link><cuid><![CDATA[e15da65a6bf8b3446d8e7ec013dbcf91]]></cuid></QDocRoot>

DEBUG: GET from URL: http://192.168.11.2:8080/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&hd=no&multicpu=1
DEBUG: Appending access_token (SID: 1petkc5m) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X80U]]></modelName><internalModelName><![CDATA[TS-X80]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_HASWELL]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-EC1280U]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS04282D]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><root>
<timezone><![CDATA[(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna]]></timezone><cpu_usage><![CDATA[1.2 %]]></cpu_usage><cpufan_count>0</cpufan_count>
<fan_reg_cnt><![CDATA[0]]></fan_reg_cnt><temp_reg_cnt><![CDATA[0]]></temp_reg_cnt><cpu_model><![CDATA[Intel(R) Xeon(R) CPU E3-1246 v3 @ 3.50GHz]]></cpu_model><total_memory><![CDATA[3892.0]]></total_memory><free_memory><![CDATA[1517.0]]></free_memory><mem_info_support><![CDATA[1]]></mem_info_support><mem_max_channels><![CDATA[2]]></mem_max_channels><mem_max_slots><![CDATA[4]]></mem_max_slots><mem_slot_info><mem_valid><![CDATA[0]]></mem_valid><mem_slot_id><![CDATA[1]]></mem_slot_id><mem_channel_id><![CDATA[A]]></mem_channel_id><mem_dimm_size><![CDATA[0]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[1]]></mem_valid><mem_slot_id><![CDATA[2]]></mem_slot_id><mem_channel_id><![CDATA[A]]></mem_channel_id><mem_dimm_size><![CDATA[2048]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[Transcend Information]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[0]]></mem_valid><mem_slot_id><![CDATA[3]]></mem_slot_id><mem_channel_id><![CDATA[B]]></mem_channel_id><mem_dimm_size><![CDATA[0]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[1]]></mem_valid><mem_slot_id><![CDATA[4]]></mem_slot_id><mem_channel_id><![CDATA[B]]></mem_channel_id><mem_dimm_size><![CDATA[2048]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[Transcend Information]]></mem_dimm_manufacturer></mem_slot_info>
<nic_cnt><![CDATA[6]]></nic_cnt><nic_lan_cnt><![CDATA[6]]></nic_lan_cnt><nic_qa_port_cnt><![CDATA[0]]></nic_qa_port_cnt><ifindex1>2</ifindex1>
<ifname1>eth0</ifname1>
<dname1>Adapter 1</dname1>
<rx_packet1>0</rx_packet1>
<tx_packet1>0</tx_packet1>
<err_packet1>0</err_packet1>
<eth_status1>0</eth_status1>
<eth_max_speed1>1000</eth_max_speed1>
<is_QA_port_eth1>0</is_QA_port_eth1>
<eth_ip1>0.0.0.0</eth_ip1>
<eth_mask1>0.0.0.0</eth_mask1>
<eth_mac1>24:5e:be:04:28:2d</eth_mac1>
<eth_usage1>DHCP</eth_usage1>
<eth_ipv6_info1><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info1><dnsinfo1><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo1><ifindex2>5</ifindex2>
<ifname2>eth1</ifname2>
<dname2>Adapter 2</dname2>
<rx_packet2>0</rx_packet2>
<tx_packet2>0</tx_packet2>
<err_packet2>0</err_packet2>
<eth_status2>0</eth_status2>
<eth_max_speed2>1000</eth_max_speed2>
<is_QA_port_eth2>0</is_QA_port_eth2>
<eth_ip2>0.0.0.0</eth_ip2>
<eth_mask2>0.0.0.0</eth_mask2>
<eth_mac2>24:5e:be:04:28:2e</eth_mac2>
<eth_usage2>DHCP</eth_usage2>
<eth_ipv6_info2><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info2><dnsinfo2><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo2><ifindex3>4</ifindex3>
<ifname3>eth2</ifname3>
<dname3>Adapter 3</dname3>
<rx_packet3>0</rx_packet3>
<tx_packet3>0</tx_packet3>
<err_packet3>0</err_packet3>
<eth_status3>0</eth_status3>
<eth_max_speed3>1000</eth_max_speed3>
<is_QA_port_eth3>0</is_QA_port_eth3>
<eth_ip3>0.0.0.0</eth_ip3>
<eth_mask3>0.0.0.0</eth_mask3>
<eth_mac3>24:5e:be:04:28:2f</eth_mac3>
<eth_usage3>DHCP</eth_usage3>
<eth_ipv6_info3><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info3><dnsinfo3><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo3><ifindex4>3</ifindex4>
<ifname4>eth3</ifname4>
<dname4>Adapter 4</dname4>
<rx_packet4>7526374</rx_packet4>
<tx_packet4>123045</tx_packet4>
<err_packet4>0</err_packet4>
<eth_status4>1</eth_status4>
<eth_max_speed4>1000</eth_max_speed4>
<is_QA_port_eth4>0</is_QA_port_eth4>
<eth_ip4>192.168.11.2</eth_ip4>
<eth_mask4>255.255.255.0</eth_mask4>
<eth_mac4>24:5e:be:04:28:30</eth_mac4>
<eth_usage4>STATIC</eth_usage4>
<eth_ipv6_info4><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info4><dnsinfo4><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo4><ifindex5>7</ifindex5>
<ifname5>eth4</ifname5>
<dname5>Adapter 5</dname5>
<rx_packet5>7546025</rx_packet5>
<tx_packet5>460</tx_packet5>
<err_packet5>0</err_packet5>
<eth_status5>1</eth_status5>
<eth_max_speed5>10000</eth_max_speed5>
<is_QA_port_eth5>0</is_QA_port_eth5>
<eth_ip5>192.168.168.22</eth_ip5>
<eth_mask5>255.255.255.0</eth_mask5>
<eth_mac5>24:5e:be:03:8f:67</eth_mac5>
<eth_usage5>STATIC</eth_usage5>
<eth_ipv6_info5><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info5><dnsinfo5><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo5><ifindex6>6</ifindex6>
<ifname6>eth5</ifname6>
<dname6>Adapter 6</dname6>
<rx_packet6>70955067</rx_packet6>
<tx_packet6>38577237</tx_packet6>
<err_packet6>0</err_packet6>
<eth_status6>1</eth_status6>
<eth_max_speed6>10000</eth_max_speed6>
<is_QA_port_eth6>0</is_QA_port_eth6>
<eth_ip6>192.168.168.23</eth_ip6>
<eth_mask6>255.255.255.0</eth_mask6>
<eth_mac6>24:5e:be:03:8f:66</eth_mac6>
<eth_usage6>STATIC</eth_usage6>
<eth_ipv6_info6><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info6><dnsinfo6><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo6><bonding_list></bonding_list>
<bonding_cnt><![CDATA[0]]></bonding_cnt><ipv6Enable><![CDATA[1]]></ipv6Enable><dnsInfo><DNS_LIST><![CDATA[ 192.168.15.14]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.206]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.14]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.206]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.14]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.206]]></DNS_LIST></dnsInfo>
<WirelessSupport><![CDATA[1]]></WirelessSupport><Error><![CDATA[1]]></Error><ThunderboltSupport><![CDATA[0]]></ThunderboltSupport><uptime_day><![CDATA[2]]></uptime_day><uptime_hour><![CDATA[1]]></uptime_hour><uptime_min><![CDATA[26]]></uptime_min><uptime_sec><![CDATA[49]]></uptime_sec><HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><cpu_tempc>44</cpu_tempc><cpu_tempf>111</cpu_tempf>
<CPUTempWarnT><![CDATA[80]]></CPUTempWarnT><CPUTempErrT><![CDATA[85]]></CPUTempErrT><sys_tempc>40</sys_tempc>
<sys_tempf>104</sys_tempf>
<SysTempWarnT><![CDATA[60]]></SysTempWarnT><SysTempErrT><![CDATA[70]]></SysTempErrT><sysfan_count>4</sysfan_count>
<sysfan_alias>SYS FAN</sysfan_alias>
<sysfan1>6108</sysfan1>
<sysfan_fail1>0</sysfan_fail1>
<sysfan1_stat>0</sysfan1_stat>
<sysfan2>6108</sysfan2>
<sysfan_fail2>0</sysfan_fail2>
<sysfan2_stat>0</sysfan2_stat>
<sysfan3>6192</sysfan3>
<sysfan_fail3>0</sysfan_fail3>
<sysfan3_stat>0</sysfan3_stat>
<sysfan4>6081</sysfan4>
<sysfan_fail4>0</sysfan_fail4>
<sysfan4_stat>0</sysfan4_stat>
<Power1Temp>-2</Power1Temp>
<Power2Temp>-2</Power2Temp>
<Power1Status>0</Power1Status>
<Power2Status>0</Power2Status>
<PowerFanStatus1>-2</PowerFanStatus1>
<PowerFanStatus2>-2</PowerFanStatus2>
<BusType>NAS</BusType>
<serial_number>Q166I14410</serial_number>
<server_name><![CDATA[NAS04282D]]></server_name><qat_support><![CDATA[0]]></qat_support><codepage><![CDATA[437]]></codepage><bios_version>QV99IR34</bios_version>
</root>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.11.2:8080/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&sysHealth=1
DEBUG: Appending access_token (SID: 1petkc5m) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X80U]]></modelName><internalModelName><![CDATA[TS-X80]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_HASWELL]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-EC1280U]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS04282D]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><sysHealth><status><![CDATA[good]]></status></sysHealth>
<needProcessEvent></needProcessEvent>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.11.2:8080/cgi-bin/disk/qsmart.cgi?func=all_hd_data
DEBUG: Appending access_token (SID: 1petkc5m) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X80U]]></modelName><internalModelName><![CDATA[TS-X80]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_HASWELL]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-EC1280U]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS04282D]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><CacheEncId><![CDATA[23]]></CacheEncId><Disk_Info><entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:1]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA12WWP5]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:2]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[36]]></oC><oF><![CDATA[96]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA12WWQE]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:3]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[36]]></oC><oF><![CDATA[96]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA12WD5Y]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:4]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[35]]></oC><oF><![CDATA[95]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA10VMTS]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:5]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA12WWQM]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:6]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA10QTPP]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:7]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA12Z2VN]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:8]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PN02]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[36]]></oC><oF><![CDATA[96]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA12Z2VR]]></Serial><FirmVersion><![CDATA[PN02]]></FirmVersion><ATAVersion><![CDATA[PN02]]></ATAVersion><ATADescription><![CDATA[PN02]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:9]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0011-1YG112 PNA2]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0011-1YG112]]></Model><Serial><![CDATA[ZA1483VC]]></Serial><FirmVersion><![CDATA[PNA2]]></FirmVersion><ATAVersion><![CDATA[PNA2]]></ATAVersion><ATADescription><![CDATA[PNA2]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:10]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PNA2]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA13QM5R]]></Serial><FirmVersion><![CDATA[PNA2]]></FirmVersion><ATAVersion><![CDATA[PNA2]]></ATAVersion><ATADescription><![CDATA[PNA2]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:11]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PNA2]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA13R992]]></Serial><FirmVersion><![CDATA[PNA2]]></FirmVersion><ATAVersion><![CDATA[PNA2]]></ATAVersion><ATADescription><![CDATA[PNA2]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:12]]></HDNo><Vendor><![CDATA[Seagate ST8000NE0001-1WN112 PNA2]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[36]]></oC><oF><![CDATA[96]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[ST8000NE0001-1WN112]]></Model><Serial><![CDATA[ZA13GF9A]]></Serial><FirmVersion><![CDATA[PNA2]]></FirmVersion><ATAVersion><![CDATA[PNA2]]></ATAVersion><ATADescription><![CDATA[PNA2]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[23:1]]></HDNo><Vendor><![CDATA[Samsung SSD 860 EVO mSATA 500GB RVT41B6Q]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[465.76 GB]]></Capacity><Temperature><oC><![CDATA[41]]></oC><oF><![CDATA[105]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[SSD 860 EVO mSATA 500GB]]></Model><Serial><![CDATA[S41NNB0K404351Z]]></Serial><FirmVersion><![CDATA[RVT41B6Q]]></FirmVersion><ATAVersion><![CDATA[RVT41B6Q]]></ATAVersion><ATADescription><![CDATA[RVT41B6Q]]></ATADescription><Support_SMART><![CDATA[1]]></Support_SMART><Support_SelfTest><![CDATA[1]]></Support_SelfTest><Support_Trim><![CDATA[1]]></Support_Trim><Support_SecurityErase><![CDATA[1]]></Support_SecurityErase><Support_DZAT><![CDATA[1]]></Support_DZAT><hd_is_ssd><![CDATA[1]]></hd_is_ssd></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[23:2]]></HDNo><Vendor><![CDATA[Samsung SSD 860 EVO mSATA 500GB RVT41B6Q]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[465.76 GB]]></Capacity><Temperature><oC><![CDATA[41]]></oC><oF><![CDATA[105]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[SSD 860 EVO mSATA 500GB]]></Model><Serial><![CDATA[S41NNB0K404390L]]></Serial><FirmVersion><![CDATA[RVT41B6Q]]></FirmVersion><ATAVersion><![CDATA[RVT41B6Q]]></ATAVersion><ATADescription><![CDATA[RVT41B6Q]]></ATADescription><Support_SMART><![CDATA[1]]></Support_SMART><Support_SelfTest><![CDATA[1]]></Support_SelfTest><Support_Trim><![CDATA[1]]></Support_Trim><Support_SecurityErase><![CDATA[1]]></Support_SecurityErase><Support_DZAT><![CDATA[1]]></Support_DZAT><hd_is_ssd><![CDATA[1]]></hd_is_ssd></entry>
</Disk_Info>
</QDocRoot>

DEBUG: GET from URL: http://192.168.11.2:8080/cgi-bin/management/chartReq.cgi?chart_func=disk_usage&disk_select=all&include=all
DEBUG: Appending access_token (SID: 1petkc5m) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X80U]]></modelName><internalModelName><![CDATA[TS-X80]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_HASWELL]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-EC1280U]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS04282D]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<volumeList></volumeList>
<volumeUseList><volumeUse><volumeValue><![CDATA[1]]></volumeValue><total_size><![CDATA[0]]></total_size><free_size><![CDATA[0]]></free_size><folder_element></folder_element>
<folder_element><sharename><![CDATA[System Reserved]]></sharename><used_size><![CDATA[0]]></used_size><type><![CDATA[system]]></type></folder_element>
<found_quota><![CDATA[0]]></found_quota></volumeUse>
</volumeUseList>
</QDocRoot>

("'NoneType' object is not subscriptable",)
Traceback (most recent call last):
  File "./debug.py", line 32, in <module>
    qnap.get_volumes()
  File "/usr/local/lib/python3.8/dist-packages/qnapstats/qnap_stats.py", line 144, in get_volumes
    for vol in resp["volumeList"]["volume"]:
TypeError: 'NoneType' object is not subscriptable
DEBUG: GET from URL: http://192.168.11.2:8080/cgi-bin/management/chartReq.cgi?chart_func=QSM40bandwidth
DEBUG: Appending access_token (SID: 1petkc5m) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X80U]]></modelName><internalModelName><![CDATA[TS-X80]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_HASWELL]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-EC1280U]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[NAS04282D]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<bandwidth_info><df_gateway><![CDATA[]]></df_gateway><item><id><![CDATA[eth0]]></id><name><![CDATA[LAN 1]]></name><rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx></item>
<item><id><![CDATA[eth1]]></id><name><![CDATA[LAN 2]]></name><rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx></item>
<item><id><![CDATA[eth2]]></id><name><![CDATA[LAN 3]]></name><rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx></item>
<item><id><![CDATA[eth3]]></id><name><![CDATA[LAN 4]]></name><rx><![CDATA[25204]]></rx><tx><![CDATA[68509]]></tx></item>
<item><id><![CDATA[eth4]]></id><name><![CDATA[LAN 5]]></name><rx><![CDATA[17588]]></rx><tx><![CDATA[0]]></tx></item>
<item><id><![CDATA[eth5]]></id><name><![CDATA[LAN 6]]></name><rx><![CDATA[17588]]></rx><tx><![CDATA[0]]></tx></item>
<item><id><![CDATA[bond0]]></id><name><![CDATA[LAN 5+6]]></name><rx><![CDATA[35176]]></rx><tx><![CDATA[0]]></tx></item>
</bandwidth_info>
</QDocRoot>

Thank You for your work!

TS-219P Compatibility

Hi! Just want to let you know that it's working on this Qnap model and you could add it to your list. Thanks for your work!

Device Model Number: TS-219P II

QTS Version: 4.3.3

TS-673 Compatability

"Failed to fetch QNAP stats from the NAS". I am not sure if I need to allow permissions somewhere on my QNAP or if it is a comparability issue with TS-673/v4.5.2

Device Model Number: TS-673

QTS Version: 4.5.2

configuration.yaml

sensor:
  - platform: qnap
    host: 192.168.1.69
    port: 443
    username: notmyusername
    password: notmyactualpassword
    ssl: true
    verify_ssl: false
    monitored_conditions:
      - status
      - cpu_usage
      - memory_percent_used
      - network_tx
      - volume_percentage_used
      - drive_smart_status

XML/Debug Output:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
    self.data["system_stats"] = self._api.get_system_stats()
  File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 267, in get_system_stats
    for dns in root["dnsInfo"]["DNS_LIST"]:
TypeError: 'NoneType' object is not subscriptable

Exception when no temperature reported by disk

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-659

QTS Version: <4.2.6>

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

DEBUG: Creating new session
DEBUG: POST to URL: http://172.31.20.200:8080/cgi-bin/authLogin.cgi
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><SMBFW><![CDATA[0]]></SMBFW><authPassed><![CDATA[1]]></authPassed><authSid><![CDATA[ob24eucq]]></authSid><isAdmin><![CDATA[1]]></isAdmin><username><![CDATA[admin]]></username><groupname><![CDATA[administrators]]></groupname><ts><![CDATA[84872568]]></ts><fwNotice><![CDATA[0]]></fwNotice><SUID><![CDATA[caa72aa143fce9fd2ca58b98b9cacf58]]></SUID><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><showVersion><![CDATA[0]]></showVersion><show_link><![CDATA[1]]></show_link></QDocRoot>

DEBUG: GET from URL: http://172.31.20.200:8080/cgi-bin/disk/qsmart.cgi?func=all_hd_data
DEBUG: Appending access_token (SID: ob24eucq) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-659]]></modelName><internalModelName><![CDATA[TS-659]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-659]]></displayModelName><storage_v2>0</storage_v2>
</model>
<firmware><version><![CDATA[4.2.6]]></version><build><![CDATA[20170517]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2017/05/17]]></buildTime></firmware>
<specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[SHAUN]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><Disk_Info><entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[1]]></HDNo><Vendor><![CDATA[WDC     WD20EFRX-68EUZN082.0]]></Vendor><io_health><![CDATA[OK]]></io_health><Health><![CDATA[OK]]></Health><Capacity><![CDATA[1.82 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[WDC WD20EFRX-68EUZN0]]></Model><Serial><![CDATA[WD-WCC4M3AHY36Y]]></Serial><FirmVersion><![CDATA[82.00A82]]></FirmVersion><ATAVersion><![CDATA[ATA-9 ]]></ATAVersion><ATADescription><![CDATA[Exact ATA specification draft version not indicated]]></ATADescription></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[2]]></HDNo><Vendor><![CDATA[WDC     WD20EFRX-68EUZN082.0]]></Vendor><io_health><![CDATA[OK]]></io_health><Health><![CDATA[OK]]></Health><Capacity><![CDATA[1.82 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[WDC WD20EFRX-68EUZN0]]></Model><Serial><![CDATA[WD-WCC4M5TXJDV9]]></Serial><FirmVersion><![CDATA[82.00A82]]></FirmVersion><ATAVersion><![CDATA[ATA-9 ]]></ATAVersion><ATADescription><![CDATA[Exact ATA specification draft version not indicated]]></ATADescription></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[3]]></HDNo><Vendor><![CDATA[INTEL   SSDSA2M160G2GN  2CV1]]></Vendor><io_health><![CDATA[OK]]></io_health><Health><![CDATA[OK]]></Health><Capacity><![CDATA[149.05 GB]]></Capacity><Temperature><oC><![CDATA[]]></oC><oF><![CDATA[]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[INTEL SSDSA2M160G2GN]]></Model><Serial><![CDATA[CVPO13060046160AGN]]></Serial><FirmVersion><![CDATA[2CV102G9]]></FirmVersion><ATAVersion><![CDATA[ATA-7 (ATA133)]]></ATAVersion><ATADescription><![CDATA[ATA/ATAPI-7 T13 1532D revision 1]]></ATADescription></entry>
<entry><Disk_Status><![CDATA[-5]]></Disk_Status><HDNo><![CDATA[4]]></HDNo><Vendor><![CDATA[]]></Vendor><io_health><![CDATA[Abnormal]]></io_health><Health><![CDATA[Abnormal]]></Health><Capacity><![CDATA[]]></Capacity><Temperature><oC><![CDATA[]]></oC><oF><![CDATA[]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[]]></Model><Serial><![CDATA[]]></Serial><FirmVersion><![CDATA[]]></FirmVersion><ATAVersion><![CDATA[]]></ATAVersion><ATADescription><![CDATA[]]></ATADescription></entry>
<entry><Disk_Status><![CDATA[-5]]></Disk_Status><HDNo><![CDATA[5]]></HDNo><Vendor><![CDATA[]]></Vendor><io_health><![CDATA[Abnormal]]></io_health><Health><![CDATA[Abnormal]]></Health><Capacity><![CDATA[]]></Capacity><Temperature><oC><![CDATA[]]></oC><oF><![CDATA[]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[]]></Model><Serial><![CDATA[]]></Serial><FirmVersion><![CDATA[]]></FirmVersion><ATAVersion><![CDATA[]]></ATAVersion><ATADescription><![CDATA[]]></ATADescription></entry>
<entry><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[6]]></HDNo><Vendor><![CDATA[WDC     WD30EFRX-68EUZN080.0]]></Vendor><io_health><![CDATA[OK]]></io_health><Health><![CDATA[OK]]></Health><Capacity><![CDATA[2.73 TB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[WDC WD30EFRX-68EUZN0]]></Model><Serial><![CDATA[WD-WMC4N2255621]]></Serial><FirmVersion><![CDATA[80.00A80]]></FirmVersion><ATAVersion><![CDATA[ATA-9 ]]></ATAVersion><ATADescription><![CDATA[Exact ATA specification draft version not indicated]]></ATADescription></entry>
</Disk_Info>
</QDocRoot>

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/klstanie/.virtualenvs/bmw/lib/python3.6/site-packages/qnapstats/qnap_stats.py", line 193, in get_smart_disk_health
    "temp_c": int(disk["Temperature"]["oC"]),
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
>>>

dependency error

pip3 install xmltodict>=0.10.0
python-jose-cryptodome 1.3.2 has requirement pycryptodome<3.4.0,>=3.3.1, but you'll have pycryptodome 3.4.11 which is incompatible.
pyatv 0.3.9 has requirement aiohttp<3,>=2.3.0, but you'll have aiohttp 3.1.1 which is incompatible.
netdisco 1.2.3 has requirement zeroconf==0.19.1, but you'll have zeroconf 0.20.0 which is incompatible.

TS-453B Compatible?

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-453B

QTS Version: <4.5.2.1566>

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
self.data["system_stats"] = self._api.get_system_stats()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 205, in get_system_stats
resp = self._get_url(
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
self._init_session()
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
if self._login() is False:
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 57, in _login
result = self._execute_post_url("authLogin.cgi", data, False)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 98, in _execute_post_url
return self._handle_response(resp, **kwargs)
File "/usr/local/lib/python3.8/site-packages/qnapstats/qnap_stats.py", line 112, in _handle_response
auth_passed = data['authPassed']
KeyError: 'authPassed'

With a new qnap firmware 4.4.1 it does not work

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number:

QTS Version: <4.4.1>

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

<Insert your XML or debug output here>

QTS 5.0.0 issue

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TVS 673e

QTS Version: 5.0.0

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 14 Dec 2021 19:37:31 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=800", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><shutdown_info><type><![CDATA[-1]]></type><timestamp><![CDATA[0]]></timestamp><duration><![CDATA[0]]></duration></shutdown_info>
<SMBFW><![CDATA[1]]></SMBFW><hero_model><![CDATA[0]]></hero_model><qts_mode_type><![CDATA[0]]></qts_mode_type><authPassed><![CDATA[1]]></authPassed><authSid><![CDATA[mdtkgcd5]]></authSid><pw_status><![CDATA[0]]></pw_status><isAdmin><![CDATA[1]]></isAdmin><username><![CDATA[xxxxxxx]]></username><groupname><![CDATA[everyone]]></groupname><ts><![CDATA[86283624]]></ts><fwNotice><![CDATA[0]]></fwNotice><SUID><![CDATA[a302e50bce82442df9abc3414cd40810]]></SUID><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><standard_massage><![CDATA[]]></standard_massage><standard_color><![CDATA[#FFFFFF]]></standard_color><standard_size><![CDATA[12 px]]></standard_size><standard_bg_style><![CDATA[fill]]></standard_bg_style><showVersion><![CDATA[0]]></showVersion><show_link><![CDATA[1]]></show_link><cuid><![CDATA[4a7c2ad98e1b09bd83a33f955fcae8c6]]></cuid><auth_method><![CDATA[ck]]></auth_method></QDocRoot>

DEBUG: GET from URL: http://192.168.0.20:9090/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&hd=no&multicpu=1
DEBUG: Appending access_token (SID: mdtkgcd5) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 14 Dec 2021 19:37:31 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=799", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X73]]></modelName><internalModelName><![CDATA[TS-X73]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_MERLINFALCON]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TVS-673]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><name><![CDATA[QTS]]></name><version><![CDATA[5.0.0]]></version><number><![CDATA[1858]]></number><build><![CDATA[20211119]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/11/19]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><root>
<timezone><![CDATA[(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna]]></timezone><cpu_usage><![CDATA[10.4 %]]></cpu_usage><cpufan_count>1</cpufan_count>
<cpufan1>1120</cpufan1>
<fan_fail1>0</fan_fail1>
<fan_reg_cnt><![CDATA[0]]></fan_reg_cnt><temp_reg_cnt><![CDATA[0]]></temp_reg_cnt><cpu_model><![CDATA[AMD Embedded R-Series RX-421BD Radeon R7]]></cpu_model><cpu_model_name><![CDATA[AMD Embedded R-Series RX-421BD Radeon R7]]></cpu_model_name><cpu_burst_freq><![CDATA[2100 MHz]]></cpu_burst_freq><total_memory><![CDATA[15463.0]]></total_memory><free_memory><![CDATA[11551.1]]></free_memory><mem_info_support><![CDATA[1]]></mem_info_support><mem_max_channels><![CDATA[2]]></mem_max_channels><mem_max_slots><![CDATA[4]]></mem_max_slots><mem_slot_info><mem_valid><![CDATA[1]]></mem_valid><mem_slot_id><![CDATA[1]]></mem_slot_id><mem_dimm_id><![CDATA[1]]></mem_dimm_id><mem_channel_id><![CDATA[A]]></mem_channel_id><mem_dimm_size><![CDATA[8192]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[Crucial Technology]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[0]]></mem_valid><mem_slot_id><![CDATA[2]]></mem_slot_id><mem_dimm_id><![CDATA[2]]></mem_dimm_id><mem_channel_id><![CDATA[A]]></mem_channel_id><mem_dimm_size><![CDATA[0]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[1]]></mem_valid><mem_slot_id><![CDATA[3]]></mem_slot_id><mem_dimm_id><![CDATA[3]]></mem_dimm_id><mem_channel_id><![CDATA[B]]></mem_channel_id><mem_dimm_size><![CDATA[8192]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[Crucial Technology]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[0]]></mem_valid><mem_slot_id><![CDATA[4]]></mem_slot_id><mem_dimm_id><![CDATA[4]]></mem_dimm_id><mem_channel_id><![CDATA[B]]></mem_channel_id><mem_dimm_size><![CDATA[0]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[]]></mem_dimm_manufacturer></mem_slot_info>
<nic_cnt><![CDATA[6]]></nic_cnt><nic_lan_cnt><![CDATA[5]]></nic_lan_cnt><nic_qa_port_cnt><![CDATA[1]]></nic_qa_port_cnt><ifindex1>4</ifindex1>
<ifname1>eth0</ifname1>
<dname1>Adapter 1</dname1>
<rx_packet1>0</rx_packet1>
<tx_packet1>0</tx_packet1>
<err_packet1>0</err_packet1>
<eth_status1>0</eth_status1>
<eth_max_speed1>1000</eth_max_speed1>
<is_QA_port_eth1>0</is_QA_port_eth1>
<eth_ip1>0.0.0.0</eth_ip1>
<eth_mask1>0.0.0.0</eth_mask1>
<eth_mac1>24:5e:be:27:c2:c9</eth_mac1>
<eth_usage1>DHCP</eth_usage1>
<eth_ipv6_info1><eth_ipv6_enable>1</eth_ipv6_enable></eth_ipv6_info1><dnsinfo1></dnsinfo1><ifindex2>5</ifindex2>
<ifname2>eth1</ifname2>
<dname2>Adapter 2</dname2>
<rx_packet2>0</rx_packet2>
<tx_packet2>0</tx_packet2>
<err_packet2>0</err_packet2>
<eth_status2>0</eth_status2>
<eth_max_speed2>1000</eth_max_speed2>
<is_QA_port_eth2>0</is_QA_port_eth2>
<eth_ip2>0.0.0.0</eth_ip2>
<eth_mask2>0.0.0.0</eth_mask2>
<eth_mac2>24:5e:be:27:c2:ca</eth_mac2>
<eth_usage2>DHCP</eth_usage2>
<eth_ipv6_info2><eth_ipv6_enable>1</eth_ipv6_enable></eth_ipv6_info2><dnsinfo2></dnsinfo2><ifindex3>3</ifindex3>
<ifname3>eth2</ifname3>
<dname3>Adapter 3</dname3>
<rx_packet3>0</rx_packet3>
<tx_packet3>0</tx_packet3>
<err_packet3>0</err_packet3>
<eth_status3>0</eth_status3>
<eth_max_speed3>1000</eth_max_speed3>
<is_QA_port_eth3>0</is_QA_port_eth3>
<eth_ip3>0.0.0.0</eth_ip3>
<eth_mask3>0.0.0.0</eth_mask3>
<eth_mac3>24:5e:be:27:c2:cb</eth_mac3>
<eth_usage3>DHCP</eth_usage3>
<eth_ipv6_info3><eth_ipv6_enable>1</eth_ipv6_enable></eth_ipv6_info3><dnsinfo3></dnsinfo3><ifindex4>2</ifindex4>
<ifname4>eth3</ifname4>
<dname4>Adapter 4</dname4>
<rx_packet4>0</rx_packet4>
<tx_packet4>0</tx_packet4>
<err_packet4>0</err_packet4>
<eth_status4>0</eth_status4>
<eth_max_speed4>1000</eth_max_speed4>
<is_QA_port_eth4>0</is_QA_port_eth4>
<eth_ip4>0.0.0.0</eth_ip4>
<eth_mask4>0.0.0.0</eth_mask4>
<eth_mac4>24:5e:be:27:c2:cc</eth_mac4>
<eth_usage4>DHCP</eth_usage4>
<eth_ipv6_info4><eth_ipv6_enable>1</eth_ipv6_enable></eth_ipv6_info4><dnsinfo4></dnsinfo4><ifindex5>7</ifindex5>
<ifname5>eth5</ifname5>
<dname5>Adapter 5</dname5>
<rx_packet5>231403513</rx_packet5>
<tx_packet5>382372993</tx_packet5>
<err_packet5>0</err_packet5>
<eth_status5>1</eth_status5>
<eth_max_speed5>10000</eth_max_speed5>
<is_QA_port_eth5>0</is_QA_port_eth5>
<eth_ip5>192.168.0.20</eth_ip5>
<eth_mask5>255.255.255.0</eth_mask5>
<eth_mac5>24:5e:be:29:12:9d</eth_mac5>
<eth_usage5>DHCP</eth_usage5>
<eth_ipv6_info5><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info5><dnsinfo5><dns1>8.8.8.8</dns1>
<dns2>4.4.4.4</dns2>
</dnsinfo5><ifindex6>6</ifindex6>
<ifname6>eth6</ifname6>
<dname6>USB QuickAccess</dname6>
<rx_packet6>0</rx_packet6>
<tx_packet6>0</tx_packet6>
<err_packet6>0</err_packet6>
<eth_status6>0</eth_status6>
<eth_max_speed6>1000</eth_max_speed6>
<is_QA_port_eth6>1</is_QA_port_eth6>
<eth_ip6>0.0.0.0</eth_ip6>
<eth_mask6>0.0.0.0</eth_mask6>
<eth_mac6>fe:73:c7:d1:bf:49</eth_mac6>
<eth_usage6>STATIC</eth_usage6>
<eth_ipv6_info6><eth_ipv6_enable>1</eth_ipv6_enable></eth_ipv6_info6><dnsinfo6></dnsinfo6><bonding_list></bonding_list>
<bonding_cnt><![CDATA[0]]></bonding_cnt><ipv6Enable><![CDATA[1]]></ipv6Enable><dnsInfo><DNS_LIST><![CDATA[ 8.8.8.8]]></DNS_LIST><DNS_LIST><![CDATA[ 4.4.4.4]]></DNS_LIST></dnsInfo>
<WirelessSupport><![CDATA[1]]></WirelessSupport><Error><![CDATA[1]]></Error><ThunderboltSupport><![CDATA[0]]></ThunderboltSupport><uptime_day><![CDATA[7]]></uptime_day><uptime_hour><![CDATA[8]]></uptime_hour><uptime_min><![CDATA[10]]></uptime_min><uptime_sec><![CDATA[53]]></uptime_sec><HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><cpu_tempc>45</cpu_tempc><cpu_tempf>113</cpu_tempf>
<CPUTempWarnT><![CDATA[75]]></CPUTempWarnT><CPUTempErrT><![CDATA[80]]></CPUTempErrT><sys_tempc>34</sys_tempc>
<sys_tempf>93</sys_tempf>
<SysTempWarnT><![CDATA[60]]></SysTempWarnT><SysTempErrT><![CDATA[70]]></SysTempErrT><tpu><tpu_dev_cnt><![CDATA[0]]></tpu_dev_cnt></tpu>
<sysfan_count>2</sysfan_count>
<sysfan_alias>SYS FAN</sysfan_alias>
<sysfan1>1403</sysfan1>
<sysfan_fail1>0</sysfan_fail1>
<sysfan1_stat>0</sysfan1_stat>
<sysfan2>1381</sysfan2>
<sysfan_fail2>0</sysfan_fail2>
<sysfan2_stat>0</sysfan2_stat>
<Power1Temp>-1</Power1Temp>
<Power1Status>0</Power1Status>
<PowerFanStatus1>-1</PowerFanStatus1>
<BusType>NAS</BusType>
<serial_number>Q181I22398</serial_number>
<server_name><![CDATA[QNAS]]></server_name><qat_support><![CDATA[0]]></qat_support><codepage><![CDATA[437]]></codepage><bios_version>QY03AR22</bios_version>
</root>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.0.20:9090/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&sysHealth=1
DEBUG: Appending access_token (SID: mdtkgcd5) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 14 Dec 2021 19:37:34 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=798", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X73]]></modelName><internalModelName><![CDATA[TS-X73]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_MERLINFALCON]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TVS-673]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><name><![CDATA[QTS]]></name><version><![CDATA[5.0.0]]></version><number><![CDATA[1858]]></number><build><![CDATA[20211119]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/11/19]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><sysHealth><status><![CDATA[good]]></status></sysHealth>
<needProcessEvent></needProcessEvent>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.0.20:9090/cgi-bin/disk/qsmart.cgi?func=all_hd_data
DEBUG: Appending access_token (SID: mdtkgcd5) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 14 Dec 2021 19:37:34 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=797", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X73]]></modelName><internalModelName><![CDATA[TS-X73]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_MERLINFALCON]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TVS-673]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><name><![CDATA[QTS]]></name><version><![CDATA[5.0.0]]></version><number><![CDATA[1858]]></number><build><![CDATA[20211119]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/11/19]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><Disk_Info><entry><Disk_Alias><![CDATA[M.2 SSD 1]]></Disk_Alias><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:1]]></HDNo><Vendor><![CDATA[WDC WDS500G2B0B-00YS70 411040WD]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[465.76 GB]]></Capacity><Temperature><oC><![CDATA[42]]></oC><oF><![CDATA[107]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:06]]></LastTestTime><Model><![CDATA[WDS500G2B0B-00YS70]]></Model><Serial><![CDATA[19477D805120]]></Serial><FirmVersion><![CDATA[411040WD]]></FirmVersion><ATAVersion><![CDATA[411040WD]]></ATAVersion><ATADescription><![CDATA[411040WD]]></ATADescription><Support_SMART><![CDATA[1]]></Support_SMART><Support_SelfTest><![CDATA[1]]></Support_SelfTest><Support_Trim><![CDATA[1]]></Support_Trim><Support_SecurityErase><![CDATA[1]]></Support_SecurityErase><Support_DZAT><![CDATA[1]]></Support_DZAT><hd_is_ssd><![CDATA[1]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[M.2 SSD 2]]></Disk_Alias><Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:2]]></HDNo><Vendor><![CDATA[WDC WDS500G2B0B-00YS70 411040WD]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[465.76 GB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:05]]></LastTestTime><Model><![CDATA[WDS500G2B0B-00YS70]]></Model><Serial><![CDATA[19477D805973]]></Serial><FirmVersion><![CDATA[411040WD]]></FirmVersion><ATAVersion><![CDATA[411040WD]]></ATAVersion><ATADescription><![CDATA[411040WD]]></ATADescription><Support_SMART><![CDATA[1]]></Support_SMART><Support_SelfTest><![CDATA[1]]></Support_SelfTest><Support_Trim><![CDATA[1]]></Support_Trim><Support_SecurityErase><![CDATA[1]]></Support_SecurityErase><Support_DZAT><![CDATA[1]]></Support_DZAT><hd_is_ssd><![CDATA[1]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 1]]></Disk_Alias><module_temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:3]]></HDNo><Vendor><![CDATA[Seagate ST8000VN0022-2EL112 SC61]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[36]]></oC><oF><![CDATA[96]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:04]]></LastTestTime><Model><![CDATA[ST8000VN0022-2EL112]]></Model><Serial><![CDATA[ZA1BS0C4]]></Serial><FirmVersion><![CDATA[SC61]]></FirmVersion><ATAVersion><![CDATA[SC61]]></ATAVersion><ATADescription><![CDATA[SC61]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 2]]></Disk_Alias><module_temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:4]]></HDNo><Vendor><![CDATA[Seagate ST8000VN0022-2EL112 SC61]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:05]]></LastTestTime><Model><![CDATA[ST8000VN0022-2EL112]]></Model><Serial><![CDATA[ZA1BS1TA]]></Serial><FirmVersion><![CDATA[SC61]]></FirmVersion><ATAVersion><![CDATA[SC61]]></ATAVersion><ATADescription><![CDATA[SC61]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 3]]></Disk_Alias><module_temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:5]]></HDNo><Vendor><![CDATA[Seagate ST8000VN0022-2EL112 SC61]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:03]]></LastTestTime><Model><![CDATA[ST8000VN0022-2EL112]]></Model><Serial><![CDATA[ZA1BT5FS]]></Serial><FirmVersion><![CDATA[SC61]]></FirmVersion><ATAVersion><![CDATA[SC61]]></ATAVersion><ATADescription><![CDATA[SC61]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 4]]></Disk_Alias><module_temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:6]]></HDNo><Vendor><![CDATA[Seagate ST8000VN0022-2EL112 SC61]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:02]]></LastTestTime><Model><![CDATA[ST8000VN0022-2EL112]]></Model><Serial><![CDATA[ZA1BS06K]]></Serial><FirmVersion><![CDATA[SC61]]></FirmVersion><ATAVersion><![CDATA[SC61]]></ATAVersion><ATADescription><![CDATA[SC61]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 5]]></Disk_Alias><module_temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:7]]></HDNo><Vendor><![CDATA[Seagate ST8000VN0022-2EL112 SC61]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[37]]></oC><oF><![CDATA[98]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:01]]></LastTestTime><Model><![CDATA[ST8000VN0022-2EL112]]></Model><Serial><![CDATA[ZA1BS0NK]]></Serial><FirmVersion><![CDATA[SC61]]></FirmVersion><ATAVersion><![CDATA[SC61]]></ATAVersion><ATADescription><![CDATA[SC61]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 6]]></Disk_Alias><module_temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:8]]></HDNo><Vendor><![CDATA[Seagate ST8000VN0022-2EL112 SC61]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[7.28 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<temp_alert><![CDATA[0]]></temp_alert><LastTestSts><![CDATA[0]]></LastTestSts><LastTestType><![CDATA[1]]></LastTestType><LastTestTime><![CDATA[2021/12/13 03:00:00]]></LastTestTime><Model><![CDATA[ST8000VN0022-2EL112]]></Model><Serial><![CDATA[ZA1BS2P0]]></Serial><FirmVersion><![CDATA[SC61]]></FirmVersion><ATAVersion><![CDATA[SC61]]></ATAVersion><ATADescription><![CDATA[SC61]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
</Disk_Info>
</QDocRoot>

DEBUG: GET from URL: http://192.168.0.20:9090/cgi-bin/management/chartReq.cgi?chart_func=disk_usage&disk_select=all&include=all
DEBUG: Appending access_token (SID: mdtkgcd5) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 14 Dec 2021 19:37:35 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=796", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X73]]></modelName><internalModelName><![CDATA[TS-X73]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_MERLINFALCON]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TVS-673]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><name><![CDATA[QTS]]></name><version><![CDATA[5.0.0]]></version><number><![CDATA[1858]]></number><build><![CDATA[20211119]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/11/19]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<volumeList><volume><volumeStat><![CDATA[raid5]]></volumeStat><volumeDisks><![CDATA[ 3,4,5,6,7,8]]></volumeDisks><volumeStatus><![CDATA[0]]></volumeStatus><Progress><![CDATA[100]]></Progress><volumeType><![CDATA[1]]></volumeType><volumeValue><![CDATA[1]]></volumeValue><freeSize><![CDATA[14252]]></freeSize><fstype><![CDATA[9]]></fstype><volumeLabel><![CDATA[DataVol1]]></volumeLabel><FSRVP_support><![CDATA[0]]></FSRVP_support><edge_cache_support><![CDATA[0]]></edge_cache_support><edge_cache_type><![CDATA[-1]]></edge_cache_type><FolderCounter><![CDATA[26]]></FolderCounter><is_legacy_volume><![CDATA[0]]></is_legacy_volume><is_default_volume><![CDATA[1]]></is_default_volume><pool_vjbod><![CDATA[0]]></pool_vjbod><encryptfs_bool><![CDATA[0]]></encryptfs_bool><encryptfs_active_bool><![CDATA[0]]></encryptfs_active_bool><encryptfs_key_flag><![CDATA[N]]></encryptfs_key_flag></volume>
</volumeList>
<volumeUseList><volumeUse><volumeValue><![CDATA[1]]></volumeValue><total_size><![CDATA[39176691474432]]></total_size><free_size><![CDATA[15334381985792]]></free_size><folder_element><sharename><![CDATA[Web]]></sharename><used_size><![CDATA[17416192]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Public]]></sharename><used_size><![CDATA[25243648]]></used_size></folder_element>
<folder_element><sharename><![CDATA[homes]]></sharename><used_size><![CDATA[327680]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Multimedia]]></sharename><used_size><![CDATA[1135882240]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Download]]></sharename><used_size><![CDATA[1233939505152]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Recordings]]></sharename><used_size><![CDATA[61440]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Movies]]></sharename><used_size><![CDATA[11973578903552]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Container]]></sharename><used_size><![CDATA[4803506176]]></used_size></folder_element>
<folder_element><sharename><![CDATA[appdata]]></sharename><used_size><![CDATA[1582682112]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Sharing]]></sharename><used_size><![CDATA[381172858880]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Backup]]></sharename><used_size><![CDATA[500011974656]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Music]]></sharename><used_size><![CDATA[4029878272]]></used_size></folder_element>
<folder_element><sharename><![CDATA[MoviesOptimized]]></sharename><used_size><![CDATA[28672]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Movies 4k]]></sharename><used_size><![CDATA[2061574275072]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Tv series]]></sharename><used_size><![CDATA[6026934923264]]></used_size></folder_element>
<folder_element><sharename><![CDATA[QsyncDropbox]]></sharename><used_size><![CDATA[1455955968]]></used_size></folder_element>
<folder_element><sharename><![CDATA[PrerollCinemaVideo]]></sharename><used_size><![CDATA[336650240]]></used_size></folder_element>
<folder_element><sharename><![CDATA[English only]]></sharename><used_size><![CDATA[80252989440]]></used_size></folder_element>
<folder_element><sharename><![CDATA[4k Demos]]></sharename><used_size><![CDATA[15355518976]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Hassio Backup]]></sharename><used_size><![CDATA[4092096512]]></used_size></folder_element>
<folder_element><sharename><![CDATA[graf]]></sharename><used_size><![CDATA[20480]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Surveillance]]></sharename><used_size><![CDATA[379674624]]></used_size></folder_element>
<folder_element><sharename><![CDATA[QmailAgent]]></sharename><used_size><![CDATA[428023808]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Browser Station]]></sharename><used_size><![CDATA[16384]]></used_size></folder_element>
<folder_element><sharename><![CDATA[SteamLibrary]]></sharename><used_size><![CDATA[683389030400]]></used_size></folder_element>
<folder_element><sharename><![CDATA[Anime]]></sharename><used_size><![CDATA[833819443200]]></used_size></folder_element>
<folder_element><sharename><![CDATA[System Reserved]]></sharename><used_size><![CDATA[35342974976]]></used_size><type><![CDATA[system]]></type></folder_element>
<others_size><![CDATA[23808316887040]]></others_size><found_quota><![CDATA[0]]></found_quota></volumeUse>
</volumeUseList>
</QDocRoot>

DEBUG: GET from URL: http://192.168.0.20:9090/cgi-bin/management/chartReq.cgi?chart_func=QSM40bandwidth
DEBUG: Appending access_token (SID: mdtkgcd5) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 14 Dec 2021 19:37:35 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=795", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed></QDocRoot>

DEBUG: GET from URL: http://192.168.0.20:9090/cgi-bin/management/chartReq.cgi?chart_func=bandwidth
DEBUG: Appending access_token (SID: mdtkgcd5) to url
DEBUG: Request executed: 200
DEBUG: Headers: {"Date": "Tue, 14 Dec 2021 19:37:35 GMT", "Server": "", "X-Frame-Options": "SAMEORIGIN", "Content-Security-Policy": "script-src 'self' 'unsafe-inline' 'unsafe-eval' ; object-src 'self' ; worker-src 'self' blob:", "Content-type": "text/xml", "X-XSS-Protection": "1; mode=block", "Strict-Transport-Security": "max-age=0", "X-Content-Type-Options": "nosniff", "Keep-Alive": "timeout=15, max=794", "Connection": "Keep-Alive", "Transfer-Encoding": "chunked"}
DEBUG: Cookies: {}
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X73]]></modelName><internalModelName><![CDATA[TS-X73]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_MERLINFALCON]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TVS-673]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><name><![CDATA[QTS]]></name><version><![CDATA[5.0.0]]></version><number><![CDATA[1858]]></number><build><![CDATA[20211119]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/11/19]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAS]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<df_gateway><![CDATA[eth5]]></df_gateway><bandwidth_interval><![CDATA[5]]></bandwidth_interval><bandwidth_info><wlan_index_list><![CDATA[]]></wlan_index_list><eth6><dname><![CDATA[USB QuickAccess]]></dname><is_QA_port><![CDATA[1]]></is_QA_port><QA_number><![CDATA[0]]></QA_number><link_running><![CDATA[0]]></link_running><ipv4_addr><![CDATA[]]></ipv4_addr><ipv6_enable><![CDATA[1]]></ipv6_enable><ipv6_info></ipv6_info>
<rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx></eth6>
<eth0><dname><![CDATA[Adapter 1]]></dname><is_QA_port><![CDATA[0]]></is_QA_port><link_running><![CDATA[0]]></link_running><ipv4_addr><![CDATA[]]></ipv4_addr><ipv6_enable><![CDATA[1]]></ipv6_enable><ipv6_info></ipv6_info>
<rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx><bridge><![CDATA[0]]></bridge><bridge_owner><![CDATA[]]></bridge_owner><QKVMURL><![CDATA[]]></QKVMURL></eth0>
<eth1><dname><![CDATA[Adapter 2]]></dname><is_QA_port><![CDATA[0]]></is_QA_port><link_running><![CDATA[0]]></link_running><ipv4_addr><![CDATA[]]></ipv4_addr><ipv6_enable><![CDATA[1]]></ipv6_enable><ipv6_info></ipv6_info>
<rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx><bridge><![CDATA[0]]></bridge><bridge_owner><![CDATA[]]></bridge_owner><QKVMURL><![CDATA[]]></QKVMURL></eth1>
<eth2><dname><![CDATA[Adapter 3]]></dname><is_QA_port><![CDATA[0]]></is_QA_port><link_running><![CDATA[0]]></link_running><ipv4_addr><![CDATA[]]></ipv4_addr><ipv6_enable><![CDATA[1]]></ipv6_enable><ipv6_info></ipv6_info>
<rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx><bridge><![CDATA[0]]></bridge><bridge_owner><![CDATA[]]></bridge_owner><QKVMURL><![CDATA[]]></QKVMURL></eth2>
<eth3><dname><![CDATA[Adapter 4]]></dname><is_QA_port><![CDATA[0]]></is_QA_port><link_running><![CDATA[0]]></link_running><ipv4_addr><![CDATA[]]></ipv4_addr><ipv6_enable><![CDATA[1]]></ipv6_enable><ipv6_info></ipv6_info>
<rx><![CDATA[0]]></rx><tx><![CDATA[0]]></tx><bridge><![CDATA[0]]></bridge><bridge_owner><![CDATA[]]></bridge_owner><QKVMURL><![CDATA[]]></QKVMURL></eth3>
<eth5><dname><![CDATA[Adapter 5]]></dname><is_QA_port><![CDATA[0]]></is_QA_port><link_running><![CDATA[1]]></link_running><ipv4_addr><![CDATA[192.168.0.20]]></ipv4_addr><ipv6_enable><![CDATA[0]]></ipv6_enable><rx><![CDATA[87854]]></rx><tx><![CDATA[11865050]]></tx><bridge><![CDATA[0]]></bridge><bridge_owner><![CDATA[]]></bridge_owner><QKVMURL><![CDATA[]]></QKVMURL></eth5>
<eth_count><![CDATA[6]]></eth_count><eth_index_list><![CDATA[6,0,1,2,3,5]]></eth_index_list><total_usage_rx><![CDATA[87854]]></total_usage_rx><total_usage_tx><![CDATA[11865050]]></total_usage_tx><bond_count><![CDATA[0]]></bond_count></bandwidth_info>
<current_hour><![CDATA[20]]></current_hour><current_min><![CDATA[37]]></current_min><current_sec><![CDATA[35]]></current_sec></QDocRoot>

My qnap integration (homeassistant) is not working correctly since I upgraded to qts 5.0.0
Cpu temperature, Cpu usage and network interfaces info are no longer working.

Problem with QNAP replica that have only "Vault Snapshot"

Device Model Number: TS-1677XU-RP

QTS Version: 4.5.2.1594 Build 20210302

Hi,
if Qnap not have the classic volume but have only the replica volume the program generate the exception because not found the xml tag.

This is the result with error of debug:

("'NoneType' object is not subscriptable",)
Traceback (most recent call last):
  File "./debug.py", line 32, in <module>
    qnap.get_volumes()
  File "/usr/local/lib/python3.8/dist-packages/qnapstats/qnap_stats.py", line 155, in get_volumes
    for vol in resp["volumeUseList"]["volumeUse"]:
TypeError: 'NoneType' object is not subscriptable

This is my configuration:
image

XML/Debug Output:

root@srv-monitorit02:~/test# ./debug.py 
DEBUG: Creating new session
DEBUG: POST to URL: http://192.168.11.7:8080/cgi-bin/authLogin.cgi
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><shutdown_info><type><![CDATA[-1]]></type><timestamp><![CDATA[0]]></timestamp><duration><![CDATA[0]]></duration></shutdown_info>
<SMBFW><![CDATA[1]]></SMBFW><hero_model><![CDATA[0]]></hero_model><qts_mode_type><![CDATA[0]]></qts_mode_type><authPassed><![CDATA[1]]></authPassed><authSid><![CDATA[85pr8wa2]]></authSid><pw_status><![CDATA[0]]></pw_status><isAdmin><![CDATA[1]]></isAdmin><username><![CDATA[admin]]></username><groupname><![CDATA[administrators]]></groupname><ts><![CDATA[73096820]]></ts><fwNotice><![CDATA[0]]></fwNotice><SUID><![CDATA[1bc35f0d0d904969cfa976f72010f3cd]]></SUID><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><standard_massage><![CDATA[]]></standard_massage><standard_color><![CDATA[#ffffff]]></standard_color><standard_size><![CDATA[12px]]></standard_size><standard_bg_style><![CDATA[fill]]></standard_bg_style><showVersion><![CDATA[0]]></showVersion><show_link><![CDATA[1]]></show_link><cuid><![CDATA[137c605b51b297d143dec7aa2d0346ed]]></cuid></QDocRoot>

DEBUG: GET from URL: http://192.168.11.7:8080/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&hd=no&multicpu=1
DEBUG: Appending access_token (SID: 85pr8wa2) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X77U]]></modelName><internalModelName><![CDATA[TS-X77]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_SUMMITRIDGE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-1677XU-RP]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAP06]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><root>
<timezone><![CDATA[(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna]]></timezone><cpu_usage><![CDATA[4.5 %]]></cpu_usage><cpufan_count>0</cpufan_count>
<fan_reg_cnt><![CDATA[0]]></fan_reg_cnt><temp_reg_cnt><![CDATA[0]]></temp_reg_cnt><cpu_model><![CDATA[AMD Ryzen 7 2700 Eight-Core Processor]]></cpu_model><total_memory><![CDATA[15966.0]]></total_memory><free_memory><![CDATA[12990.6]]></free_memory><mem_info_support><![CDATA[1]]></mem_info_support><mem_max_channels><![CDATA[2]]></mem_max_channels><mem_max_slots><![CDATA[4]]></mem_max_slots><mem_slot_info><mem_valid><![CDATA[0]]></mem_valid><mem_slot_id><![CDATA[1]]></mem_slot_id><mem_channel_id><![CDATA[A]]></mem_channel_id><mem_dimm_size><![CDATA[0]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[1]]></mem_valid><mem_slot_id><![CDATA[2]]></mem_slot_id><mem_channel_id><![CDATA[A]]></mem_channel_id><mem_dimm_size><![CDATA[8192]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[A-DATA Technology]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[0]]></mem_valid><mem_slot_id><![CDATA[3]]></mem_slot_id><mem_channel_id><![CDATA[B]]></mem_channel_id><mem_dimm_size><![CDATA[0]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[]]></mem_dimm_manufacturer></mem_slot_info>
<mem_slot_info><mem_valid><![CDATA[1]]></mem_valid><mem_slot_id><![CDATA[4]]></mem_slot_id><mem_channel_id><![CDATA[B]]></mem_channel_id><mem_dimm_size><![CDATA[8192]]></mem_dimm_size><mem_dimm_manufacturer><![CDATA[A-DATA Technology]]></mem_dimm_manufacturer></mem_slot_info>
<nic_cnt><![CDATA[4]]></nic_cnt><nic_lan_cnt><![CDATA[4]]></nic_lan_cnt><nic_qa_port_cnt><![CDATA[0]]></nic_qa_port_cnt><ifindex1>3</ifindex1>
<ifname1>eth0</ifname1>
<dname1>Adapter 1</dname1>
<rx_packet1>28503230</rx_packet1>
<tx_packet1>431819</tx_packet1>
<err_packet1>0</err_packet1>
<eth_status1>1</eth_status1>
<eth_max_speed1>1000</eth_max_speed1>
<is_QA_port_eth1>0</is_QA_port_eth1>
<eth_ip1>169.254.5.239</eth_ip1>
<eth_mask1>255.255.0.0</eth_mask1>
<eth_mac1>24:5e:be:38:87:10</eth_mac1>
<eth_usage1>DHCP</eth_usage1>
<eth_ipv6_info1><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info1><dnsinfo1><dns1>192.168.15.14</dns1>
</dnsinfo1><ifindex2>2</ifindex2>
<ifname2>eth1</ifname2>
<dname2>Adapter 2</dname2>
<rx_packet2>28479859</rx_packet2>
<tx_packet2>455355</tx_packet2>
<err_packet2>0</err_packet2>
<eth_status2>1</eth_status2>
<eth_max_speed2>1000</eth_max_speed2>
<is_QA_port_eth2>0</is_QA_port_eth2>
<eth_ip2>169.254.5.244</eth_ip2>
<eth_mask2>255.255.0.0</eth_mask2>
<eth_mac2>24:5e:be:38:87:11</eth_mac2>
<eth_usage2>DHCP</eth_usage2>
<eth_ipv6_info2><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info2><dnsinfo2><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo2><ifindex3>5</ifindex3>
<ifname3>eth2</ifname3>
<dname3>Adapter 3</dname3>
<rx_packet3>29011169</rx_packet3>
<tx_packet3>681064</tx_packet3>
<err_packet3>1</err_packet3>
<eth_status3>1</eth_status3>
<eth_max_speed3>10000</eth_max_speed3>
<is_QA_port_eth3>0</is_QA_port_eth3>
<eth_ip3>192.168.11.7</eth_ip3>
<eth_mask3>255.255.255.0</eth_mask3>
<eth_mac3>24:5e:be:38:87:13</eth_mac3>
<eth_usage3>STATIC</eth_usage3>
<eth_ipv6_info3><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info3><dnsinfo3><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo3><ifindex4>4</ifindex4>
<ifname4>eth3</ifname4>
<dname4>Adapter 4</dname4>
<rx_packet4>175315116</rx_packet4>
<tx_packet4>2950389</tx_packet4>
<err_packet4>213</err_packet4>
<eth_status4>1</eth_status4>
<eth_max_speed4>10000</eth_max_speed4>
<is_QA_port_eth4>0</is_QA_port_eth4>
<eth_ip4>192.168.168.51</eth_ip4>
<eth_mask4>255.255.255.0</eth_mask4>
<eth_mac4>24:5e:be:38:87:12</eth_mac4>
<eth_usage4>STATIC</eth_usage4>
<eth_ipv6_info4><eth_ipv6_enable>0</eth_ipv6_enable></eth_ipv6_info4><dnsinfo4><dns1>192.168.15.14</dns1>
<dns2>192.168.15.206</dns2>
</dnsinfo4><bonding_list></bonding_list>
<bonding_cnt><![CDATA[0]]></bonding_cnt><ipv6Enable><![CDATA[1]]></ipv6Enable><dnsInfo><DNS_LIST><![CDATA[ 192.168.15.14
]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.206
]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.14]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.206]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.14]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.206]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.14]]></DNS_LIST><DNS_LIST><![CDATA[ 192.168.15.206]]></DNS_LIST></dnsInfo>
<WirelessSupport><![CDATA[1]]></WirelessSupport><Error><![CDATA[1]]></Error><ThunderboltSupport><![CDATA[0]]></ThunderboltSupport><uptime_day><![CDATA[7]]></uptime_day><uptime_hour><![CDATA[7]]></uptime_hour><uptime_min><![CDATA[39]]></uptime_min><uptime_sec><![CDATA[38]]></uptime_sec><HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><cpu_tempc>59</cpu_tempc><cpu_tempf>138</cpu_tempf>
<CPUTempWarnT><![CDATA[75]]></CPUTempWarnT><CPUTempErrT><![CDATA[80]]></CPUTempErrT><sys_tempc>33</sys_tempc>
<sys_tempf>91</sys_tempf>
<SysTempWarnT><![CDATA[60]]></SysTempWarnT><SysTempErrT><![CDATA[70]]></SysTempErrT><sysfan_count>4</sysfan_count>
<sysfan_alias>SYS FAN</sysfan_alias>
<sysfan1>1489</sysfan1>
<sysfan_fail1>0</sysfan_fail1>
<sysfan1_stat>0</sysfan1_stat>
<sysfan2>1476</sysfan2>
<sysfan_fail2>0</sysfan_fail2>
<sysfan2_stat>0</sysfan2_stat>
<sysfan3>1487</sysfan3>
<sysfan_fail3>0</sysfan_fail3>
<sysfan3_stat>0</sysfan3_stat>
<sysfan4>1497</sysfan4>
<sysfan_fail4>0</sysfan_fail4>
<sysfan4_stat>0</sysfan4_stat>
<Power1Temp>-2</Power1Temp>
<Power2Temp>-2</Power2Temp>
<Power1Status>0</Power1Status>
<Power2Status>0</Power2Status>
<PowerFanStatus1>-2</PowerFanStatus1>
<PowerFanStatus2>-2</PowerFanStatus2>
<BusType>NAS</BusType>
<serial_number>Q191I16905</serial_number>
<server_name><![CDATA[QNAP06]]></server_name><qat_support><![CDATA[0]]></qat_support><codepage><![CDATA[437]]></codepage><bios_version>QZ49AR55</bios_version>
</root>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.11.7:8080/cgi-bin/management/manaRequest.cgi?subfunc=sysinfo&sysHealth=1
DEBUG: Appending access_token (SID: 85pr8wa2) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X77U]]></modelName><internalModelName><![CDATA[TS-X77]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_SUMMITRIDGE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-1677XU-RP]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAP06]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<func><name><![CDATA[S_MENU_40]]></name><ownContent><sysHealth><status><![CDATA[good]]></status></sysHealth>
<needProcessEvent></needProcessEvent>
</ownContent>
</func>
</QDocRoot>

DEBUG: GET from URL: http://192.168.11.7:8080/cgi-bin/disk/qsmart.cgi?func=all_hd_data
DEBUG: Appending access_token (SID: 85pr8wa2) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X77U]]></modelName><internalModelName><![CDATA[TS-X77]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_SUMMITRIDGE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-1677XU-RP]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAP06]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HDTempWarnT><![CDATA[55]]></HDTempWarnT><HDTempErrT><![CDATA[60]]></HDTempErrT><SSDTempWarnT><![CDATA[70]]></SSDTempWarnT><SSDTempErrT><![CDATA[70]]></SSDTempErrT><Disk_Info><entry><Disk_Alias><![CDATA[Disk 1]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:1]]></HDNo><Vendor><![CDATA[Micron 5200_MTFDDAK960TDD D1MU004]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[894.25 GB]]></Capacity><Temperature><oC><![CDATA[32]]></oC><oF><![CDATA[89]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[5200_MTFDDAK960TDD]]></Model><Serial><![CDATA[185220CAF3A9]]></Serial><FirmVersion><![CDATA[D1MU004]]></FirmVersion><ATAVersion><![CDATA[D1MU004]]></ATAVersion><ATADescription><![CDATA[D1MU004]]></ATADescription><Support_SMART><![CDATA[1]]></Support_SMART><Support_SelfTest><![CDATA[1]]></Support_SelfTest><Support_Trim><![CDATA[1]]></Support_Trim><Support_SecurityErase><![CDATA[1]]></Support_SecurityErase><Support_DZAT><![CDATA[1]]></Support_DZAT><hd_is_ssd><![CDATA[1]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 2]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:2]]></HDNo><Vendor><![CDATA[Micron 5200_MTFDDAK960TDD D1MU004]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[894.25 GB]]></Capacity><Temperature><oC><![CDATA[35]]></oC><oF><![CDATA[95]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[5200_MTFDDAK960TDD]]></Model><Serial><![CDATA[185220CAF50F]]></Serial><FirmVersion><![CDATA[D1MU004]]></FirmVersion><ATAVersion><![CDATA[D1MU004]]></ATAVersion><ATADescription><![CDATA[D1MU004]]></ATADescription><Support_SMART><![CDATA[1]]></Support_SMART><Support_SelfTest><![CDATA[1]]></Support_SelfTest><Support_Trim><![CDATA[1]]></Support_Trim><Support_SecurityErase><![CDATA[1]]></Support_SecurityErase><Support_DZAT><![CDATA[1]]></Support_DZAT><hd_is_ssd><![CDATA[1]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 3]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:3]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[43]]></oC><oF><![CDATA[109]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKGNRH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 4]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:4]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[43]]></oC><oF><![CDATA[109]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKM6RH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 5]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:5]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[38]]></oC><oF><![CDATA[100]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKRXVH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 6]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:6]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[40]]></oC><oF><![CDATA[104]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKY0MH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 7]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:7]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[45]]></oC><oF><![CDATA[113]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHL2BZH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 8]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:8]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[45]]></oC><oF><![CDATA[113]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKRY2H]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 9]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:9]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[41]]></oC><oF><![CDATA[105]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKS01H]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 10]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:10]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[43]]></oC><oF><![CDATA[109]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKMB1H]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 11]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:11]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[45]]></oC><oF><![CDATA[113]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHK9B5H]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 12]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:12]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[45]]></oC><oF><![CDATA[113]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHL21UH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 13]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:13]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[39]]></oC><oF><![CDATA[102]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKMV3H]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 14]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:14]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[40]]></oC><oF><![CDATA[104]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHL2E7H]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 15]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:15]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[42]]></oC><oF><![CDATA[107]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKPUGH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
<entry><Disk_Alias><![CDATA[Disk 16]]></Disk_Alias><module_temperature><oC><![CDATA[32763]]></oC><oF><![CDATA[227]]></oF></module_temperature>
<Disk_Status><![CDATA[0]]></Disk_Status><HDNo><![CDATA[0:16]]></HDNo><Vendor><![CDATA[HGST HUH721212ALE604 LEGNW3D0]]></Vendor><Health><![CDATA[OK]]></Health><Capacity><![CDATA[10.91 TB]]></Capacity><Temperature><oC><![CDATA[41]]></oC><oF><![CDATA[105]]></oF></Temperature>
<LastTestSts><![CDATA[]]></LastTestSts><LastTestType><![CDATA[]]></LastTestType><LastTestTime><![CDATA[]]></LastTestTime><Model><![CDATA[HUH721212ALE604]]></Model><Serial><![CDATA[AAHKS1TH]]></Serial><FirmVersion><![CDATA[LEGNW3D0]]></FirmVersion><ATAVersion><![CDATA[LEGNW3D0]]></ATAVersion><ATADescription><![CDATA[LEGNW3D0]]></ATADescription><hd_is_ssd><![CDATA[0]]></hd_is_ssd></entry>
</Disk_Info>
</QDocRoot>

DEBUG: GET from URL: http://192.168.11.7:8080/cgi-bin/management/chartReq.cgi?chart_func=disk_usage&disk_select=all&include=all
DEBUG: Appending access_token (SID: 85pr8wa2) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X77U]]></modelName><internalModelName><![CDATA[TS-X77]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_SUMMITRIDGE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-1677XU-RP]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAP06]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<volumeList><volume><volumeStat><![CDATA[mirror]]></volumeStat><volumeDisks><![CDATA[ 1,2]]></volumeDisks><volumeStatus><![CDATA[0]]></volumeStatus><Progress><![CDATA[100]]></Progress><volumeType><![CDATA[4]]></volumeType><volumeValue><![CDATA[1]]></volumeValue><freeSize><![CDATA[0]]></freeSize><fstype><![CDATA[0]]></fstype><volumeLabel><![CDATA[V_DataVolUsers]]></volumeLabel><FSRVP_support><![CDATA[0]]></FSRVP_support><edge_cache_support><![CDATA[0]]></edge_cache_support><edge_cache_type><![CDATA[-1]]></edge_cache_type><FolderCounter><![CDATA[0]]></FolderCounter><is_legacy_volume><![CDATA[0]]></is_legacy_volume><is_default_volume><![CDATA[0]]></is_default_volume><pool_vjbod><![CDATA[0]]></pool_vjbod><encryptfs_bool><![CDATA[0]]></encryptfs_bool><encryptfs_active_bool><![CDATA[0]]></encryptfs_active_bool><encryptfs_key_flag><![CDATA[N]]></encryptfs_key_flag></volume>
<volume><volumeStat><![CDATA[mirror]]></volumeStat><volumeDisks><![CDATA[ 1,2]]></volumeDisks><volumeStatus><![CDATA[0]]></volumeStatus><Progress><![CDATA[100]]></Progress><volumeType><![CDATA[4]]></volumeType><volumeValue><![CDATA[2]]></volumeValue><freeSize><![CDATA[0]]></freeSize><fstype><![CDATA[0]]></fstype><volumeLabel><![CDATA[V_DataVol_Xray]]></volumeLabel><FSRVP_support><![CDATA[0]]></FSRVP_support><edge_cache_support><![CDATA[0]]></edge_cache_support><edge_cache_type><![CDATA[-1]]></edge_cache_type><FolderCounter><![CDATA[0]]></FolderCounter><is_legacy_volume><![CDATA[0]]></is_legacy_volume><is_default_volume><![CDATA[0]]></is_default_volume><pool_vjbod><![CDATA[0]]></pool_vjbod><encryptfs_bool><![CDATA[0]]></encryptfs_bool><encryptfs_active_bool><![CDATA[0]]></encryptfs_active_bool><encryptfs_key_flag><![CDATA[N]]></encryptfs_key_flag></volume>
</volumeList>
<volumeUseList></volumeUseList>
</QDocRoot>

("'NoneType' object is not subscriptable",)
Traceback (most recent call last):
  File "./debug.py", line 32, in <module>
    qnap.get_volumes()
  File "/usr/local/lib/python3.8/dist-packages/qnapstats/qnap_stats.py", line 155, in get_volumes
    for vol in resp["volumeUseList"]["volumeUse"]:
TypeError: 'NoneType' object is not subscriptable
DEBUG: GET from URL: http://192.168.11.7:8080/cgi-bin/management/chartReq.cgi?chart_func=QSM40bandwidth
DEBUG: Appending access_token (SID: 85pr8wa2) to url
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<authPassed><![CDATA[1]]></authPassed><model><modelName><![CDATA[TS-X77U]]></modelName><internalModelName><![CDATA[TS-X77]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_SUMMITRIDGE]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-1677XU-RP]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported><is_zfs><![CDATA[0]]></is_zfs><node><![CDATA[]]></node><dual_node><![CDATA[]]></dual_node></model>
<firmware><version><![CDATA[4.5.2]]></version><number><![CDATA[1594]]></number><build><![CDATA[20210302]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2021/03/02]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[QNAP06]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<bandwidth_info><df_gateway><![CDATA[eth0]]></df_gateway><item><id><![CDATA[eth0]]></id><name><![CDATA[LAN 1]]></name><rx><![CDATA[30460]]></rx><tx><![CDATA[480]]></tx></item>
<item><id><![CDATA[eth1]]></id><name><![CDATA[LAN 2]]></name><rx><![CDATA[30460]]></rx><tx><![CDATA[434]]></tx></item>
<item><id><![CDATA[eth2]]></id><name><![CDATA[LAN 3]]></name><rx><![CDATA[35658]]></rx><tx><![CDATA[30554]]></tx></item>
<item><id><![CDATA[eth3]]></id><name><![CDATA[LAN 4]]></name><rx><![CDATA[317]]></rx><tx><![CDATA[0]]></tx></item>
</bandwidth_info>
</QDocRoot>

I solved it momentarily by adding a "Try - Except" to the code:
image

Feature Request: Polling frequency

Device Model Number:
QTS Version: <4.4.1.1101>

This platform is excellent, but I wish for a config/parameter setting to control the polling frequency. As it is now, I have a feeling that the home-assistant_v2.db file is growing to unnecessary propotions with too much data over time. My questions are;

  1. How often are data polled (pushed) from this platform?
  2. Are all histrotic data really stored in the DB?
  3. Is there a way to reduce the polling frequency? If not, may I request this to be added as a user configurable setting?

Many thanks in advance.

KeyError on TS-251+ / 4.3.6

Device Model Number: TS-251+

QTS Version: 4.3.6.0993

This is the continuation issue for the KeyError I mentioned over in home-assistant/core#30980; traceback repeated from there:

2020-01-19 13:19:05 ERROR (SyncWorker_0) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 191, in update
    self.data["system_stats"] = self._api.get_system_stats()
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 207, in get_system_stats
    force_list=("DNS_LIST")
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url
    self._init_session()
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session
    if self._login() is False:
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 57, in _login
    result = self._execute_post_url("authLogin.cgi", data, False)
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 98, in _execute_post_url
    return self._handle_response(resp, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 112, in _handle_response
    auth_passed = data['authPassed']
KeyError: 'authPassed'

XML response from freshly-cloned debug.py is as follows:

XML/Debug Output:

<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><shutdown_info><type><![CDATA[-1]]></type><timestamp><![CDATA[0]]></timestamp><duration><![CDATA[0]]></duration></shutdown_info>
<SMBFW><![CDATA[0]]></SMBFW><model><modelName><![CDATA[TS-X51]]></modelName><internalModelName><![CDATA[TS-X51]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_BAYTRAIL]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-251+]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>     <encryptfsSupported><![CDATA[1]]></encryptfsSupported></model>
<firmware><version><![CDATA[4.3.6]]></version><number><![CDATA[0993]]></number><build><![CDATA[20190704]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2019/07/04]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[mnemosyne]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HTTPHost><![CDATA[mnemosyne.arkane-systems.lan]]></HTTPHost><webAccessPort><![CDATA[8080]]></webAccessPort><QWebPort><![CDATA[80]]></QWebPort><webFSEnabled><![CDATA[1]]></webFSEnabled><QMultimediaEnabled><![CDATA[0]]></QMultimediaEnabled><MSV2Supported><![CDATA[0]]></MSV2Supported><MSV2WebEnabled><![CDATA[1]]></MSV2WebEnabled><MSV2URL><![CDATA[/MSV2/]]></MSV2URL><QDownloadEnabled><![CDATA[1]]></QDownloadEnabled><DSV2Supported><![CDATA[0]]></DSV2Supported><DSV3Supported><![CDATA[1]]></DSV3Supported><DSV2URL><![CDATA[/downloadstation/?ssid=]]></DSV2URL><QWebEnabled><![CDATA[1]]></QWebEnabled><QWebSSLEnabled><![CDATA[0]]></QWebSSLEnabled><QWebSSLPort><![CDATA[8081]]></QWebSSLPort><NVREnabled><![CDATA[0]]></NVREnabled><NVRURL><![CDATA[/surveillance/]]></NVRURL><NVRVER><![CDATA[1]]></NVRVER><WFM2><![CDATA[1]]></WFM2><wfmPortEnabled><![CDATA[0]]></wfmPortEnabled><wfmPort><![CDATA[8080]]></wfmPort><wfmSSLEnabled><![CDATA[0]]></wfmSSLEnabled><wfmSSLPort><![CDATA[443]]></wfmSSLPort><wfmURL><![CDATA[/filestation/]]></wfmURL><QMusicsEnabled><![CDATA[0]]></QMusicsEnabled><QMusicsURL><![CDATA[/musicstation/]]></QMusicsURL><QVideosEnabled><![CDATA[0]]></QVideosEnabled><QVideosURL><![CDATA[/videostation/]]></QVideosURL><QPhotosEnabled><![CDATA[0]]></QPhotosEnabled><QPhotosURL><![CDATA[/photostation/]]></QPhotosURL><stunnelEnabled><![CDATA[1]]></stunnelEnabled><stunnelPort><![CDATA[443]]></stunnelPort><forceSSL><![CDATA[1]]></forceSSL><HDAROOT_ALMOST_FULL><![CDATA[0]]></HDAROOT_ALMOST_FULL><passwdConstraints><passwdConstraint01><![CDATA[1]]></passwdConstraint01><passwdConstraint02><![CDATA[1]]></passwdConstraint02><passwdConstraint03><![CDATA[1]]></passwdConstraint03><passwdConstraint04><![CDATA[0]]></passwdConstraint04></passwdConstraints>
<ts><![CDATA[10867949]]></ts><fwNotice><![CDATA[0]]></fwNotice><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><standard_massage><![CDATA[WARNING: This is a secure system. Do not login without proper authorization. Unauthorized use will be prosecuted.]]></standard_massage><standard_color><![CDATA[#FFFFFF]]></standard_color><standard_size><![CDATA[12 px]]></standard_size><standard_bg_style><![CDATA[fill]]></standard_bg_style><showVersion><![CDATA[1]]></showVersion><show_link><![CDATA[1]]></show_link><cuid><![CDATA[c459ad9a8e414b891aefacf275853183]]></cuid></QDocRoot>

Install Error

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number:

QTS Version: <4.3.3>

I experience the following issue on install...

any ideas as to why?

Collecting qnapstats
Downloading qnapstats-0.2.4.tar.gz
Complete output from command python setup.py egg_info:
/opt/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'install_requires'
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: invalid command 'egg_info'

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /share/MD0_DATA/.qpkg/Entware-3x/tmp/pip-build-7boku_iy/qnapstats/
If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

<Insert your XML or debug output here>

Works with TS-210 and firmware 4.2.6

Device Model Number: TS-210

QTS Version: 4.2.6 (latest for the model)

It works from python CLI program and integrated into HA.
I get all metrics, except CPU temperature which is apparently not reported by T-210.

ha-t210

👏 Thanks for your work on this project!

Provide info about public IP and UPS status

Device Model Number: TS-653a

QTS Version: 4.5.1.1540

Beside thanking you for the useful tool you created I was wondering if there are chances to obtain some additional information from our QNAPs, in particular about:

  • Public IP: I find very useful to check this information when I put the device under VPN via QVPN
  • UPS Status: I personally have a CyberPower CP1500EPFCLCD protecting my NAS where I can see his status (battery capacity and estimated protection time)
    I was just wondering if there is any chance to implement this information, thanks!

Compatible with two factor authentication ?

Device Model Number: TS-230

QTS Version: 4.4.3

I am trying to setup Home-Assistant integration for QNAP NAS. When initializing, I get the following error message :

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 194, in update
    self.data["system_stats"] = self._api.get_system_stats()
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 207, in get_system_stats
    force_list=("DNS_LIST")
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 69, in _get_url
    result = self._execute_get_url(url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 82, in _execute_get_url
    self._debuglog("Appending access_token (SID: " + self._sid + ") to url")
TypeError: can only concatenate str (not "NoneType") to str

I do have two factor authentication enabled on my NAS and I'm wondering if it might be the cause of my issue. Is 2FA supposed to be supported ?

TS-251+ KeyError: 'authPassed'

The authPassed key does not exist in the xml returned

Device Model Number: <TS-251+>

QTS Version: <4.3.6>

XML/Debug Output:

>>> pprint(qnap.get_volumes())
DEBUG: Creating new session
DEBUG: POST to URL: http://192.168.20.3:8080/cgi-bin/authLogin.cgi
C:\Users\James\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py:858: 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)
DEBUG: Request executed: 200
DEBUG: Response Text: <?xml version="1.0" encoding="UTF-8" ?>
<QDocRoot version="1.0">
<doQuick><![CDATA[]]></doQuick><is_booting><![CDATA[0]]></is_booting><mediaReady><![CDATA[1]]></mediaReady><shutdown_info><type><![CDATA[-1]]></type><timestamp><![CDATA[0]]></timestamp><duration><![CDATA[0]]></duration></shutdown_info>
<SMBFW><![CDATA[0]]></SMBFW><model><modelName><![CDATA[TS-X51]]></modelName><internalModelName><![CDATA[TS-X51]]></internalModelName><platform><![CDATA[TS-NASX86]]></platform><platform_ex><![CDATA[X86_BAYTRAIL]]></platform_ex><customModelName><![CDATA[]]></customModelName><displayModelName><![CDATA[TS-251+]]></displayModelName><sas_model><![CDATA[0]]></sas_model><storage_v2>1</storage_v2>
<encryptfsSupported><![CDATA[1]]></encryptfsSupported></model>
<firmware><version><![CDATA[4.3.6]]></version><number><![CDATA[0959]]></number><build><![CDATA[20190531]]></build><patch><![CDATA[0]]></patch><buildTime><![CDATA[2019/05/31]]></buildTime></firmware>
<rfs_bits><![CDATA[64]]></rfs_bits><specVersion><![CDATA[1.0]]></specVersion><hostname><![CDATA[nasty]]></hostname><DemoSiteSuppurt><![CDATA[no]]></DemoSiteSuppurt><customLogo><customFrontLogo><![CDATA[]]></customFrontLogo><customLoginLogo><![CDATA[]]></customLoginLogo></customLogo>
<HTTPHost><![CDATA[192.168.20.3]]></HTTPHost><webAccessPort><![CDATA[8080]]></webAccessPort><QWebPort><![CDATA[80]]></QWebPort><webFSEnabled><![CDATA[1]]></webFSEnabled><QMultimediaEnabled><![CDATA[0]]></QMultimediaEnabled><MSV2Supported><![CDATA[0]]></MSV2Supported><MSV2WebEnabled><![CDATA[1]]></MSV2WebEnabled><MSV2URL><![CDATA[/MSV2/]]></MSV2URL><QDownloadEnabled><![CDATA[1]]></QDownloadEnabled><DSV2Supported><![CDATA[0]]></DSV2Supported><DSV3Supported><![CDATA[1]]></DSV3Supported><DSV2URL><![CDATA[/downloadstation/?ssid=]]></DSV2URL><QWebEnabled><![CDATA[1]]></QWebEnabled><QWebSSLEnabled><![CDATA[1]]></QWebSSLEnabled><QWebSSLPort><![CDATA[8081]]></QWebSSLPort><NVREnabled><![CDATA[0]]></NVREnabled><NVRURL><![CDATA[/surveillance/]]></NVRURL><NVRVER><![CDATA[1]]></NVRVER><WFM2><![CDATA[1]]></WFM2><wfmPortEnabled><![CDATA[0]]></wfmPortEnabled><wfmPort><![CDATA[8080]]></wfmPort><wfmSSLEnabled><![CDATA[0]]></wfmSSLEnabled><wfmSSLPort><![CDATA[443]]></wfmSSLPort><wfmURL><![CDATA[/filestation/]]></wfmURL><QMusicsEnabled><![CDATA[0]]></QMusicsEnabled><QMusicsURL><![CDATA[/musicstation/]]></QMusicsURL><QVideosEnabled><![CDATA[0]]></QVideosEnabled><QVideosURL><![CDATA[/videostation/]]></QVideosURL><QPhotosEnabled><![CDATA[0]]></QPhotosEnabled><QPhotosURL><![CDATA[/photo/]]></QPhotosURL><stunnelEnabled><![CDATA[1]]></stunnelEnabled><stunnelPort><![CDATA[443]]></stunnelPort><forceSSL><![CDATA[1]]></forceSSL><HDAROOT_ALMOST_FULL><![CDATA[0]]></HDAROOT_ALMOST_FULL><passwdConstraints><passwdConstraint01><![CDATA[0]]></passwdConstraint01><passwdConstraint02><![CDATA[0]]></passwdConstraint02><passwdConstraint03><![CDATA[0]]></passwdConstraint03><passwdConstraint04><![CDATA[0]]></passwdConstraint04></passwdConstraints>
<ts><![CDATA[96177256]]></ts><fwNotice><![CDATA[0]]></fwNotice><title><![CDATA[]]></title><content><![CDATA[]]></content><psType><![CDATA[1]]></psType><standard_massage><![CDATA[]]></standard_massage><standard_color><![CDATA[#FFFFFF]]></standard_color><standard_size><![CDATA[12 px]]></standard_size><standard_bg_style><![CDATA[fill]]></standard_bg_style><showVersion><![CDATA[1]]></showVersion><show_link><![CDATA[1]]></show_link><cuid><![CDATA[4dec1e319e179d9ab67638e81a12669d]]></cuid></QDocRoot>

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\James\AppData\Local\Programs\Python\Python36\lib\site-packages\qnapstats\qnap_stats.py", line 135, in get_volumes
    force_list=("volume", "volumeUse", "folder_element")
  File "C:\Users\James\AppData\Local\Programs\Python\Python36\lib\site-packages\qnapstats\qnap_stats.py", line 67, in _get_url
    self._init_session()
  File "C:\Users\James\AppData\Local\Programs\Python\Python36\lib\site-packages\qnapstats\qnap_stats.py", line 49, in _init_session
    if self._login() is False:
  File "C:\Users\James\AppData\Local\Programs\Python\Python36\lib\site-packages\qnapstats\qnap_stats.py", line 57, in _login
    result = self._execute_post_url("authLogin.cgi", data, False)
  File "C:\Users\James\AppData\Local\Programs\Python\Python36\lib\site-packages\qnapstats\qnap_stats.py", line 98, in _execute_post_url
    return self._handle_response(resp, **kwargs)
  File "C:\Users\James\AppData\Local\Programs\Python\Python36\lib\site-packages\qnapstats\qnap_stats.py", line 112, in _handle_response
    auth_passed = data['authPassed']
KeyError: 'authPassed'

Works with TS-453A

Just an FYI -
Works great with my TS-453A running FW 4.3.4.
I would add to the docs that this requires the user be in the admin group.
At least I couldn't limit it. If you have some ideas on how to do it, please share. :)
Except for that, This is super useful! I'm using it in Home Assistant.

Stopped working after QTS update to 4.5.4.1741

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-453Mini

QTS Version: 4.5.4.1741

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

<Insert your XML or debug output here>

As the headline says, after updating QTS, qnapstats stopped working for my NAS. It was working perfectly for this NAS for a long time. I have seen reports elsewhere from other users that indicates that qnapstats stopped working on all QNAP NAS models which were updated to 4.5.4.1741. Is this a fact? Is this integrations still being maintained? If so, will this be, or has this been fixed?

TS-431P Compatibility

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number: TS-431P

QTS Version: <4.4.2>

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

No Output

support fans speed in the furture?

Please provide the following information along with your issue report (replace anything inside of <>):

Device Model Number:

QTS Version: <5.0.0>

If you're reporting a KeyError, please also provide the XML response from your QNAP device. You can easily obtain this by running the debug.py script.

XML/Debug Output:

<Insert your XML or debug output here>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.