Ad Widget

Collapse

Error at execution of scripts.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bitesnick
    Junior Member
    • Jul 2011
    • 14

    #1

    Error at execution of scripts.

    Good afternoon. I have established and have adjusted ZABBIX 1.8.5 on SuSE Linux Enterprise Server 11 SP1.

    Now at me it is connected more than 100 agents windows and 50 agents linux. Has adjusted notices by mail, in case of occurrence of problems, the notice work, mail is sent, admins receive it and solve problems.

    There was now a necessity for sending SMS of notices. We have concluded the contract with the company which gives to us API for sending of messages. For sending exists simple php a script.

    I have created a script under the name sms.sh the following maintenance
    /usr/bin/php5 /usr/bin/sendsms.php also has added it in the list of scripts ZABBIX, the script is located in a folder /home/zabbix/bin

    However, in case of problem detection, the letter goes, and this script isn't started, in broad gulls zabbix writes, what Error executing [/home/zabbix/bin/sms.sh] [Exec format error] help please, what to me to do???
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    There is most likely an error in the /home/zabbix/bin/sms.sh script.

    [Exec format error] would indicate an error that makes the script un-executable.

    Is there a space or carriage return on line 1?

    You can Google '[Exec format error]' and maybe find a solution.

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    Working...