Ad Widget

Collapse

Get failure on an action in a Script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • augusto.ferronato
    Junior Member
    • Sep 2015
    • 11

    #1

    Get failure on an action in a Script

    Hello,

    I need to know when the script failure the execution.

    Eg:

    I have the script "copy.py". It's copy a file from a directory to another.

    Zabbix execute the script correctly, but for example the source file doesn't exist, and script returns -1

    It's possible the zabbix receive this value, and said the action is failed?

    Thanks
  • pranabpal
    Junior Member
    • Dec 2016
    • 4

    #2
    execution of the script

    How can we executing shell or python script from Zabbix.

    Comment

    • nobodysu
      Member
      • Sep 2016
      • 84

      #3
      Write a log to a file or server - this way you can debug your scripts with ease (or trigger something).

      2pranabpal

      Comment

      Working...