Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Create Ticket in RT

Rating
0 votes
Favoured:
0
Hits
95412
Files:
FileDescription
create_ticket.plcreate_ticket.pl
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This script will create a ticket in RT (which is essentially running on a separate server than the one that runs Nagios) when an alarm is acknowledged.
This is a script written in Perl to create a ticket in RT when an alarm is acknowledged in Nagios. There is another shell script from 'benoh' that is available in Nagios Exchange but it has the following limitations.
1. RT should run on the same machine as Nagios
2. All the parameters that are passed on to RT should not have spaces in them.

I found those as limiting factors while trying to implement that script in my Nagios system. So I ended up writing this script in Perl. (Please note that I'm not a Perl expert so this may be not the most efficent way of doing this)

The script create_ticket.pl' is essentially for the networks where you are running Nagios and RT on separate machines. Also now you can pass parameters that have spaces in them. For example you can have spaces in the 'Acknowledgement Comment'.

One draw back that I still see here is that now I'm not getting the RT ticket number back to Nagios.