Feature Request: Some important functions

Hello,

first of all a big thank you to the MikroTik guys for this great product.

But I’m missing some functions that would be of great help:

array_find_count
Gets the number of occurences of a string inside of an array.

array_find_gt
Finds the first value greater than a given value.

array_find_sm
Finds the first value smaler than a given value.

array_divide
Takes the first array argument and devides all elements by the corresponding element of a second array. This can be used to compute an array of percentages for interface usage, etc. Than you can use max to get the most used interface. (or min to get the disk with minimum space)

oid_walk_find_all
SNMP Walks the given OID and returns all sub-OIDs which have the given value. This makes it possible to search for the oids of all fixed disk drives.

string_replace
Replaces the given part of a string with an other string.

array_string_replace
Same as string_replace but works on all strings inside of an array. This can be used in combination with oid_walk_find_all to create an array of OIDs for gettings the usage of all fixed disks.

oid_column_from_array
Takes an array of OIDs an returns an array of values (like oid_column). With this function the input form array_string_replace(oid_walk_find_all(…)) can be used to get the usage of all fixed disks.

ifempty
Returns the second argument if the first one is an empty string. If the first one is not empty, the first argument is returned. (Would make skripts much more readable)

ifzero
Returns the second argument if the first one is 0. If the first one is not 0, the first argument is returned. (Would make skripts much more readable)

For all functions
A switch for disabling case sensitivity on all find functions would be a great help.

Some more things (not as important as the functions)

    • Extend http-Check for https
  • Make it possible to let a user only view a specific map in the web view. This would be great for customers to show them their envionment without letting them view the rest of the monitored stuff.

Yes and the same thing for the connection customer in remote, local and secure mode. An access on specific map only. :wink:

if it’s already implemented I will want a demonstration for me, if it’s possible.
And syr for my language i’m very bad
:blush: