Community discussions

MikroTik App
 
Vorsik86
just joined
Topic Author
Posts: 1
Joined: Tue Aug 02, 2022 9:57 pm

Dynamic indexes

Tue Aug 02, 2022 10:05 pm

Hi all! help solve the problem. Similar to what's here: https://www.zabbix.com/documentation/cu ... namicindex

I need to get the oid index by name somehow. it is the process ID. To further get data on used memory and CPU load. something like:
[if(array_find(oid_column("1.3.6.1.2.1.25.4.2.1.2"),"iRidiumServer32.exe")>0, 1, 0)]

those. "iRidiumServer32.exe" finds in oid "1.3.6.1.2.1.25.4.2.1.2.2892" I need to somehow select this tail "2892" and stick it into:

CPU: [oid("1.3.6.1.2.1.25.4.2.1.3.2892")]
Memory: [oid("1.3.6.1.2.1.25.4.2.1.4.2892")]
The fact is that this tail 2892 is the ide of the process and it will change if the server is restarted.

Who is online

Users browsing this forum: No registered users and 0 guests