Menu

#1136 New Actions type: to execute an arbitrary script

Documentation
accepted
nobody
Core/OQL
Medium
2.2.0-beta
enhancement
2019-05-22
2015-08-27
No

As stated in docs:
"In the current version of iTop, the only available kind of action consist in sending an email."

Enhancement request:
"Actions can execute an arbitrary scripts on the server's filesystem." (The particular script location and its attributes can be restricted if required of course.) The objects' parameters related to the action/trigger (such us Ticket attributes) should be passed to the script somehow.

Our reasoning:
To deploy iTOP we will have to be able to implement interconnection between our monitoring solution and iTOP, as well as between several of our customers' troubleticket tools and our future iTOP. And we will have to be able to transfer updates in iTOP into other other applications. Executing arbitrary script is the most general way how to do it.

Discussion

  • Romain Quetiez

    Romain Quetiez - 2016-06-09
    • status: new --> to-be-reviewed
     
  • Erwan Taloc

    Erwan Taloc - 2016-06-09
    • status: to-be-reviewed --> accepted
    • Milestone: Unassigned --> Documentation
     
  • Erwan Taloc

    Erwan Taloc - 2016-06-09

    No we won't implement generic action for security reasons
    We need to write a tutorial about how to create a custom action in iTop

     
  • Martin Kincel

    Martin Kincel - 2017-03-07

    Well, what we'd basically need is to execute API calls to other tools (e.g. when the ticket is closed). Does the "custom action" cover that?

    Btw, which security reasons are you referring to?

     
  • Gary T. Giesen

    Gary T. Giesen - 2019-05-22

    I'm also lookign for this. Being able to call an arbitrary script and pass it values (either through environment variables, command line arguments, or stdin) is the most flexible way to enable integration with other systems. Is there any timeline on this (or some other alternative?)

    Currently the only alternative is to send emails to a script that parses the emails and makes the appropropriate API calls to the system you're integrating with, which is really ugly.

     

    Last edit: Gary T. Giesen 2019-05-22
  • Guillaume Lajarige

    Hi Gary,

    Like Erwan said, you can write an extension with your own action class, then use it in the existing triggers. There are a few extensions out there doing so (notifications to slack, telegram or other actions), search the discussion section, I reply with examples a few days ago.

     

Log in to post a comment.

MongoDB Logo MongoDB