1 2 Previous Next 15 Replies Latest reply: Sep 4, 2012 9:45 AM by A Kachwala RSS

Remedy Monitor Adapter

K.Ashok kumar Reddy

Hi All,

 

I am new to this AO World.

 

I have a query regarding Remedy Monitor Adapter.

 

Usecase Details:

=============

I have a form in Remedy where there are 10 fields out of which i want to use only 5 fields as an input in AO.

 

The Moment i submit the form, the remedy monitor adapter has to generate an alert which should capture this 5 fields and send as an input to AO which inturn should trigger the workflow.

 

 

Inorder to achieve this we have to create a filter in remedy with all the required parameters which i know.

 

My question is

 

1.How can i know whether the alert got generated or not?where is the location?

2.Once the alert is generated how to push the data to AO?

3.Do i need to create any rules on AO?if yes can anyone tell me the pattern of writting a Rule in AO for remedy alert?

 

 

Please kindly help in finding the above answers.

 

 

 

Thanks a Trillion in Advance,

Ashok

  • 1. Re: Remedy Monitor Adapter
    A Kachwala

    Kindly check these 2 post for details to start using hte remedy monitor adapter.

     

    https://communities.bmc.com/communities/message/204567#204567

     

    https://communities.bmc.com/communities/message/241317#241317

     

    regards

     

    Ali

  • 2. Re: Remedy Monitor Adapter
    Kalyan Halder

    Hi Ashok,

     

     

    1.you need to be worry about the new event(alert) generated or not.Remedy monitor adapter will take care of that.It will pool new alerts from remedy alert queue on mentioned time duration in Monitor adapter configuration.and data will store in a context item called "inputevent" which containers request id of the new quest with alert text.

     

    2.you have to create a rule to capture the valid events and execute some process on the basis of that.Suppose you matched the the alert text with some text("New ticket created").then you need to fetch required data from the remedy Form using request ID or if you are passing those data as a Alert text with comma separated or space separated then you have to extract those value from alert text and map those value to particular input of workflow which you want to execute.

     

    3.Yes you need to create a rule to run a process or workflow on new alert creation.

    Ex.

    Suppose in inputevent Remedy monitor fetch alert like:

     

    <alert-message alert-id=" 000000000007410">

         <server-name>server1</server-name>

         <form-name/>

         <object-id/>

         <source>Sharon</source>

         <timestamp> 1126541703</timestamp>

         <priority>1</priority>

         <text>New ticket created</text>

    </alert-message>

     

    In new rule put "//text/text()" in Source field (nothing but Xpath expression to extract data from XML)

    In value filed put "New ticket created" as string.

    In process tab mention process name which will be execute on valid match.

     

    If the text filed of alert data is matched with value field of rule then the corresponding process will execute.

    Note: Rule will automatically interpret inputevent as input.

     

     

    Regards,

    Kalyan Halder

  • 3. Re: Remedy Monitor Adapter
    K.Ashok kumar Reddy

    Hi Kalyan,

     

    This is simply superb!!!!

     

    Thanks alot for your time and help.

     

    This is really helpful for me to implement in my workflow.

     

    Will keep you posted after the implementation.

     

    You Rock!!!!

     

    Thanks,

    Ashok

  • 4. Re: Remedy Monitor Adapter
    K.Ashok kumar Reddy

    Hi,

     

     

    For example

    I have a form with 2 fields that is First name and Last Name

     

    I have created a Filter with Run if qualification as 

     

    ('First Name' != $NULL$) AND ('Last Name' != $NULL$)

     

    User :orchestrationuser

     

    Text: $First Name$ +" "+ $Last Name$

     

    i have taken the XML input as

     

    <alert-message alert-id=" 000000000007410">

         <server-name>ITSMServer</server-name>

         <form-name>Test for Remedy Monitor</form-name>

         <object-id/>

         <source>orchestrationuser</source>

         <timestamp> 1126541703</timestamp>

         <priority>1</priority>

         <text>$First Name$ +" "+ $Last Name$</text>

    </alert-message>

     

    Configured the rule as

    //text/text()

     

    which gives the result as "<result>$First Name$ +" "+ $Last Name$</result>"

     

     

    The moment i submit the form the Alert should be generated normally.

     

    From where i can see the input event(please provide the location)

     

    Next question is, if assumed the alert got generated how can i map the values of first name and last name to the AO workflow?Do i need to create a filter for this?

     

     

     

    Can you be specific on this please?

     

    2.you have to create a rule to capture the valid events and execute some process on the basis of that.Suppose you matched the the alert text with some text("New ticket created").then you need to fetch required data from the remedy Form using request ID or if you are passing those data as a Alert text with comma separated or space separated then you have to extract those value from alert text and map those value to particular input of workflow which you want to execute.

     

    How to fetch required data from remedy using request ID?

     

    Thanks in advance,

    Ashok

  • 5. Re: Remedy Monitor Adapter
    Kalyan Halder

    Hi Ashok,

     

     

    From where i can see the input event(please provide the location)

     

    First of all inputevent is a context item.the only way to check the value is to create a new process and put inputevent in loging.u will see the content of that ontext item in log.

     

    Next question is, if assumed the alert got generated how can i map the values of first name and last name to the AO workflow?Do i need to create a filter for this?

     

    so now u have the value of text node,suppose the value is "Kalyan Halder"(separated via " " Space).Take the text node value in a context item and do the basic transformation.

    To get First name :  Basic transformation  ---> select string from function  --> Substring Before " "

    To get Last name :  Basic transformation  ---> select string from function  --> Substring After " "

     

     

    How to fetch required data from remedy using request ID?

     

    alert id in inputevent is your Request id.so, u can use that id to retrieve data from remedy server.

     

     

     

    Regards,

    Kalyan Halder

  • 6. Re: Remedy Monitor Adapter
    vidya jambu

    Hi Kalyan,

     

    The remedy alerts are fetched by the Remedy monitor adapter in AO and then it looks for a Rule to call the required process. The inputevent is the input to the process where you can perform the required business case based on the alert.

     

    Regarding  how to fetch the required info you can either put the info in the alert text or you can send the request id of the record in the alert and then you can use :AMP-AD-BMC-Remedy-ARS:Find Items process to query required info using the request id.

  • 7. Re: Remedy Monitor Adapter
    K.Ashok kumar Reddy

    Hi,

     

    Now the alerts are getting generated but i am not able to push the values to AO process.

     

    Alert Message:

     

    <alert-message alert-id="000000000001155">

      <server-name>10.211.204.246</server-name>

      <form-name>Test For Remedy Monitor</form-name>

      <object-id>000000000000023</object-id>

      <source>AR</source>

      <timestamp>1346326164</timestamp>

      <priority>1</priority>

      <text>Pavan" "Kumar +"Process=YES"</text>

    </alert-message>

     

     

    I want to pass first name and last name (Pavan, Kumar) to the AO process.

     

    I have created the rule as   substring-after(., "+") which gives me the out put as <result>"Process=YES"</result>

     

    Then in the value field of the rule i have given as "Process=YES"

     

    and selected the process as :SI_Integration:Test SI

     

     

    I have created a context item on the start process and named it as InputEvent.

     

    When i submitted the form the alert is getting generated but the AO process is not getting triggered.

     

     

    I have checked the process logs but nothing is comming up.

     

    30 Aug 2012 17:21:04,301 [Current Time=Thu Aug 30 17:21:04 IST 2012] [Process Name=:SI_Integration:rules] [Root Job Id=48e7e422b655836e:7bbbf12e:13874fc17aa:-7fea1-1346327464298] [Job Id=48e7e422b655836e:7bbbf12e:13874fc17aa:-7fea1-1346327464298]

    The process terminated in the completed state. The process started at 30 Aug 2012 17:21:04,300, terminated at 30 Aug 2012 17:21:04,300, and the execution took 0 milliseconds.

     

     

    How the Alert Response(XML) will be mapped to input event?

     

    if this done automatically then where can i see thhis inputs?

     

     

    Can any one tell me step by step to achive the above task?

     

     

    Thanks,

    Ashok

  • 8. Re: Remedy Monitor Adapter
    vidya jambu

    Can you log the input event and find out if your rule is triggering the right process

  • 9. Re: Remedy Monitor Adapter
    reddy.sn1986@gmail.com

    Ashok

       Check whether remedy monitor adapter is working or not,if not check configuration in Grid.

    if both are fine,check in Grid log for input event.

  • 10. Re: Remedy Monitor Adapter
    Ranganath Samudrala

    Your rule should be a little bit more discriminatory.

     

    So, you should have the

     

    Source:

     

    boolean(//alert-message) and contains(//text/text(), '+')

     

    Comparator:

     

    =

     

    Value:

     

    'true'

     

     

    Set the input parameter to your workflow as "inputevent". Now you should get the entire <alert-message /> XML in your workflow.

     

    HTH

    Ranga

  • 11. Re: Remedy Monitor Adapter
    Ranganath Samudrala

    Oh- by the way, rules cannot be tested in Dev studio. You should activate the module in grid.

     

    Ranga

  • 12. Re: Remedy Monitor Adapter
    K.Ashok kumar Reddy

    i have uploaded the latest module and

    tested but the xml is not going as input

    event.


    Sep 2012 07:44:33,623 DEBUG

    RemedyMonitorAdapter :

    RemedyMonitorAdapter: Remedy Alert:

    <alert-message alert-id="000000000012776">
      <server-name>172.28.11.60</server-name>
      <form-name>WOI:WorkOrder</form-name>
      <object-id>WO0000000000639</object-id>
      <source>AR</source>
      <timestamp>1346766213</timestamp>
      <priority>1</priority>
      <text>CreateIPWO | WO0000000000840 | LAMP

    Stack (3 on 3) | 3</text>
    </alert-message>


    the alert is getting generated in the above

    format but the AO process is noit getting

    generated.

    I have configured the rule as

     

     

    string(normalize-space(substring-before(string(//text), "|")))

    and the value as CreateIPWO if this condition matches then it has to trigger AO workflow(SI_INTEGRATION

     


    what would be the rule that i need to set.

    is the rule which i configured is right?


    when checked in the process log i can see

    that job got triggered but nothing is

    showing as output.


    process log:
    ==============
    04 Sep 2012 07:44:33,623 [Current Time=Tue

    Sep 04 07:44:33 CST 2012] [Process

    Name=:testsi:rules] [Root Job

    Id=fd3c9e80c77db996:6a29b01d:13977cfc91f:-

    7ff32-1346766273623] [Job

    Id=fd3c9e80c77db996:6a29b01d:13977cfc91f:-

    7ff32-1346766273623]
    The process terminated in the completed

    state.


    i am not getting the desired result.

    why the input is not comming from alert to

    AO?

    Please help us on this.


    Regards,
    Ashok

  • 13. Re: Remedy Monitor Adapter
    K.Ashok kumar Reddy

    Also please do let me know if there are any out of the box workflows to

  • 14. Re: Remedy Monitor Adapter
    K.Ashok kumar Reddy

    also please do let me know if there are any out of the box workflows to create a new incident using AO.

1 2 Previous Next