Notify_RT

This bash script uses the Request Tracker command line client to create tickets when a problem arises and resolve them when the problem clears. It does not require any configuration in the RT server, and can connect to any RT server that can be accessed over http.

Most distributions have the RT command line client already packaged up.

It’s probably compatible with all Nagios versions and their derivatives, but I only have Nagios v3 to test.

-m sets the script to look for either host variables (rt_host) or service variables (rt_service).
Each “–” option sets an environment variable of that name which are used in the script.

Other Options:
–DEBUGLEVEL <1,2,3> Outputs more information to stderr the higher the number is. Good for command line testing. NOTE: This must be the first “–” option or you will miss some option parsing in the output.
–NAGIOSHOST <string> Sets the nagioshost in [nagioshost:problemid] in the ticket subject. Defaults to the output of the “hostname” command.