Hi,
I have a problem with cactid and far-away machines on slow lines. The poller seems to be a bit too quick to think a timeout has occurred and then ignores the machine totally. From the shell, snmpget and snmpwalk work fine though, albeit a bit slow.
*** SNMP Error: (x.x.x.x@.1.3.6.1.4.1.2021.11.51.0) Unsuccessuful (2).
SNMP timeout detected, ignoring host 'x.x.x.x'
Is there a way to set the timeout value? Couldn't find one with a simple grep.
Thanks,
J
cactid and snmp timeout
Moderators: Developers, Moderators
From a quick google, the session struct should have 'timeout' and 'retry' fields that you can fill out if you want. Normally they are -1 which is whatever default net-snmp seems fit, I guess.
J
Code: Select all
struct snmp_session {
/*
* Protocol-version independent fields
*/
long version;
int retries; /* Number of retries before timeout. */
long timeout; /* Number of uS until first timeout, then exponential backoff */
I am working on adding an "SNMP timeout" field to Cacti at the moment. I might be missing something, but when I set the timeout to '2000000', it actually takes 12 seconds to timeout a single query. Is there something that I am missing here?
Edit: I think I figured it out. Actual timeout = (retries * timeout).
-Ian
Edit: I think I figured it out. Actual timeout = (retries * timeout).
-Ian
Who is online
Users browsing this forum: No registered users and 1 guest