[rt-users] Execute scripts -

Matt Wells matt.wells at mosaic451.com
Thu Apr 16 15:55:01 EDT 2015


To send out the alerts at 5 hours of no updates you need
'RT::Condition::UntouchedInBusinessHours'

The Cron Job
#########################
./rt-crontool --search RT::Search::ActiveTicketsInQueue
--search-arg Example_queue --condition
RT::Condition::UntouchedInBusinessHours --condition-arg 1 --action
RT::Action::NotifyGroup --action-arg "Example_Group" --transaction first
--template "Update_your_tickets"

Break Down
#########################
bin/rt-crontool # Cron tool

# Search in the Example_queue queue
--search RT::Search::ActiveTicketsInQueue --search-arg Example_queue

# Search for anything that hasn't been updated for 1 hour / change to any
number you need
--condition RT::Condition::UntouchedInBusinessHours --condition-arg 1

# Blast out some emails to people in this group
--action RT::Action::NotifyGroup --action-arg "Example_Group"

# Use this template for the email alert
 --transaction first --template "Update_your_tickets"

On Thu, Apr 16, 2015 at 12:17 PM, Jonathan Murray <jmurray at whoi.edu> wrote:

> How did you set up your cron jobs to alert your users if a ticket has no
> owner for 5 hours?
> I need to set up the same thing.
>
> Thank you, Jonathan
>
>
> On 04/16/2015 02:07 PM, Matt Wells wrote:
>
>> I'm setting up my cron jobs to alert my users of certain ticket
>> criteria.  If a ticket has no owner for 5 hours I send an alert.
>> So far it works great, sending notifications via email.  However I want
>> to add something other than email.  We're using pushbullet for Nagios
>> alerts and I'd like to do the same here.
>> Has anyone done anything for this? I know that pushover has a mail
>> gateway however PushBullet has stated they have no such intentions.
>>
>> I've been looking around for ways to do this but so far had little
>> success.
>> From bash I just -
>> curl --header 'Authorization: Bearer 1234567890987654321' -X POST
>> https://api.pushbullet.com/v2/pushes --header 'Content-Type:
>> application/json' --data-binary '{"type": "note", "title": "Note Title",
>> "body": "Note Body"}'
>>
>>
>


-- 
Matt Wells
Chief Systems Architect
RHCVA, RHCA #110-000-353
(702) 808-0424
matt.wells at mosaic451.com
 Las Vegas | Phoenix | Portland Mosaic451.com
CONFIDENTIALITY NOTICE: This transmittal is a confidential communication or
may otherwise be privileged. If you are not intended recipient, you are
hereby notified that you have received this transmittal in error and that
any review, dissemination, distribution or copying of this transmittal is
strictly prohibited. If you have received this communication in error,
please notify this office, and immediately delete this message and all its
attachments, if any.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150416/b60b32c1/attachment.htm>


More information about the rt-users mailing list