I recently wrote a notification script for Centreon / Nagios to create and update tickets in OTRS. The ticket details and OTRS connection settings are all defined on the command-line. The GenericTicketConnector.yml must first be installed in OTRS, and a user (aka “Agent”) created for the script. I used perl’s taint mode, so had to hard-code the various log file locations ($logfile, $csvfile, and $dbfile). The Log::Handler module allows the script to output and log different amounts of activity detail, and the DBD::SQLite module is used to keep a local database of the Ticket ID (from OTRS) and the Problem ID (from Centreon / Nagios) associations — so the OTRS ticket can be updated with follow-up notifications from Centreon / Nagios for the same issue.
Surnia Ulula
UNIX Ideas for SysAdmins
- Application
- OTRS (1)
Create and Update OTRS Tickets from the Command-Line
page 1 of 1
Freelance UNIX SysAdmin
Looking for a Sr UNIX Systems Administrator specializing in Systems Integration? I may be available for freelance or contract work, either remotely or on-site. You can contact me by email at jsm@surniaulula.com to discuss solutions specific to your needs.
- Location : Montreal QC, Canada
- Availability : 4-8 hrs / week freelance
Post Categories
Post Tags
caching
xmp
xml
httpd
bandwidth
wordpress
shortcode
memory
password
rdf
rewrite
filepath
url
script
replace
speed
bind
function
complete
apc
performance
bash
content delivery network
php
process
nextgen
mac os x
ssh
sqlite
javascript
image
cdn
mpm
php.ini
maxclients
optimize
perl
prefork
serverlimit
apache
apache httpd
adobe
opcode
autocomplete
cache
Wordpress Plugins
Google Code Projects
- check-httpd-limits Check Apache Httpd Prefork or Worker Limits
- otrs-ticket Create and Update OTRS Tickets from the Command-Line
My Other Websites
- The Road to Myself A Travel Journal of Reflections and Photographs
- Underwater Focus Photography by Jean-Sebastien Morisset
Located in Montreal QC, Canada



