Ad Widget

Collapse

action debug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rileo8
    Junior Member
    • Feb 2007
    • 27

    #1

    action debug

    Hi,

    how can i debug action firing?
    I have a media type script that shold be executed when triggere became true.
    In the "Action" monitor i can see it and the status is sent but nothing happen from the script...

    Any suggestion?

    Riccardo
  • rileo8
    Junior Member
    • Feb 2007
    • 27

    #2
    I found that i only have to read the zabbix_Server.log file...

    The error is this one :

    [root@ZABBIX ~]# tail -f /tmp/zabbix_server.log | grep SMS_script
    017819:20070511:121727 Executing query:insert into alerts (actionid,triggerid,userid,clock,mediatypeid,sendt o,subject,message,status,retries,maxrepeats,delay) values (25,14104,8,1178878647,5,'SMS_script.sh','subject' ,'message',0,0,0,600)
    017805:20070511:121736 Before execl([/home/zabbix/bin],[SMS_script.sh])
    017875:20070511:121736 Before executing [/home/zabbix/bin/SMS_script.sh]
    017875:20070511:121736 Error executing [/home/zabbix/bin/SMS_script.sh] [Exec format error]

    Comment

    • rileo8
      Junior Member
      • Feb 2007
      • 27

      #3
      Solved..
      i need to put the /bin/bash header at the beginning of the script..

      Comment

      Working...