• W
    Wingnut2.0

    Hello,

    After fresh Debian 10 Install I used the Install script provided on the IA site. https://help.infiniteautomation.com/install-script

    When the script completed I was unable to start mango per the script instructions -
    0_1579891472675_90bc6b2b-39c2-41eb-9622-5aab7ccdaa84-image.png

    Info from journalctl -xe
    0_1579891574137_284c1ada-5afc-4135-94fb-e69382fe3b42-image.png

    I am able to start mango manually without any issues
    0_1579891837343_640d6af6-155f-44fb-9b95-f9de696aff99-image.png

    Also, after the script install I now get the 2 errors highlighted below
    0_1579891998976_b3a9a401-ec71-4d33-a2b4-e65125094bcd-image.png

    Any suggestions as to how I can address this? Please let me know if I can provide any additional info.

    Thank you -

    posted in User help read more
  • W
    Wingnut2.0

    Hello fishfacs,

    I had a similar requirement in the past and Phillip provided the solution detailed here. Not sure if anything may have changed since then as its been a while. I hope this helps.

    https://forum.infiniteautomation.com/topic/3367/modify-alarm-level-names/2

    posted in How-To read more
  • W
    Wingnut2.0

    As always, thank you.
    Works perfectly and I appreciate the link to the documentation.

    $EXIT
    This global object is used to store the exit code of the process. If the exit code is not zero, then the process failed.
    

    posted in How-To read more
  • W
    Wingnut2.0

    Hello Phillip,

    I had a chance to try this out and I do not seem to get a response when running the ping command (this is on a MangoES). I have verified shell access is available via scripts by running commands like the ones below where I receive a response.

    var response = $EXEC("ls -l");
    print(response);
    
    var ip = $EXEC("ip a"); 
    print(ip);
    

    Can you confirm similar behavior? Is this a permissions issue?

    Thank you.

    posted in How-To read more
  • W
    Wingnut2.0

    In the Alphanumeric approach, would the scripting data point hold the host info (IP) and pass it to the data source script? Or are you suggesting the hosts be part of the script and the alphanumeric point is the trigger for a general alarm for any return of 1?

    posted in How-To read more
  • W
    Wingnut2.0

    Thank you, Phillip.

    After your response, I am thinking about a binary meta point per device with timer update event and change detector to monitor the device(s) online status.

    posted in How-To read more
  • W
    Wingnut2.0

    Hello,

    I am looking for a simple way to monitor devices up-time. I found this thread https://forum.infiniteautomation.com/topic/3295/access-control-ip-monitor and was wondering if this is still the preferred method?

    The reason I am asking is that this seems like there must be a more efficient way to accomplish this than creating a Data source, Data point, Virtual Data point, and event handler for each individual device. Could this possibly be accomplished using a global script if it involved many devices?

    Thank you.

    posted in How-To read more
  • W
    Wingnut2.0

    I tried it on 3.6.0-beta.6 and received the following error -
    java.lang.RuntimeException: java.lang.ClassNotFoundException: com.serotonin.m2m2.Common.getTranslations

    I had an instance of 3.5.6 open and tried it there as well. It worked without error.

    posted in How-To read more
  • W
    Wingnut2.0

    Thank you Phillip, this was very helpful.
    I was not able to get this running on 3.6.0-beta.6 (not a huge deal), but no problems with 3.5.6.

    posted in How-To read more
  • W
    Wingnut2.0

    Hello,

    I would like to forward on events as they are received using the HttpBuilder similar to this topic https://forum.infiniteautomation.com/topic/3169/send-alarm-notification-to-mobile-phone

    The difference is that I would like to send on all events as they are received. Is there a way to make an incoming event message available to a scripting source (possibly the text sent in an Event email)?

    If possible, what would be the scripts context reference used to trigger the script?

    Thank you.

    posted in How-To read more