Hello,
We have tried to integrate SolarWinds alerts with OTRS ticketing system.
Purpose of the integration is to create a ticket in OTRS for node going DOWN and update the ticket when the node comes UP.
To achieve this, we created an alert for node down events and using an external executable program in the alert action section we are able to auto log a ticket in OTRS. And a reset action is used to update on the same ticket when the node status changes to up using the ticket updation APIs.
The script uses APIs, cURL and Swis-PS in-congestion to achieve this integration.The scripts manages to create and update tickets almost all the time. However, we have noticed certain instances in which the script is unable to create or update tickets.
Below is the response for failed instances.
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
root@localhost to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
We are not a powershell or script experts, just tried our hands at scripting with help of the content available online.
We are attaching the ticket scripts, if anyone could help us with some inputs to make it work seamlessly.