<div dir="ltr"><div>To send out the alerts at 5 hours of no updates you need 'RT::Condition::UntouchedInBusinessHours'<br></div><div><br></div><div>The Cron Job</div><div><div>#########################</div></div><div>./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"<br></div><div><br></div><div>Break Down</div><div>#########################</div><div>bin/rt-crontool # Cron tool</div><div><br></div><div># Search in the Example_queue queue<br></div><div>--search RT::Search::ActiveTicketsInQueue --search-arg Example_queue </div><div><br></div><div># Search for anything that hasn't been updated for 1 hour / change to any number you need<br></div><div>--condition RT::Condition::UntouchedInBusinessHours --condition-arg 1</div><div><br></div><div># Blast out some emails to people in this group<br></div><div>--action RT::Action::NotifyGroup --action-arg "Example_Group" </div><div><br></div><div># Use this template for the email alert<br></div><div> --transaction first --template "Update_your_tickets" <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 12:17 PM, Jonathan Murray <span dir="ltr"><<a href="mailto:jmurray@whoi.edu" target="_blank">jmurray@whoi.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How did you set up your cron jobs to alert your users if a ticket has no owner for 5 hours?<br>
I need to set up the same thing.<br>
<br>
Thank you, Jonathan<div class="HOEnZb"><div class="h5"><br>
<br>
On 04/16/2015 02:07 PM, Matt Wells wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
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.<br>
Has anyone done anything for this? I know that pushover has a mail gateway however PushBullet has stated they have no such intentions.<br>
<br>
I've been looking around for ways to do this but so far had little success.<br>
>From bash I just -<br>
curl --header 'Authorization: Bearer 1234567890987654321' -X POST <a href="https://api.pushbullet.com/v2/pushes" target="_blank">https://api.pushbullet.com/v2/<u></u>pushes</a> --header 'Content-Type: application/json' --data-binary '{"type": "note", "title": "Note Title", "body": "Note Body"}'<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matt Wells<br>Chief Systems Architect<br>RHCVA, RHCA #110-000-353<br>(702) 808-0424<br><a href="mailto:matt.wells@mosaic451.com" target="_blank">matt.wells@mosaic451.com</a><br> Las Vegas | Phoenix | Portland Mosaic451.com <br>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.<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>
</div>