• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Its possible load a jsp file from meta data source script?

    Scripting general Discussion
    1
    1
    522
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TioPerobaT
      TioPeroba
      last edited by

      Hello for all.

      I'm reading into ScadaBR some SNMP tags and I need create a Alert System using email and or Telegram. My doubt is about if possible from datapoint script of the meta data source make something neat like:

      • Run's a JSP file.
      • Send a email
      • Raise an Alert

      this are my script for now...

      CS_3B - BatteryLow          p513
      CS_3B - BatteryTestFail     p514
      CS_3B - FanFail             p515
      CS_3B - FuseFailure         p516
      CS_3B - InverterAbnormal    p517
      CS_3B - LoadOnBypass        p518
      CS_3B - OutputOff           p519
      CS_3B - OutputOverload      p520
      CS_3B - OverTemperature     p521
      CS_3B - PowerFail           p522
      CS_3B - TestInProgress      p523
      CS_3B - UPSFault            p524
      

      This are the Script

      var alarme = 0;
      var msg-email="Nobreak CS_3D Informa:";
      var msg-teleg="Nobreak CS_3D Informa:";
      
      if(p513.value > alarme ){
         msg-teleg.concat("\nBateria Baixa");
         msg-email.concat("\nBateria Baixa");
      }
      
      else if(p515.value > alarme ){
         msg-email.concat("\nFalha Ventiladores");
      }
      
      else if(p514.value > alarme ){
         msg-email.concat("\nFalha teste Baterias");
      }
      
      else if(p516.value > alarme ){
         msg-email.concat("\nFusíveis Aberto");
      }
      
      else if(p517.value > alarme ){
         msg-email.concat("\nFalha Inversor");
      }
      
      else if(p518.value > alarme ){
         msg-email.concat("\nNobreak em Bypass");
      }
      
      else if(p519.value > alarme ){
         msg-email.concat("\nSaida Desligada");
      }
      
      else if(p520.value > alarme ){
         msg-email.concat("\nSobrecarga na Saida");
      }
      
      else if(p521.value > alarme ){
         msg-email.concat("\nSuperaquecimento");
      }
      
      else if(p522.value > alarme ){
         msg-email.concat("\nAusência de Rede");
      }
      
      
      else if(p523.value > alarme ){
         msg-email.concat("\nTeste em progresso");
         msg-teleg.concat("\nTeste em Progresso");
      }
      
      else if(p524.value > alarme ){
         msg-email.concat("\nNobreak em Falha");
      }
      
      else { msg-email.concat("\nSistema Normal");
             msg-teleg.concat("\nSistema Normal");
      }
      
      if msg-teleg.len()>44 { 
      // get sendtelegram.jsp?group=100&msg=$(msg-teleg)
      }
      
      if msg-email.len() >44 { 
      // sendmail(msg=$(msg-email)
      }
      
      return msg-email;
      

      be free with Linux

      1 Reply Last reply Reply Quote 0
      • First post
        Last post