I am trying to schedule a script to fire a trap when the cpu-load exceeds say 90.
I am stuck in constructing the source as string along with the oid and value, completely baffled with the delimiter that has to come after /snmp send-trap
The below snippet works
=source=:local cpuload [:tonum [/system resource get cpu-load]]; :if ($cpuload > 90) do={ [/snmp send-trap value=“load” ]; } }
The below one never works for me
=source=:local cpuload [:tonum [/system resource get cpu-load]]; :if ($cpuload > 90) do={ [/snmp send-trap oid=“.1.3.6.1.2.1.25.3.3.1.2.1” value=“cpu load exceeded threshold” type=string]; } }