Has anyone successfully got the SNMP oid for ReadyNAS at all just wanted to pull the usual suspects disk state, temp, remaining space, firmware.
All good I use mikrotik did snmp walk and got them cheers should have marked this as solved.
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.2.1.25.1.1.0
name: 'NAS1 Uptime'
value_template: >-
{% set time = (value | int) | int %}
{% set minutes = ((time % 360000) / 6000) | int%}
{% set hours = ((time % 8640000) / 360000) | int %}
{% set days = (time / 8640000) | int %}
{%- if time < 60 -%}
Less then 1 min
{%- else -%}
{%- if days > 0 -%}
{{ days }}d
{%- endif -%}
{%- if hours > 0 -%}
{%- if days > 0 -%}
{{ ' ' }}
{%- endif -%}
{{ hours }}hr
{%- endif -%}
{%- if minutes > 0 -%}
{%- if days > 0 or hours > 0 -%}
{{ ' ' }}
{%- endif -%}
{{ minutes }}min
{%- endif -%}
{%- endif -%}
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.2.1.1.5.0
name: 'NAS1 Name'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.3.1.9.1
name: 'NAS1 Disk1 State'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.3.1.9.2
name: 'NAS1 Disk2 State'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.3.1.10.1
name: 'NAS1 Disk1 Temp'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.3.1.10.2
name: 'NAS1 Disk2 Temp'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.3.1.7.1
name: 'NAS1 Disk1 Capacity'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.3.1.7.2
name: 'NAS1 Disk2 Capacity'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.4.1.2.1
name: 'NAS1 Fan RPM'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.5.1.2.1
name: 'NAS1 Temp Value'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.7.1.5.1
name: 'NAS1 Volume Size'
- platform: snmp
host: 10.0.0.2
baseoid: 1.3.6.1.4.1.4526.22.7.1.6.1
name: 'NAS1 Volume Free'
@jimpower, great thanx I don’t get any sensors available after reboot - did you have to add something else to activate the component in configuration.yaml ? Please excuse my question, I’m quite still quite noob …
This is to be placed under sensors.
Also you will need to adjust for the ip of your own nas. Lastly you will need to enablr snmp on your readynas
Worked like a charm; thx @jimpower
For some reason, the MIB table at OIDview was a bit off… it stated 18 where you have 22.
Sure try here
@jimpower I get unkown readings at almost all the sensors except NAS1 name and NAS1 uptime. Do you have any idea how to fix this?
Is there a restriction to the oid on base of the software version of readynas? My nas is an older model and runs on 4.2.31
There could be I use specific oid to my model also so there might be an extra 1 at the end of the oid which specifies the disk could be different for each model but generic oid should be the same across the series.
@jimpower
do you have a value_template for the disk and volume sizes
the bytes are al little bit not human readable
I have a ReadyNAS 2120 and have identified the following OIDs in case anyone needs them… Maybe someone can suggest some other useful ones?
Name = 1.3.6.1.2.1.1.5.0
Uptime = 1.3.6.1.2.1.25.1.1.0
RaidState = 1.3.6.1.4.1.4526.22.7.1.4.1
HDD1State = 1.3.6.1.4.1.4526.22.3.1.9.1
HDD2State = 1.3.6.1.4.1.4526.22.3.1.9.2
HDD3State = 1.3.6.1.4.1.4526.22.3.1.9.3
HDD4State = 1.3.6.1.4.1.4526.22.3.1.9.4
CPU1 = 1.3.6.1.2.1.25.3.3.1.2.196608
CPU2 = 1.3.6.1.2.1.25.3.3.1.2.196609
Fan1RPM = 1.3.6.1.4.1.4526.22.4.1.2.1
Fan2RPM = 1.3.6.1.4.1.4526.22.4.1.2.2
Fan3RPM = 1.3.6.1.4.1.4526.22.4.1.2.3
HDD1Temp = 1.3.6.1.4.1.4526.22.3.1.10.1
HDD2Temp = 1.3.6.1.4.1.4526.22.3.1.10.2
HDD3Temp = 1.3.6.1.4.1.4526.22.3.1.10.3
HDD4Temp = 1.3.6.1.4.1.4526.22.3.1.10.4
FreeSpace = 1.3.6.1.4.1.4526.22.7.1.6.1
TotalSpace = 1.3.6.1.4.1.4526.22.7.1.5.1
CPUTemp = 1.3.6.1.4.1.4526.22.5.1.2.1