Add IntervalSeconds Element to Script Based Monitor via MP Author












0















I’ve created a Powershell Script Based Monitor using Silect MP Author so that I will be able to schedule their runtime (e.g. Every Day – Sun – Thu).
Problem is,
That I also need the availability to adjust the interval time (e.g. Every 30 Seconds).
And for some reason, this is not a valid option to combine in the MP Author Wizard.
You can only choose from the 3 following options:
1. None
2. Daily
3. Periodic
Does somebody know what is the Interval Time configured if the Daily option is been chosen?
Furthermore,
While examining the XML file MP Author has created,
I can see that when choosing the Daily options, the following elements have been created:



    </Configuration>
<OverrideableParameters>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int" />
<OverrideableParameter ID="DaysOfWeekMask" Selector="$Config/DaysOfWeekMask$" ParameterType="int" />
<OverrideableParameter ID="StartTime" Selector="$Config/StartTime$" ParameterType="string" />
<OverrideableParameter ID="EndTime" Selector="$Config/EndTime$" ParameterType="string" />
</OverrideableParameters>
<ModuleImplementation Isolation="Any">
<Composite>
<MemberModules>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<WeeklySchedule>
<Windows>
<Daily>
<Start>$Config/StartTime$</Start>
<End>$Config/EndTime$</End>
<DaysOfWeekMask>$Config/DaysOfWeekMask$</DaysOfWeekMask>
</Daily>
</Windows>
</WeeklySchedule>
<ExcludeDates />
</Scheduler>
</DataSource>


Can I just add New Element (For and tags):



<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="IntervalSeconds" />
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="DaysOfWeekMask" />

<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


And a New line in the Tag for the IntervalSeconds Value?:



As Hard Coded Value



<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


Or as a Varibel?



<SimpleReccuringSchedule>
<Interval Unit="Seconds">$Config/IntervalSeconds$</Interval>
</SimpleReccuringSchedule>









share|improve this question



























    0















    I’ve created a Powershell Script Based Monitor using Silect MP Author so that I will be able to schedule their runtime (e.g. Every Day – Sun – Thu).
    Problem is,
    That I also need the availability to adjust the interval time (e.g. Every 30 Seconds).
    And for some reason, this is not a valid option to combine in the MP Author Wizard.
    You can only choose from the 3 following options:
    1. None
    2. Daily
    3. Periodic
    Does somebody know what is the Interval Time configured if the Daily option is been chosen?
    Furthermore,
    While examining the XML file MP Author has created,
    I can see that when choosing the Daily options, the following elements have been created:



        </Configuration>
    <OverrideableParameters>
    <OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int" />
    <OverrideableParameter ID="DaysOfWeekMask" Selector="$Config/DaysOfWeekMask$" ParameterType="int" />
    <OverrideableParameter ID="StartTime" Selector="$Config/StartTime$" ParameterType="string" />
    <OverrideableParameter ID="EndTime" Selector="$Config/EndTime$" ParameterType="string" />
    </OverrideableParameters>
    <ModuleImplementation Isolation="Any">
    <Composite>
    <MemberModules>
    <DataSource ID="Scheduler" TypeID="System!System.Scheduler">
    <Scheduler>
    <WeeklySchedule>
    <Windows>
    <Daily>
    <Start>$Config/StartTime$</Start>
    <End>$Config/EndTime$</End>
    <DaysOfWeekMask>$Config/DaysOfWeekMask$</DaysOfWeekMask>
    </Daily>
    </Windows>
    </WeeklySchedule>
    <ExcludeDates />
    </Scheduler>
    </DataSource>


    Can I just add New Element (For and tags):



    <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="IntervalSeconds" />
    <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="DaysOfWeekMask" />

    <OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


    And a New line in the Tag for the IntervalSeconds Value?:



    As Hard Coded Value



    <OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


    Or as a Varibel?



    <SimpleReccuringSchedule>
    <Interval Unit="Seconds">$Config/IntervalSeconds$</Interval>
    </SimpleReccuringSchedule>









    share|improve this question

























      0












      0








      0








      I’ve created a Powershell Script Based Monitor using Silect MP Author so that I will be able to schedule their runtime (e.g. Every Day – Sun – Thu).
      Problem is,
      That I also need the availability to adjust the interval time (e.g. Every 30 Seconds).
      And for some reason, this is not a valid option to combine in the MP Author Wizard.
      You can only choose from the 3 following options:
      1. None
      2. Daily
      3. Periodic
      Does somebody know what is the Interval Time configured if the Daily option is been chosen?
      Furthermore,
      While examining the XML file MP Author has created,
      I can see that when choosing the Daily options, the following elements have been created:



          </Configuration>
      <OverrideableParameters>
      <OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int" />
      <OverrideableParameter ID="DaysOfWeekMask" Selector="$Config/DaysOfWeekMask$" ParameterType="int" />
      <OverrideableParameter ID="StartTime" Selector="$Config/StartTime$" ParameterType="string" />
      <OverrideableParameter ID="EndTime" Selector="$Config/EndTime$" ParameterType="string" />
      </OverrideableParameters>
      <ModuleImplementation Isolation="Any">
      <Composite>
      <MemberModules>
      <DataSource ID="Scheduler" TypeID="System!System.Scheduler">
      <Scheduler>
      <WeeklySchedule>
      <Windows>
      <Daily>
      <Start>$Config/StartTime$</Start>
      <End>$Config/EndTime$</End>
      <DaysOfWeekMask>$Config/DaysOfWeekMask$</DaysOfWeekMask>
      </Daily>
      </Windows>
      </WeeklySchedule>
      <ExcludeDates />
      </Scheduler>
      </DataSource>


      Can I just add New Element (For and tags):



      <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="IntervalSeconds" />
      <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="DaysOfWeekMask" />

      <OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


      And a New line in the Tag for the IntervalSeconds Value?:



      As Hard Coded Value



      <OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


      Or as a Varibel?



      <SimpleReccuringSchedule>
      <Interval Unit="Seconds">$Config/IntervalSeconds$</Interval>
      </SimpleReccuringSchedule>









      share|improve this question














      I’ve created a Powershell Script Based Monitor using Silect MP Author so that I will be able to schedule their runtime (e.g. Every Day – Sun – Thu).
      Problem is,
      That I also need the availability to adjust the interval time (e.g. Every 30 Seconds).
      And for some reason, this is not a valid option to combine in the MP Author Wizard.
      You can only choose from the 3 following options:
      1. None
      2. Daily
      3. Periodic
      Does somebody know what is the Interval Time configured if the Daily option is been chosen?
      Furthermore,
      While examining the XML file MP Author has created,
      I can see that when choosing the Daily options, the following elements have been created:



          </Configuration>
      <OverrideableParameters>
      <OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int" />
      <OverrideableParameter ID="DaysOfWeekMask" Selector="$Config/DaysOfWeekMask$" ParameterType="int" />
      <OverrideableParameter ID="StartTime" Selector="$Config/StartTime$" ParameterType="string" />
      <OverrideableParameter ID="EndTime" Selector="$Config/EndTime$" ParameterType="string" />
      </OverrideableParameters>
      <ModuleImplementation Isolation="Any">
      <Composite>
      <MemberModules>
      <DataSource ID="Scheduler" TypeID="System!System.Scheduler">
      <Scheduler>
      <WeeklySchedule>
      <Windows>
      <Daily>
      <Start>$Config/StartTime$</Start>
      <End>$Config/EndTime$</End>
      <DaysOfWeekMask>$Config/DaysOfWeekMask$</DaysOfWeekMask>
      </Daily>
      </Windows>
      </WeeklySchedule>
      <ExcludeDates />
      </Scheduler>
      </DataSource>


      Can I just add New Element (For and tags):



      <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="IntervalSeconds" />
      <xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:integer" name="DaysOfWeekMask" />

      <OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


      And a New line in the Tag for the IntervalSeconds Value?:



      As Hard Coded Value



      <OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />


      Or as a Varibel?



      <SimpleReccuringSchedule>
      <Interval Unit="Seconds">$Config/IntervalSeconds$</Interval>
      </SimpleReccuringSchedule>






      xml scom






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 25 '18 at 17:30









      edwioedwio

      3919




      3919
























          1 Answer
          1






          active

          oldest

          votes


















          0














          According to MS documentation, PublicSchedulerType, there is no configurable parameter to set interval in your scenario. SimpleReccuringSchedule is mutually exclusive to WeeklySchedule, as per the schema definition. On the top of that, MS doesn't provide an example, where Start and End parameters are different, they recommend to use it for a single fire.



          You certainly, can add a new parameter and make it overridable, but you have no place to use it, so this won't make any difference.



          To deal with this issue, you can:




          1. Use SimpleReccuringSchedule schedule, or SimpleScheduler as a base. Configure your interval here.

          2. Add System.SchedulerFilter condition detection module to your data source to allow the base scheduler only at configured windows.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53470053%2fadd-intervalseconds-element-to-script-based-monitor-via-mp-author%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            According to MS documentation, PublicSchedulerType, there is no configurable parameter to set interval in your scenario. SimpleReccuringSchedule is mutually exclusive to WeeklySchedule, as per the schema definition. On the top of that, MS doesn't provide an example, where Start and End parameters are different, they recommend to use it for a single fire.



            You certainly, can add a new parameter and make it overridable, but you have no place to use it, so this won't make any difference.



            To deal with this issue, you can:




            1. Use SimpleReccuringSchedule schedule, or SimpleScheduler as a base. Configure your interval here.

            2. Add System.SchedulerFilter condition detection module to your data source to allow the base scheduler only at configured windows.






            share|improve this answer




























              0














              According to MS documentation, PublicSchedulerType, there is no configurable parameter to set interval in your scenario. SimpleReccuringSchedule is mutually exclusive to WeeklySchedule, as per the schema definition. On the top of that, MS doesn't provide an example, where Start and End parameters are different, they recommend to use it for a single fire.



              You certainly, can add a new parameter and make it overridable, but you have no place to use it, so this won't make any difference.



              To deal with this issue, you can:




              1. Use SimpleReccuringSchedule schedule, or SimpleScheduler as a base. Configure your interval here.

              2. Add System.SchedulerFilter condition detection module to your data source to allow the base scheduler only at configured windows.






              share|improve this answer


























                0












                0








                0







                According to MS documentation, PublicSchedulerType, there is no configurable parameter to set interval in your scenario. SimpleReccuringSchedule is mutually exclusive to WeeklySchedule, as per the schema definition. On the top of that, MS doesn't provide an example, where Start and End parameters are different, they recommend to use it for a single fire.



                You certainly, can add a new parameter and make it overridable, but you have no place to use it, so this won't make any difference.



                To deal with this issue, you can:




                1. Use SimpleReccuringSchedule schedule, or SimpleScheduler as a base. Configure your interval here.

                2. Add System.SchedulerFilter condition detection module to your data source to allow the base scheduler only at configured windows.






                share|improve this answer













                According to MS documentation, PublicSchedulerType, there is no configurable parameter to set interval in your scenario. SimpleReccuringSchedule is mutually exclusive to WeeklySchedule, as per the schema definition. On the top of that, MS doesn't provide an example, where Start and End parameters are different, they recommend to use it for a single fire.



                You certainly, can add a new parameter and make it overridable, but you have no place to use it, so this won't make any difference.



                To deal with this issue, you can:




                1. Use SimpleReccuringSchedule schedule, or SimpleScheduler as a base. Configure your interval here.

                2. Add System.SchedulerFilter condition detection module to your data source to allow the base scheduler only at configured windows.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 30 '18 at 21:26









                MaxMax

                61259




                61259
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53470053%2fadd-intervalseconds-element-to-script-based-monitor-via-mp-author%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Tonle Sap (See)

                    I get strange results when I access the Sqlitedatabase with Unity C# via XAMPP

                    Guatemaltekische Davis-Cup-Mannschaft