Ad Widget

Collapse

PROBLEM WITH Throughput check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gabriele
    Junior Member
    • Mar 2010
    • 7

    #1

    PROBLEM WITH Throughput check

    Hello everyone,
    I have a problem with the control Throughput
    on my zabbix server I set the following control :
    /app/zabbix/script/CheckAs001psb.sh
    The script performs these command lines:
    #!/bin/bash
    snmpwalk -v 1 -c public -Oqv as001psb.domain IF-MIB::ifOutOctets.3 > /app/zabbix/script/tmp/OutAs001psb
    snmpwalk -v 1 -c public -Oqv as001psb.domain IF-MIB::ifInOctets.3 > /app/zabbix/script/tmp/InAs001psb
    let pippo=$(cat /app/zabbix/script/tmp/InAs001psb)+$(cat /app/zabbix/script/tmp/OutAs001psb)
    echo $pippo

    When I run the script I get the following error:
    Timeout: No Response from as001psb.domain
    Timeout: No Response from as001psb.domain
    ./CheckAs001psb.sh: line 4: let: pippo=+: syntax error: operand expected (error token is "+")

    the machine responds to ping

    what is the problem ? help me please
Working...