Ad Widget

Collapse

how to change snmp timeout in zabbix poller

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xiaoquwl
    Junior Member
    • Sep 2010
    • 7

    #1

    how to change snmp timeout in zabbix poller

    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
    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]
    or
    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
    anybody can help me?
    thanks a lot
    Last edited by xiaoquwl; 17-08-2011, 04:41.
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    Maybe it's not so actual, but still FYI - https://support.zabbix.com/browse/ZBX-4393

    Comment

    Working...