Ad Widget

Collapse

External check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jocelyn
    Junior Member
    • Feb 2009
    • 15

    #1

    External check

    Hi,
    I did a little script in shell in order to do an external check. The files only have '1' or '0' stored inside. My script work this way.
    Code:
    result=`cat /etc/zabbix/log/$1`
    echo $result ;
    exit 0;
    But zabbix is slow to do those easy check for large number of host. I know external check is not recommanded but I have no other choice.
    Do you have an idea to solve the problem?
    I'm thinking about putting all the action of the script in a function and call the function with a '&'. Do you think it could solve the problem?

    Thanks in advance.
Working...