Jump to content

Server Down SMS Ticket Hook

Recommended Posts



Thought this might be useful for some people...


As I host on my own, no staff apart from the datacenter, I need to know if someone has a site / issue right away, server issues are dealt with via SMS too (WHM) but this simple hook might be useful for some people :)


Code for the file "/includes/hooks/send247sms.php"


function send247sms($args)

   // Set the department ID for the server/website critical tickets
   $criticaldept = 7;

   // Set your mobile number
   $adminnumber = "447792707123";

   if($args['deptid'] == $criticaldept) mail($adminnumber."@txtlocal.co.uk", "sender=bdigital", "A server/website critical ticket has been opened."); 

add_hook("TicketOpen", 1,"send247sms", "");


Just create a new department which tickets need to be an existing customer and set up a pipe for somethign like 247tech@domain.com.


Making it work... head toward http://txtlocal.co.uk and create an account. You get 10 free texts to test it and it's only a fiver for 100 which is more than enough for small hosts...


You can configure it to use cURL but for ease of explanation, use email to SMS.


You will NEED to set up the allowed email address to send texts from... this mean add your sites username @ your server if cPanel and using suPHP.


Hope this helps somebody!



Link to comment
Share on other sites

Good idea, we use the same in our Kayako installation. The everlasting problem is though, that a customer can decide if his or her ticket is critical. Even though we don't face any issues, it's a possible problem when your customer base grows.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated