Thank you, Morten,
I think that I didn't make it clear, the forward ground mode works, Ipdevpolld -f It stays up, while the daemon mode fails, sometime, it will say core dumped, while other time, it simply exits.
I suspect netsnmp interface cause the problem as I saw from gdb,
9 0x00007ffff7a938bf in insertdict_by_entry (mp=0x2062b00, key='_callback', hash=<optimized out>, ep=<optimized out>, value=<optimized out>) at /usr/src/debug/Python-2.7.5/Objects/dictobject.c:528 #10 0x00007ffff7a95280 in dict_set_item_by_hash_or_entry ( op=op@entry={'STAT_SNMPINASNPARSEERRS': 14, 'SNMPERR_TRANSPORT_NO_CONFIG': -67, 'ASN_OPAQUE_DOUBLE': 121, 'UCD_MSG_FLAG_PDU_TIMEOUT': 4096, 'NETSNMP_DS_TOKEN_ID': 2, 'c_wchar': <_ctypes.PyCSimpleType at remote 0x1b1f9a0>, 'SNMP_CALLBACK_POST_PREMIB_READ_CONFIG': 3, 'SNMP_CALLBACK_APPLICATION': 1, 'ASN_APP_I64': 74, 'SNMPERR_TLS_NO_CERTIFICATE': -69, 'STAT_USM_STATS_START': 3, 'REPORT_usmStatsUnsupportedSecLevels_NUM': 1, 'STAT_SNMPOUTGETRESPONSES': 36, 'find_library': <function at remote 0x1fb7b18>, 'NETSNMP_DS_LIB_CLIENT_ADDR': 14, 'STAT_TLSTM_STATS_START': 47, 'SNMP_ERR_WRONGENCODING': 9, 'SNMP_SEC_PARAM_BUF_SIZE': 256, 'STAT_SNMPOUTPKTS': 10, 'ASN_OPAQUE_U64_MX_BER_LEN': 12, 'ACTION': 2, 'STAT_TLSTM_SNMPTLSTMSESSIONINVALIDCLIENTCERTIFICATES': 53, 'NETSNMP_DS_LIB_MIB_ERRORS': 0, 'STAT_SNMPOUTNOSUCHNAMES': 29, 'SPRINT_MAX_LEN': 2560, 'SNMP_MP_MODEL_SNMPv2p': 256, 'c_int_p': <_ctypes.PyCSimpleType at remote 0x1b1de20>, 'SNMP_MP_MODEL_SNMPv2u': 2, 'util': <module at remote 0x1ab7da8>, 'NETSNMP_DS_LIB_DONT_BREAKDOWN_OIDS':...(truncated), key=<optimized out>, hash=<optimized out>, ep=ep@entry=0x0, value=value@entry=None) at /usr/src/debug/Python-2.7.5/Objects/dictobject.c:774 #11 0x00007ffff7a96234 in PyDict_SetItem ( op=op@entry={'STAT_SNMPINASNPARSEERRS': 14, 'SNMPERR_TRANSPORT_NO_CONFIG': -67, 'ASN_OPAQUE_DOUBLE': 121, 'UCD_MSG_FLAG_PDU_TIMEOUT': 4096, 'NETSNMP_DS_TOKEN_ID': 2, 'c_wchar': <_ctypes.PyCSimpleType at remote 0x1b1f9a0>, 'SNMP_CALLBACK_POST_PREMIB_READ_CONFIG': 3, 'SNMP_CALLBACK_APPLICATION': 1, 'ASN_APP_I64': 74, 'SNMPERR_TLS_NO_CERTIFICATE': -69, 'STAT_USM_STATS_START': 3, 'REPORT_usmStatsUnsupportedSecLevels_NUM': 1, 'STAT_SNMPOUTGETRESPONSES': 36, 'find_library': <function at remote 0x1fb7b18>, 'NETSNMP_DS_LIB_CLIENT_ADDR': 14, 'STAT_TLSTM_STATS_START': 47, 'SNMP_ERR_WRONGENCODING': 9, 'SNMP_SEC_PARAM_BUF_SIZE': 256, 'STAT_SNMPOUTPKTS': 10, 'ASN_OPAQUE_U64_MX_BER_LEN': 12, 'ACTION': 2, 'STAT_TLSTM_SNMPTLSTMSESSIONINVALIDCLIENTCERTIFICATES': 53, 'NETSNMP_DS_LIB_MIB_ERRORS': 0, 'STAT_SNMPOUTNOSUCHNAMES': 29, 'SPRINT_MAX_LEN': 2560, 'SNMP_MP_MODEL_SNMPv2p': 256, 'c_int_p': <_ctypes.PyCSimpleType at remote 0x1b1de20>, 'SNMP_MP_MODEL_SNMPv2u': 2, 'util': <module at remote 0x1ab7da8>, 'NETSNMP_DS_LIB_DONT_BREAKDOWN_OIDS':...(truncated), key=<optimized out>, value=value@entry=None) at /usr/src/debug/Python-2.7.5/Objects/dictobject.c:827 #12 0x00007ffff7a99cd6 in _PyModule_Clear (m=<optimized out>) at /usr/src/debug/Python-2.7.5/Objects/moduleobject.c:125 #13 0x00007ffff7b0694f in PyImport_Cleanup () at /usr/src/debug/Python-2.7.5/Python/import.c:526
Zhi-Wei Lu IET-CR-Network Operations Center University of California, Davis (530) 752-0155
-----Original Message----- From: Morten Brekkevold [mailto:morten.brekkevold@uninett.no] Sent: Monday, September 12, 2016 11:28 PM To: Zhi-Wei Lu zwlu@ucdavis.edu Cc: nav-users@uninett.no Subject: Re: ipdevpolld down
On Mon, 12 Sep 2016 18:20:15 +0000 Zhi-Wei Lu zwlu@ucdavis.edu wrote:
Thank you Morten,
The log file didn't contain much information why the ipdevpolld exits, ...
[snip]
It appears that if I use the forward group mode (-f), ipdevpolld -f
With the -f switch, the daemon would just exit. Is there any debug mode on "ipdevpolld"?
The `-f` switch is to run ipdevpoll in the foreground instead of the background. You will still need to add the `-s` switch if you want output to your terminal and not just to the log file.
You can manipulate log levels of various parts of NAV using the `logging.conf` configuration file. There are some examples of level configuration in that file already, but you can add `nav.ipdevpoll = DEBUG` to debug-log everything ipdevpoll-related (which can be quite a lot of output).