Page 3 of 3

Re: HowTo: monitor QNAP NAS

Posted: Saturday 03 April 2021 20:48
by TeSee64
Hi,

I have installed snmpd and snmp on my RPI. Also activated SNMP on my QNAP TS-230. Uploaded the script to my domoticz RPI. (changed the settings as described in the manual)

But it doesnt work.

The command: ./nas.sh
Gives this error: Name or service not known
(of course the password and the ipadres for the NAS are correct and double checked)

I think the problem is the SNMP port on the NAS because i cant find any settings in the domoticz nas.sh script where i can put the port number for the NAS SNMP

Someone have an idea what to change to get it working?

Thanks!

Re: HowTo: monitor QNAP NAS

Posted: Sunday 04 April 2021 16:51
by TeSee64
Alright. After a few hours staring very angry at my monitor i got it working... It turns out i needed to delete alle the ' ' ' in the settings in the script.
So the settings part now look like:

NASIP="192.168.1.11" # NAS IP Address
PASSWORD="notvisible" # SNMP Password
DOMO_IP="192.168.1.19" # Domoticz IP Address
DOMO_PORT="8087" # Domoticz Port
NAS_IDX="12" # Virtual switch NAS STATUS
CPU_TEMP_IDX="13" # Virtual temerature sensor IDX NAS CPU
HD1_TEMP_IDX="14" # Virtual temerature sensor IDX HD1
HD2_TEMP_IDX="16" # Virtual temerature sensor IDX HD2
HD_REMAIN_IDX="17" # Virtual temerature sensor IDX HD REMAIN