hi all,
I want to change the snmp polling timeout value, how can i do that?
I did that like below, i change the source code by add one line "session.timeout = 4",
could that be ok?
or i just change the value of "# Timeout=3" to "Timeout=4" in the zabbix_server.conf file
or
anybody can help me?
thanks a lot
I want to change the snmp polling timeout value, how can i do that?
I did that like below, i change the source code by add one line "session.timeout = 4",
could that be ok?
or i just change the value of "# Timeout=3" to "Timeout=4" in the zabbix_server.conf file
Code:
static struct snmp_session *snmp_open_session(DC_ITEM *item, char *err)
{
const char *__function_name = "snmp_open_session";
struct snmp_session session, *ss = NULL;
char addr[128], *conn;
#ifdef HAVE_IPV6
int family;
#endif /* HAVE_IPV6 */
zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __function_name);
snmp_sess_init(&session);
[COLOR="red"]session.timeout = 4 [/COLOR]
Code:
### Option: Timeout # Specifies how long we wait for agent, SNMP device or external check (in seconds). # # Mandatory: no # Range: 1-30 # Default: #Timeout=3 Timeout=4
thanks a lot
Comment