-
W Wingnut2.0
When changing to a service on windows your GUID will more than likely change (Thank you Dave)
This will require a request to transfer you license from the old GUID to the new one.If you run into that - below is the link to request the transfer.
https://mango-os.com/license-help -
W Wingnut2.0
Hello Rodrigo,
Here is another alternative. This works on windows with AdoptOpenJDK 11.
NSSM - the Non-Sucking Service Manager
-
W Wingnut2.0
Thank you, Terry.
While testing, I am using the following input
[[inputs.win_perf_counters.object]]
# Processor usage, alternative to native, reports on a per core.
ObjectName = "Processor"
Instances = [""]
Counters = [
"% Idle Time",
"% Interrupt Time",
"% Privileged Time",
"% User Time",
"% Processor Time",
"% DPC Time",
]
Measurement = "win_cpu"
# Set to true to include _Total instance when querying for all ().
IncludeTotal=trueThe message to be sent is the following
win_cpu,host=LAPTOP,instance=2,objectname=Processor,source=telegraf Percent_DPC_Time=0,Percent_Idle_Time=89.79866790771484,Percent_Interrupt_Time=0,Percent_Privileged_Time=0,Percent_Processor_Time=3.9585533142089844,Percent_User_Time=3.098111152648926 1604960081000000000
What is making it to Mango ends up looking like this
Along with some additional errors for points that failed to be created.
'test_Influx': Failed creating point with field key ²—‚œ±þÞÑE€d7ˆF}Ñú¢ªÓU™çœÌâï£ÉŤZ>Mç‹Ów?œýò׳?üã¯gÿŒïß¼Œ&óÅprYžo¯‡ÇÕùÉ‹OÕ¬~`úñ?«ËÅdø¥:ý¹Zü>}>?ùódQÍþ>¼¬óéíì²:]Tãêz6üûÉÙðòsµ˜_|¨&‹‹›j6¯.Oaðí×÷Õe5úººx;š_gWÕÕÆÅ¿Þ.>No'ÍïŸüq6›ÎæMÝ_ùÓ×EµñÄý(V¿?3²oWNÐ@ÒPáÛ¿¨Aœÿ>¼yÅ‹_¦‹áx¹³áõhr}~òÓhÜ€Y5»¬õë|x]zd¶PrvmÊåÍí3¡ƒ˜M/«ù|:kÁý¿Œ¾T§’$T-ƒ‰ßî|{öfuÜÿôç«qµú-¢°cH‚hØú–zÝÌnoŸ because name -> Cannot be longer than 255 characters
I do have Treat integers as Numeric types checked but seem to keep getting NumberFormatExceptions and Invalid Line Length errors. Can Mango only handle a single value being sent at a time?
Thank you.
-
W Wingnut2.0
Hello Rodrigo,
I have found that if you want to run a version of 3.7.7 or lower on Windows as a service your best bet is Installing Oracle JDK 8. I know it doesn't necessarily follow the recommendation's here, but it allows you to run as a service.
https://docs-v3.mango-os.com/installing-java
-
For Mango versions 3.6.x and higher we recommend using the latest version of Adopt OpenJDK.
-
For Mango versions 3.5.x and lower you should use JDK 8 (OpenJDK 8 should work however we primarily tested on Oracle JDK). Older versions of Mango may not work correctly if you use a newer JDK.
-
OpenJDK 8 builds for ARM 32 processors seem to perform extremely poorly, we suggest avoiding this JDK
Another option that I haven't looked into is explained here.
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-7 -
-
W Wingnut2.0
Hello,
While testing the data source, the help section indicates the following -
There are 2 env properties that configure how the Line Protocol endpoint behaves.
lineProtocol.task.queueWarningSize - Size of line queue at to which raise an event warning of queue growth
lineProtocol.pointValidation.cacheExpirySeconds - When creating data points Mango will cache the existing points on this data source for performance during validation, this is how long they should live in the cacheThese 2 lines do not exist in the env.properties file. Could you provide an example of what the recommended defaults should be?
Thank you.
-
W Wingnut2.0
javaws.jar is not included in AdoptOpenJDK which is required for YAJSW to work.
-
W Wingnut2.0
Thank you @terrypacker. I had a global script using
$EXEC
Once I removed that the script would execute. -
W Wingnut2.0
I receive the error when validating the script in both the v3 and legacy UI.
I checked and on this particular instance of mango I had made the changes referenced here
https://forum.infiniteautomation.com/topic/4503/simple-ping-monitor
and here
https://forum.infiniteautomation.com/topic/3818/invoke-shell-commands-from-a-scripting-environment -
W Wingnut2.0
Thanks @CraigWeb
I corrected that and continue to have the same error. -
W Wingnut2.0
Hello,
This is related to Core 3.6.4 / Meta 3.6.2.
When attempting a simple script
var myTotal = (p1148.value + p1164.value + p1068.value + p22238.value); return(myTotal);
I receive the following error that I was hoping someone could shed some light on -
ReferenceError: "$EXEC" is not defined at line: 23 at line: 23
Thank you