RT::Extension::Nagios(3pm) | User Contributed Perl Documentation | RT::Extension::Nagios(3pm) |
RT::Extension::Nagios - Merge and resolve Nagios tickets
Nagios <http://www.nagios.org> is a powerful monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.
This extension allows email alerts generated by Nagios to be aggregated and resolved as it generates them. It does this by examining the standard subject line that Nagios generates; by default, these take the form:
PROBLEM Service Alert: localhost/Root Partition is WARNING
There are 5 useful parts in subject; we call them "type", "category", "host", "problem_type" and "problem_severity". These are parsed from the subject via a regular expression; in the above example, the extension would extract:
type: PROBLEM category: Service host: localhost problem_type: Root Partition problem_severity: WARNING
After the new ticket is created, the following is done:
If you run this twice, you may end up with duplicate data in your database.
If you are upgrading this module, check for upgrading instructions in case changes need to be made to your database.
Plugin('RT::Extension::Nagios');
For RT 4.0, add this line:
Set(@Plugins, qw(RT::Extension::Nagios));
or add "RT::Extension::Nagios" to your existing @Plugins line.
This extension has three configuration settings; setting them should be done in "RT_SiteConfig.pm".
Set( $NagiosSearchAllQueues, 1 );
Setting this configuration parameter to 1 causes the extension to merge all old tickets on the same topic into new tickets as they arrive; as such, the "Created" date will respect the most recent message.
Setting it to "-1" causes the extension to merge new tickets into any existing tickets as they arrive; the "Created" date will respect the oldest message, and the ticket ID will remain constant:
Set( $NagiosMergeTickets, -1 );
Set( $NagiosResolvedStatus, 'recovered' );
Best Practical Solutions, LLC <modules@bestpractical.com>
Based on work by Todd Chapman.
All bugs should be reported via email to
L<bug-RT-Extension-Nagios@rt.cpan.org|mailto:bug-RT-Extension-Nagios@rt.cpan.org>
or via the web at
L<rt.cpan.org|http://rt.cpan.org/Public/Dist/Display.html?Name=RT-Extension-Nagios>.
This software is Copyright (c) 2014 by Best Practical Solutions
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
2021-01-02 | perl v5.32.0 |