I want to get the percentage of free Memory on my laptop.
I want to get that info through an item of type: "Calculated".
1. what is the correct syntax for doing that?
2. what am I supposed to put into the "key" parameter while creating the "calculated" item?
This is what i tried so far:
Formula: last(vm.memory.size[available]) / last(vm.memory.size[total])
OS: WIN 10
Zabbix: 3.2
For calculated items you come up with the key, using the allowed characters - it will only act as an identifier of the item.
Related
I have a google sheet with only one column:
client_id
1234 - Act
4523 - Tdf
1111 - XXX
1234 - Act12
Right now I have conditional formatting that turns the cells red color if a client_id with the same value already exists. My function for that is:
`=SUMPRODUCT(TRIM($A$8:$A$9999965)=TRIM(A8))>1`
However, my client requests a little change, right now he doesn't want to compare if the entire client_id value already exists but in the case of the Number part. So with my previous formula, the client 1234 will not appear as Red because the String is different and he needs to know that a client with the number 1234 already exists on the database.
I try with this formula:
=SUMPRODUCT(TRIM(LEFT($A$8:$A$9999971, SEARCH("-",TRIM($B$8))))=TRIM(LEFT($B$8, SEARCH("-",TRIM($B$8)))))>1
But it does not detect the red even when the same value is registered and I got the following error:
`Function SEARCH parameter 2 value should be non-empty.`
Does anyone know how I can get this?
Many thanks for your help
You could try with SPLIT or REGEXEXTRACT.
=SUMPRODUCT(INDEX(TRIM(SPLIT(A$8:A,"-")),,1)=INDEX(TRIM(SPLIT(A8,"-")),,1))>1
=SUMPRODUCT(REGEXEXTRACT(A$8:A,"\d+")=REGEXEXTRACT(A8,"\d+"))>1
I'm trying to populate a column with the last known price at the end of a batch of orders.
Please see an example attached.
I need the last price known from columns "price". Please note that there is not always value.
I tried something like this : =LOOKUP(B2:H2,"price",B3:H3<>"")
But it didn't really work.
(the nos 18 and 3 in column "I" are just examples. I need the green 3 results),thx.
Maybe try:
=INDEX(FILTER(B3:H3,B$2:H$2="price"),COUNTIFS(B$2:H$2,"price",B3:H3,"<>"))
If there could be empty gaps in your data, try this alternative:
=INDEX(A3:H3,MAX(COLUMN(A3:H3)*(A$2:H$2="price")*(A3:H3<>"")))
I'm trying to set an alert in Grafana as soon as the value is outside the range 16 to 36. I'm using influxDB
I have a simple query (A):
SELECT "value" FROM "temp"
The graph is shown correctly.
My alert config looks like this:
WHEN last() OF query(A, 1s, now) IS OUTSIDE RANGE 16 TO 36
But if I evaluate the Test Rule, I always get the state no_data. What am I doing wrong?
Well.. 3 years later.. =)
I had this same problem. To fix this, go to your Influx server and type:
use <databasename>
show field keys
The command "show field keys" will return something like this:
name: table_name
fieldKey fieldType
-------- ---------
value string
The problem is the column fieldType need to be float and not string. In my case, I dropped the database and created it again. And I inserted as decimal.
I'm using Eureka Forms for swift 2 and I'm trying to add a Suffix to a DecimalRow. My the reason is that in this row the user will enter the amount of litre consumed, so I would like the row to display the L at the end all the time
I did not find anything in the API docs to help me with this....
Thanks
Vex ROBOTC has the following command for displaying integers to the LCD display:
displayLCDNumber(nLine, nPos, nValue, nPrecision);
I'm trying to display the following: displayLCDNumber(0, 4, (float) 3.14159, nPrecision);
Supposedly, using the nPrecision parameter I should be able to display floats. Unfortunately, I cannot seem to get this to work. When I specify a negative integer, it just adds leading 0s to the displayed numbers. When I specify positive, it just shifts the integer portion of my number that many places right. When I try decimal nPrecisons such as 0.6, it does nothing. What is the nPrecision parameter and what do I need to set it too to correctly display my number?
API here: http://www.robotc.net/wikiarchive/VEX2_Functions_Display
Edit:
Any help would be apreciated, preferably as soon as possible because I will only get a chance to test/use it tomorrow and friday for like 30 minutes.