Kayako logo
Feature Requests Have a feature request for SupportSuite, eSupport and LiveResponse? Post in here.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
ppafford Offline
Member
 
Posts: 58
Join Date: Jan 2008
Rule for forcing a custom ticket id - 15-04-2008, 07:27 PM

I have a lot of cron jobs that monitor systems for example: disk space.

If the disk space reaches over a limit raise a ticket in Kayako.

I would like the ability to force a ticket Id so it will create or reopen a ticket. this would allow me to keep track of certain issues that I would like to see the history on.

Thanks,
Phill Pafford
   
Reply With Quote
  (#2) Old
jnet Offline
Member
 
Posts: 570
Join Date: Mar 2008
15-04-2008, 07:31 PM

first of all please can you do me a favour how can I make a cront job
to check the hosting users disk limit and automatically open a ticket?

Thanks

+1 I think nice feature
   
Reply With Quote
  (#3) Old
ppafford Offline
Member
 
Posts: 58
Join Date: Jan 2008
15-04-2008, 07:58 PM

The attached is a perl script, save it with the .pl extension name.

I have only tested this on a Linux box, so Windows users might have some issues. Would be nice if any Windows users got it running and posted results + how they did it.

HOW TO SET UP THE SCRIPT:

1- Copy this code into a file on the Linux box
2- chmod 755 the file
3- open a cron file with this command: crontab -e
(You don't need to be root but make sure you can run cron jobs)
* cron - Wikipedia, the free encyclopedia if you need help with the cron timing
4- enter in the cron something like this
## Used to check the disk space and send an email to support if over 90%
0 1 * * * perl /path/to/checkDiskSpace.pl /

if you need to configure more than 1 disk then pass the disk location as a parameter.

EXAMPLE:
0 1 * * * perl /path/to/checkDiskSpace.pl / (Root Location)
0 1 * * * perl /path/to/checkDiskSpace.pl /DiskName (Second Disk)

5- Save the crontab file with this command :wq

If you need to edit the cron file again or would like to test with more times just use the crontab -e command again.
Attached Files
File Type: txt checkDiskSpace_and_rasieATicket.txt (4.5 KB, 2 views)
   
Reply With Quote
Reply

Tags
custom, forcing, rule, ticket

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail parser -> Rules -> Rule to attach custom field group to ticket automatically Jamie Edwards Will Implement (V4) 0 18-08-2007 05:45 PM
New Build: 3.10.02 STABLE Ryan Lederman News and Announcements 0 05-03-2007 09:53 PM
Kayako SupportSuite v3.04.10 Stable Build Varun Shoor News and Announcements 2 06-10-2006 10:41 PM
Merging Custom Fields in ViewTicket of Staff Mick SupportSuite, eSupport and LiveResponse 0 21-09-2006 05:48 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46