Customoid text and alert rule

Hello,
i have only 1 nas asustor that i can to check status of disk

in according to official docs

i need to check
.1.3.6.1.4.1.44738.4.1.1.5.1
so i add my device
edit → customoid
NAME DISK 1 - DISK STATE
OID .1.3.6.1.4.1.44738.4.1.1.5.1
when i click TEST OID
Test successful for DISK 1 - DISK STATE, value Healthy received

so works fine. Healthy is status of disk.

so now i would crearte an alert rule when value IS NOT Healthy
so i create an alert rule with match to my device and rule
customoids.customoid_oid = “.1.3.6.1.4.1.44738.4.1.1.5.1” AND customoids.customoid_current != “test”
max alert = 1
Dealy = 1m
interval = 5m
i can’t sure that customoids.customoid_descr is NAME. so i used customoids.customoid_oid

ok but alert NOT start! in alert page i can’t find nothing… is empty…

so i can check poller and find

array (
  'customoid_id' => 3,
  'device_id' => 6,
  'customoid_descr' => 'DISK 1 - DISK STATE',
  'customoid_deleted' => 0,
  'customoid_current' => 0.0,
  'customoid_prev' => 0.0,
  'customoid_oid' => '.1.3.6.1.4.1.44738.4.1.1.5.1',
  'customoid_datatype' => '',
  'customoid_unit' => '',
  'customoid_divisor' => 1,
  'customoid_multiplier' => 1,
  'customoid_limit' => 0.0,
  'customoid_limit_warn' => 0.0,
  'customoid_limit_low' => 0.0,
  'customoid_limit_low_warn' => 0.0,
  'customoid_alert' => 0,
  'customoid_passed' => 1,
  'lastupdate' => '2024-06-03 13:33:49',
  'user_func' => '',
)  
SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-Oqv' '-M' '/opt/librenms/mibs' 'udp:HOSTNAME:65001' '.1.3.6.1.4.1.44738.4.1.1.5.1']
"Healthy"  
  
Custom OID DISK 1 - DISK STATE: 0 
SQL[UPDATE `customoids` set `customoid_current`=?,`lastupdate`=NOW(),`customoid_prev`=? WHERE `customoid_id` = ? [0,0,3] 0.88ms] 

snmpget seems capture Healthy but in current i have 0.0
‘customoid_current’ => 0.0,

can i “write” value Healthy and check if not Healthy run an alert?

i search on forum but points all to yaml and discovery…
but for 1 value for me is better use customoid…

thank you

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.