• 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
  • W
    Wingnut2.0

    The device identifier at the beginning of the error line was mmcblk0:
    I wont be able to do any additional testing until tomorrow, but I did test this on another mangoES and received the same results. I believe both tests were using the vertical USB port next to the RJ45 Ethernet port.

    posted in User help read more