ModAutoControl not working?

Forum Home Forums Development and Integration ModAutoControl not working?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1226
    inpelsainpelsa
    Participant

    Hi Mikhail!

    Modautocontrol is configured to send an email every day at 13h, and it does it… it’s working.

    But this weekend several triggers should have been triggered… but it doesn’t.

    modautocontrol.xml :

    
    <?xml version="1.0" encoding="utf-8"?>
    <ModAutoControl>
      <Triggers>
        <Trigger name="Alarmas Regulador A" type="CnlDataTrigger">
          <CnlDataTriggerProps>
            <CnlNum>805</CnlNum>
            <ChkCnlVal>true</ChkCnlVal>
            <CnlValCond>
              <CompareOperator1>GreaterThan</CompareOperator1>
              <CompareArgument1>0</CompareArgument1>
              <LogicalOperator>None</LogicalOperator>
              <CompareOperator2>LessThan</CompareOperator2>
              <CompareArgument2>0</CompareArgument2>
            </CnlValCond>
            <ChkCnlStat>true</ChkCnlStat>
            <CnlStat>0</CnlStat>
          </CnlDataTriggerProps>
          <Commands>
            <Command cmdTypeID="1">
              <KPNum>44</KPNum>
              <CmdNum>1</CmdNum>
              <CmdData>6561626172636140696E70656C73612E6C6564657276616C2E65733B416C61726D6120526567756C61646F7220413B416C61726D6120616374697661646120656E20526567756C61646F722041</CmdData>
              <EditMode>Str</EditMode>
              <CopyCmdVal>false</CopyCmdVal>
            </Command>
          </Commands>
        </Trigger>
        <Trigger name="Alarmas Regulador B" type="CnlDataTrigger">
          <CnlDataTriggerProps>
            <CnlNum>1008</CnlNum>
            <ChkCnlVal>true</ChkCnlVal>
            <CnlValCond>
              <CompareOperator1>GreaterThan</CompareOperator1>
              <CompareArgument1>0</CompareArgument1>
              <LogicalOperator>None</LogicalOperator>
              <CompareOperator2>LessThan</CompareOperator2>
              <CompareArgument2>0</CompareArgument2>
            </CnlValCond>
            <ChkCnlStat>true</ChkCnlStat>
            <CnlStat>0</CnlStat>
          </CnlDataTriggerProps>
          <Commands>
            <Command cmdTypeID="1">
              <KPNum>44</KPNum>
              <CmdNum>1</CmdNum>
              <CmdData>6561626172636140696E70656C73612E6C6564657276616C2E65733B416C61726D6120526567756C61646F7220423B416C61726D6120616374697661646120656E20526567756C61646F722042</CmdData>
              <EditMode>Str</EditMode>
              <CopyCmdVal>false</CopyCmdVal>
            </Command>
          </Commands>
        </Trigger>
        <Trigger name="Alarmas Regulador C" type="CnlDataTrigger">
          <CnlDataTriggerProps>
            <CnlNum>1308</CnlNum>
            <ChkCnlVal>true</ChkCnlVal>
            <CnlValCond>
              <CompareOperator1>GreaterThan</CompareOperator1>
              <CompareArgument1>0</CompareArgument1>
              <LogicalOperator>None</LogicalOperator>
              <CompareOperator2>LessThan</CompareOperator2>
              <CompareArgument2>0</CompareArgument2>
            </CnlValCond>
            <ChkCnlStat>true</ChkCnlStat>
            <CnlStat>0</CnlStat>
          </CnlDataTriggerProps>
          <Commands>
            <Command cmdTypeID="1">
              <KPNum>44</KPNum>
              <CmdNum>1</CmdNum>
              <CmdData>6561626172636140696E70656C73612E6C6564657276616C2E65733B416C61726D6120526567756C61646F7220433B416C61726D6120616374697661646120656E20526567756C61646F722043</CmdData>
              <EditMode>Str</EditMode>
              <CopyCmdVal>false</CopyCmdVal>
            </Command>
          </Commands>
        </Trigger>
        <Trigger name="Test de las 13h" type="TimeTrigger">
          <TimeTriggerProps>
            <Mode>EveryDay</Mode>
            <DaysOfWeek>
              <Sun>false</Sun>
              <Mon>false</Mon>
              <Tue>false</Tue>
              <Wed>false</Wed>
              <Thu>false</Thu>
              <Fri>false</Fri>
              <Sat>false</Sat>
            </DaysOfWeek>
            <Dates />
            <Times>
              <Time>13:00:00</Time>
            </Times>
          </TimeTriggerProps>
          <Commands>
            <Command cmdTypeID="1">
              <KPNum>44</KPNum>
              <CmdNum>1</CmdNum>
              <CmdData>6561626172636140696E70656C73612E6C6564657276616C2E65733B54657374204175746F636F6E74726F6C203133683B456C206D6F64756C6F206465206175746F636F6E74726F6C20736967756520656E2066756E63696F6E616D69656E746F2E2E2E</CmdData>
              <EditMode>Str</EditMode>
              <CopyCmdVal>false</CopyCmdVal>
            </Command>
          </Commands>
        </Trigger>
      </Triggers>
    </ModAutoControl>
    
    
    2016-05-20 16:30:18 Start ModAutoControl module
    2016-05-20 18:16:33 Module ModAutoControl is stopped
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    2016-05-20 18:16:33 Start ModAutoControl module
    2016-05-21 13:00:00 Trigger "Test de las 13h" raises
    2016-05-21 13:00:00 Send command to Device 44. Command number: 1
    2016-05-22 13:00:00 Trigger "Test de las 13h" raises
    2016-05-22 13:00:00 Send command to Device 44. Command number: 1
    2016-05-22 21:37:33 Trigger "Alarmas Regulador A" raises
    2016-05-22 21:37:33 Send command to Device 44. Command number: 1
    2016-05-23 13:00:00 Trigger "Test de las 13h" raises
    2016-05-23 13:00:00 Send command to Device 44. Command number: 1
    2016-05-23 16:21:33 Module ModAutoControl is stopped
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    2016-05-23 16:21:34 Start ModAutoControl module
    2016-05-23 16:37:31 Module ModAutoControl is stopped
    

    3 channel data plotted, several changes on all channels, NONE email received:
    3 channel graph over weekend

    PD: forum tips:
    – Find a way to add pictures right here, not depending on external servers (slow, annoying)
    – Enable ‘notify me of follow-up….’ by default
    – Make thread messages wider

    #1227
    inpelsainpelsa
    Participant

    Sorry, I received one email as stated on the log:

    “Alarma activada en Regulador A” on Sunday 22th at 21:37:33

    Why no more alerts !!??

    #1228
    inpelsainpelsa
    Participant

    Seems at email’s time there was a communication fault:
    graph comm fail

    But 1 hour before it same event happened… and there was no email !!??

    #1236
    MikhailMikhail
    Moderator

    Hi,

    Your triggers are configured as
    <ChkCnlStat>true</ChkCnlStat>
    <CnlStat>0</CnlStat>

    It means that channel status must be 0 (undefined) to fire the trigger.

    #1237
    MikhailMikhail
    Moderator

    PD: forum tips:

    I recommend Extended support service. It includes Redmine ticket tracker which is much more comfortable.

    #1239
    inpelsainpelsa
    Participant

    Mmm… true… is true.

    I thought it was the output status.

    thanks!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.