Ad Widget

Collapse

SNMP not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #1

    SNMP not working

    Hi

    I have recently installed 2.0.2 I am trying to get the auto discovery of network interfaces going

    I have host configured and I have added several snmp templates ,, disk interf generic and processor.

    But I can't get any snmp information , snmpwalk works, infact i have icinga on the same box and its snmp is working fine.
    what i see in the audit logs is

    items.status: 3 => 0
    items.error: Cannot open snmp session =>

    EDIT:

    did some more testing and it doesn't seem like it is sending out any SNMP requests !

    I turned on tcpdump.
    I also turned on logging

    This is an example

    24190:20120823:145917.791 In substitute_simple_macros() data:'161'
    24190:20120823:145917.791 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
    24190:20120823:145917.791 In DCget_user_macro() macro:'{$SNMP_COMMUNITY}'
    24190:20120823:145917.791 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
    24190:20120823:145917.791 End of DCget_host_macro():SUCCEED
    24190:20120823:145917.791 End of DCget_user_macro()
    24190:20120823:145917.791 End substitute_simple_macros() data:'ybopublic'
    24190:20120823:145917.791 In substitute_key_macros() data:'IF-MIB::ifDescr'
    24190:20120823:145917.791 End of substitute_key_macros():SUCCEED data:'IF-MIB::ifDescr'
    24190:20120823:145917.791 In get_value() key:'ifDescr'
    24190:20120823:145917.792 In get_value_snmp() key:'ifDescr' oid:'IF-MIB::ifDescr'
    24190:20120823:145917.792 In snmp_open_session()
    24190:20120823:145917.792 SNMP [[email protected]:161]
    24190:20120823:145917.793 End of snmp_open_session()
    24190:20120823:145917.793 End of get_value_snmp():NOTSUPPORTED
    24190:20120823:145917.793 Item [bosw1:ifDescr] error: Cannot open snmp session
    24190:20120823:145917.793 End of get_value():NOTSUPPORTED
    Last edited by Alex_SYB; 23-08-2012, 07:20.
  • Alex_SYB
    Senior Member
    • Feb 2012
    • 133

    #2
    This seems to be the source code where the error occurs


    SOCK_STARTUP;

    if (NULL == (ss = snmp_open(&session)))
    {
    SOCK_CLEANUP;

    zbx_snprintf(err, MAX_STRING_LEN, "Cannot open snmp session");
    }

    src/zabbix_server/poller/checks_snmp.c

    Comment

    • Alex_SYB
      Senior Member
      • Feb 2012
      • 133

      #3
      Okay looks like you can't have source address set !

      change my source address for all my connections and guess what seems to be working !

      bug report

      how does one report a bug ?
      Last edited by Alex_SYB; 24-08-2012, 03:16.

      Comment

      Working...