Ad Widget

Collapse

Alert Send SMS script (PHP)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abovebeyond
    Member
    • Dec 2015
    • 32

    #1

    Alert Send SMS script (PHP)

    Hi there,

    I need help with configuring an external service who send Sms when alert is triggered.

    I have a PHP API code with all the details (username & password & phone number and api address)

    I already configured a media type "script" with the php script path

    what should i do next?

    Thanks
  • abovebeyond
    Member
    • Dec 2015
    • 32

    #2
    while running php myscript.php

    its working ...

    zabbix dont run it, where is the log for this type of error?

    Comment

    • abovebeyond
      Member
      • Dec 2015
      • 32

      #3
      update:

      while trying running manually the script using php its working

      In Zabbix its not working:

      Audit action:
      status: sent
      recipient : /usr/local/share/zabbix/alertscripts/sendsms.php

      Comment

      • hpeti2
        Junior Member
        • Jul 2015
        • 29

        #4
        Set DebugLevel=4 in zabbix_server.conf
        restart zabbix-server service and check /var/log/zabbix/zabbix_server.log file

        Comment

        • abovebeyond
          Member
          • Dec 2015
          • 32

          #5
          it was my mistake

          i created a bash script that calling the php

          Thanks

          Comment

          Working...