RT and Nagios

Hi,

We have modified rt-crontool to create Nagios alerts. This woks with
nrpe and unlike SendNgiosAlert doesn’t require any additional modules
installation. If you have running Nagios server it can easily pull
relevant stuff from RT. Nagios will send a warning email if:
Tickets are new for more than 24hours
Tickets are open for more than 5days

It will generate a critical email if:
Tickets are new for more than 48hours
Tickets are open for more than 7days.

If the status of a ticket is stalled, then our script will ignore it. It
is our policy to change the ticket status to stalled if a ticket is
required to remain open for more than one week. Since we are a 24x7x360
lab, we decided to include weekends and holidays in the script. If
you’re interested let me know and I can send/post scripts and required
steps. Again, this script is modified version of rt-crontool.

Sample email:

***** Nagios 2.8 *****
Notification Type: PROBLEM
Service: Q-CCN
Host: helpdesk
Address: 172.127.2.12
State: WARNING
Date/Time: Tue Apr 27 14:55:37 PDT 2010
Additional Info:
0 new tickets: 0 24h, 0 48h: 1 open: 1 120h, 0 168h

Cheers,
Hossein Rafighi

_____ _____ _____ _ _ _ _ ____ Hossein Rafighi
|_ || _ \ | || | | || _/ || __|TRIUMF, 4004 Wesbrook Mall
| | | |
| ) | | | | | || || |__ Vancouver BC, Canada, V6T 2A3
| | | _ / | | | _/ || _/ || |Voice: (604) 222-1047
| | | | \ \ | | | || | | || | Fax: (604) 222-1074
|| || _|
_| _/ || |||_| Website: http://www.triumf.ca

Hossein Rafighi wrote:

Hi,

We have modified rt-crontool to create Nagios alerts. This woks with
nrpe and unlike SendNgiosAlert doesn’t require any additional modules
installation. If you have running Nagios server it can easily pull
relevant stuff from RT. Nagios will send a warning email if:
Tickets are new for more than 24hours
Tickets are open for more than 5days

It will generate a critical email if:
Tickets are new for more than 48hours
Tickets are open for more than 7days.

If the status of a ticket is stalled, then our script will ignore it. It
is our policy to change the ticket status to stalled if a ticket is
required to remain open for more than one week. Since we are a 24x7x360
lab, we decided to include weekends and holidays in the script. If
you’re interested let me know and I can send/post scripts and required
steps. Again, this script is modified version of rt-crontool.

I for one am interested. Not that I have a need right now but it is
always interesting to see how people solve these kinds of needs.

Rod

I really do not understand why you would need nagios for this?
We have very much similar kpis which we monitor with a simple perl
script utilising the RT api.
Our script run every hour , update the tickets with a warning comment
if the warning threshold is reached (Admin Ccs receive an email on
comment),and again a critical type comment is submitted if the critical
threshold reached.
We also have a custom field that gets updated on warnings/critical
levels, tickets with these level are highlighted in different color in
the web interface , and on critical a manager maybe cc’ed.
All from within RT , no need for external dependencies such as Nagios.

Regards;
Roy

Roderick A. Anderson wrote:

I really do not understand why you would need nagios for this?

I highly doubt they installed Nagios just for this.

There is always more than one way to skin the … We monitor all our
devices by Nagios and naturally made sense to add RT to it. Not all the
solutions are good for all RT users.

Cheers,
Hossein

Raed El-Hames wrote:

I really do not understand why you would need nagios for this?
We have very much similar kpis which we monitor with a simple perl
script utilising the RT api.
Our script run every hour , update the tickets with a warning comment
if the warning threshold is reached (Admin Ccs receive an email on
comment),and again a critical type comment is submitted if the
critical threshold reached.
We also have a custom field that gets updated on warnings/critical
levels, tickets with these level are highlighted in different color
in the web interface , and on critical a manager maybe cc’ed.
All from within RT , no need for external dependencies such as Nagios.

Regards;
Roy

Roderick A. Anderson wrote:

Hossein Rafighi wrote:

Hi,

We have modified rt-crontool to create Nagios alerts. This woks with
nrpe and unlike SendNgiosAlert doesn’t require any additional
modules installation. If you have running Nagios server it can
easily pull relevant stuff from RT. Nagios will send a warning email
if:
Tickets are new for more than 24hours
Tickets are open for more than 5days

It will generate a critical email if:
Tickets are new for more than 48hours
Tickets are open for more than 7days.

If the status of a ticket is stalled, then our script will ignore
it. It is our policy to change the ticket status to stalled if a
ticket is required to remain open for more than one week. Since we
are a 24x7x360 lab, we decided to include weekends and holidays in
the script. If you’re interested let me know and I can send/post
scripts and required steps. Again, this script is modified version
of rt-crontool.

I for one am interested. Not that I have a need right now but it is
always interesting to see how people solve these kinds of needs.

Rod

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

_____ _____ _____ _ _ _ _ ____ Hossein Rafighi
|_ || _ \ | || | | || _/ || __|TRIUMF, 4004 Wesbrook Mall
| | | |
| ) | | | | | || || |__ Vancouver BC, Canada, V6T 2A3
| | | _ / | | | _/ || _/ || |Voice: (604) 222-1047
| | | | \ \ | | | || | | || | Fax: (604) 222-1074
|| || _|
_| _/ || |||_| Website: http://www.triumf.ca

We’re in the process of rolling out network and machine monitoring here
using Nagios, so I’d be very interested in this, please send the info my way
when you’ve the opportunity. Thanks.On 4/28/10 2:34 PM, “Hossein Rafighi” Hossein.Rafighi@triumf.ca wrote:

Hi,

We have modified rt-crontool to create Nagios alerts. This woks with
nrpe and unlike SendNgiosAlert doesn’t require any additional modules
installation. If you have running Nagios server it can easily pull
relevant stuff from RT. Nagios will send a warning email if:
Tickets are new for more than 24hours
Tickets are open for more than 5days

It will generate a critical email if:
Tickets are new for more than 48hours
Tickets are open for more than 7days.

If the status of a ticket is stalled, then our script will ignore it. It
is our policy to change the ticket status to stalled if a ticket is
required to remain open for more than one week. Since we are a 24x7x360
lab, we decided to include weekends and holidays in the script. If
you’re interested let me know and I can send/post scripts and required
steps. Again, this script is modified version of rt-crontool.

Sample email:

***** Nagios 2.8 *****
Notification Type: PROBLEM
Service: Q-CCN
Host: helpdesk
Address: 172.127.2.12
State: WARNING
Date/Time: Tue Apr 27 14:55:37 PDT 2010
Additional Info:
0 new tickets: 0 24h, 0 48h: 1 open: 1 120h, 0 168h

Cheers,
Hossein Rafighi

Gary L. Greene, Jr.
IT Operations
Minerva Networks, Inc.
Cell: (650) 704-6633
Phone: (408) 240-1239

Few people off the list had made the same request and I sent them the
relevant info. With apologizes for spamming those of you who are not
interested, I am attaching the requested files to this message.

Cheers,
Hossein

Gary Greene wrote:

We’re in the process of rolling out network and machine monitoring here
using Nagios, so I’d be very interested in this, please send the info my way
when you’ve the opportunity. Thanks.

Hi,

We have modified rt-crontool to create Nagios alerts. This woks with
nrpe and unlike SendNgiosAlert doesn’t require any additional modules
installation. If you have running Nagios server it can easily pull
relevant stuff from RT. Nagios will send a warning email if:
Tickets are new for more than 24hours
Tickets are open for more than 5days

It will generate a critical email if:
Tickets are new for more than 48hours
Tickets are open for more than 7days.

If the status of a ticket is stalled, then our script will ignore it. It
is our policy to change the ticket status to stalled if a ticket is
required to remain open for more than one week. Since we are a 24x7x360
lab, we decided to include weekends and holidays in the script. If
you’re interested let me know and I can send/post scripts and required
steps. Again, this script is modified version of rt-crontool.

Sample email:

***** Nagios 2.8 *****
Notification Type: PROBLEM
Service: Q-CCN
Host: helpdesk
Address: 172.127.2.12
State: WARNING
Date/Time: Tue Apr 27 14:55:37 PDT 2010
Additional Info:
0 new tickets: 0 24h, 0 48h: 1 open: 1 120h, 0 168h

Cheers,
Hossein Rafighi

_____ _____ _____ _ _ _ _ ____ Hossein Rafighi
|_ || _ \ | || | | || _/ || __|TRIUMF, 4004 Wesbrook Mall
| | | |
| ) | | | | | || || |__ Vancouver BC, Canada, V6T 2A3
| | | _ / | | | _/ || _/ || |Voice: (604) 222-1047
| | | | \ \ | | | || | | || | Fax: (604) 222-1074
|| || _|
_| _/ || |||_| Website: http://www.triumf.ca

RTandNagios.txt (3.17 KB)

rt-checkticket (6.74 KB)