Ad Widget

Collapse

capture return value of script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • macscissor
    Junior Member
    • Oct 2013
    • 1

    #1

    capture return value of script

    Hello!

    Recently I installed zabbix-server 2.0.9 with ssh-checks enabled on my Debian Wheezy server. I configured an item via ssh-agent which executes a script (just a wall message for testing purposes). This works without any Problems.
    My question is: Can I capture the return or exit value of the script and configure a trigger for it? I added "exit 0" to my script and set up a trigger, but while the wall message is being sent, the trigger doesnt seem to react.

    Thanks in advance!
Working...