RT::Extension::Nagios

Hi folks,

I’m trying to get RT::Extension::Nagios to work properly with my RT installation. I’m running RT-3.8.8 on Centos 5.5 and all other functions are working as expected.

To setup this extension, I’ve created a new queue named Nagios and have notifications from Nagios sent to that queue’s email address. Tickets are created, but are not merged or auto-closed on RECOVERY notification. I have added the following to my RT_SiteConfig.pm:

Set($NagiosMergeTickets , 1);
Set(@Plugins, qw(RT::Extension::MobileUI), qw(RT::Extension::Gravatar), qw(RT::Extension::Nagios));

Am I missing something simple? Does anyone else have this plugin working?

Thanks!

Josh


Joshua Fiske '03, '04
Manager of User Services / Security Engineer
Clarkson University, Office of Information Technology
(315) 268-6722 – Fax: (315) 268-6570

Hi folks,

I’m trying to get RT::Extension::Nagios to work properly with my RT installation. I’m running
RT-3.8.8 on Centos 5.5 and all other functions are working as expected.

To setup this extension, I’ve created a new queue named Nagios and have notifications from
Nagios sent to that queue’s email address. Tickets are created, but are not merged or
auto-closed on RECOVERY notification. I have added the following to my RT_SiteConfig.pm:

Set($NagiosMergeTickets , 1);

Set(@Plugins, qw(RT::Extension::MobileUI), qw(RT::Extension::Gravatar),
qw(RT::Extension::Nagios));

Am I missing something simple? Does anyone else have this plugin working?

Ensure that the scrip that this extension sets up (ie. that you ran
make initdb)

Check perldoc lib/RT/Extension/Nagios.pm and ensure that your ticket
subjects match the regular expression that the module is using

And what do your logs say?

-kevin

Hi all,
I’m trying to get RT::Extension::Nagios to work but I’m stuck and I
can’t totally understand why as there’s nothing in the logs.

My RT_SiteConfig.pm looks like this in the relevant bits:

Set( @Plugins, qw(RT::Authen::ExternalAuth RT::Extension::LDAPImport
RT::Extension::Nagios));
Set($NagiosSearchAllQueues, 0); # true
Set($NagiosMergeTickets, 1); # merged to the newest ticket.

As far as I understand this should be enough. Now, the regexp that is
matched against the subject is
(PROBLEM|RECOVERY|ACKNOWLEDGEMENT)\s+(Service|Host) Alert:
([^/]+)/?(.*)\s+is\s+(\w+)

and as far as I can understand the match is made only over the subject
line (i.e. PROBLEM of a given host/service is matched with RECOVERY or
ACKNOWLEDGEMENT of the same host/service).

I’ve tried issuing two e-mails with subjects
"PROBLEM Service Alert: sambaserver/sambaserver_root is WARNING"
“PROBLEM Service Alert: sambaserver/sambaserver_root is OK”

but no automatic closure/merge happened. As I said, there’s no mention
in the logs. How can I understand what’s going on?

Thanks,
Giuseppe

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George’s, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583

Hi all,
I’m trying to get RT::Extension::Nagios to work but I’m stuck and I
can’t totally understand why as there’s nothing in the logs.

My RT_SiteConfig.pm looks like this in the relevant bits:

Set( @Plugins, qw(RT::Authen::ExternalAuth RT::Extension::LDAPImport
RT::Extension::Nagios));
Set($NagiosSearchAllQueues, 0); # true
Set($NagiosMergeTickets, 1); # merged to the newest ticket.

As far as I understand this should be enough. Now, the regexp that
is matched against the subject is
(PROBLEM|RECOVERY|ACKNOWLEDGEMENT)\s+(Service|Host) Alert:
([^/]+)/?(.*)\s+is\s+(\w+)

and as far as I can understand the match is made only over the
subject line (i.e. PROBLEM of a given host/service is matched with
RECOVERY or ACKNOWLEDGEMENT of the same host/service).

I’ve tried issuing two e-mails with subjects
"PROBLEM Service Alert: sambaserver/sambaserver_root is WARNING"
“PROBLEM Service Alert: sambaserver/sambaserver_root is OK”

but no automatic closure/merge happened. As I said, there’s no
mention in the logs. How can I understand what’s going on?

Did you run make initdb? Do you have the On Create Update Nagios
Tickets scrip? That scrip will log if it matches in the subject.

-kevin

Did you run make initdb? Do you have the On Create Update Nagios
Tickets scrip? That scrip will log if it matches in the subject.

Hi Kevin,
thanks - I haven’t. I can’t find such info in the readme/wiki.
Is there any example anywhere else?

So basically,

  1. There’s no “update nagios” option in the scrip, or such scrip at all,
    so I suppose this is because I didn’t run the make initdb
  2. make initdb in which makefile? (I installed the extension via cpan,
    if that makes any difference).

Thanks,
Giuseppe

Attached Message Part (73 Bytes)

Attached Message Part (196 Bytes)

Did you run make initdb? Do you have the On Create Update Nagios
Tickets scrip? That scrip will log if it matches in the subject.

Hi Kevin,
thanks - I haven’t. I can’t find such info in the readme/wiki.
Is there any example anywhere else?

Step 4 of the README included in the extension covers this.

http://cpansearch.perl.org/src/SUNNAVY/RT-Extension-Nagios-0.06/README

-kevin

Ok - so I assume there’s no way of having this to work when installed
via cpan?

GOn 20/06/11 16:11, Kevin Falcone wrote:

On Mon, Jun 20, 2011 at 03:53:23PM +0100, Giuseppe Sollazzo wrote:

Did you run make initdb? Do you have the On Create Update Nagios
Tickets scrip? That scrip will log if it matches in the subject.

Hi Kevin,
thanks - I haven’t. I can’t find such info in the readme/wiki.
Is there any example anywhere else?
Step 4 of the README included in the extension covers this.

http://cpansearch.perl.org/src/SUNNAVY/RT-Extension-Nagios-0.06/README

-kevin

So basically,

  1. There’s no “update nagios” option in the scrip, or such scrip at
    all, so I suppose this is because I didn’t run the make initdb
  2. make initdb in which makefile? (I installed the extension via
    cpan, if that makes any difference).

Thanks,
Giuseppe


2011 Training: http://bestpractical.com/services/training.html

Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George’s, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz@sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583