Re: snmpget timeout when being run from a script

2014-10-21 Thread Bill Fenner
The exec handler is synchronous, so snmpd is stuck waiting for the script to return a value. It can't handle the request from the script while it's waiting like this. If your agent has the DISMAN-EXPRESSION-MIB support compiled in, in theory it can do simple math like this. In practice I've neve

snmpget timeout when being run from a script

2014-10-21 Thread Krzysztof Szarlej
Hi all! I have a strange problem. I want to monitor my Synology NAS Device. I created in snmpd.conf an exec statement for my sample script that has to run one snmpget and multiply the result by 4 to give me the correct value: exec synology_disk_usage /opt/bin/bash /usr/bin/diskusage.sh And the s