Ad Widget

Collapse

Zabbix 1.6.6 and Clickatell

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blinker
    Junior Member
    • Nov 2009
    • 5

    #1

    Zabbix 1.6.6 and Clickatell

    Hi,

    I have a zabbix server running and now want to add sms. We use a clickatell account and we would like to add this to zabbix 1.6.6.. For server we use Ubuntu server. Is there some one who has a HOWTO install a clickatell with Zabbix

    TIA
  • Blinker
    Junior Member
    • Nov 2009
    • 5

    #2
    I have found this http://www.zabbix.com/wiki/howto/config/alerts/smsapi?s[]=clickatell

    And did what was described there. You will need to know I am a newbie to linux.

    when i run the script i recive this error

    -bash: /etc/zabbix/alert.d/smsclickatell: /usr/share/php: bad interpreter: Permission denied

    I checkt the rights on the smsclickatell file

    -rwxr-xr-x 1 root zabbix 817 2009-11-12 21:31 smsclickatell

    What I'm I doning wrong or what did I miss?

    Comment

    • Blinker
      Junior Member
      • Nov 2009
      • 5

      #3
      Changed #!/usr/local/bin/php to #!/usr/bin/php

      Now I can execute the script...but I don recieve an sms

      This is the script:

      #!/usr/bin/php
      <?php
      /*****************************************
      *smsclickatell
      *
      * A simple script to send an SMS via
      * www.clickatell.com.
      *
      *
      *****************************************/

      // Set the following three values:

      $apiid="111111";
      $user="userid";
      $password="password";


      // Do not change anything beneath this line:

      if($_SERVER["argc"]<3){
      die("Usage: ".$_SERVER["argv"][0]." recipientmobilenumber message\n");
      }

      $apiargs=array();
      $apiargs["api_id"]=$apiid;
      $apiargs["user"]=$user;
      $apiargs["password"]=$password;
      $apiargs["to"]=$_SERVER["argv"][1];
      $apiargs["text"]=$_SERVER["argv"][3];
      $apiargs["from"]="Zabbix";
      $apiargs["req_feat"]=32;

      $url="http://api.clickatell.com/http/sendmsg?";
      foreach($apiargs as $k=>$v)$url.="$k=".urlencode($v)."&";

      @file_get_contents($url);

      ?>

      Is there anybody outhere who could help me please

      Regards
      Last edited by Blinker; 23-11-2009, 21:34.

      Comment

      • Blinker
        Junior Member
        • Nov 2009
        • 5

        #4
        I still don't have the clickatell script working

        anybody who could help me?

        Please

        TIA

        Comment

        • alan.oceallaigh
          Junior Member
          • Oct 2009
          • 11

          #5
          I'm using the Clickatell SMTP API here in an action, works very well. Just ensure that the SMTP relay you use has DNS and reverse DNS entries or Clickatell may discard the mails.

          Alan.

          Comment

          • Blinker
            Junior Member
            • Nov 2009
            • 5

            #6
            I have no troubel sending email. I just don't know how to get this script working.

            Is there a way to check if the script works okay Is there a log file I can check? Or is there a way to see what the output is?

            TIA

            Comment

            • eebit
              Junior Member
              • Sep 2009
              • 2

              #7
              Blinker, did you manage to get this working?

              I've verified that the authentication details are correct, and netstat shows the connection on :80 being made to clickatell's api server. Nothing shows in clickatell's logs.

              Does anyone know what needs to be done?

              Thanks,

              Comment

              • eebit
                Junior Member
                • Sep 2009
                • 2

                #8
                Sorry to bump. Anyone successfully configured this?

                Comment

                Working...