Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

SNMP not working after reboot - error finding row index in _ifXTable_container_row_restore

After a Reboot, we cannot query our XGS SFOS 20.0.1 with SNMP anymore due to errors with the snmpd service.

Before the reboot it was fine.

snmpd is running. saving the config again via Webadmin does not fix the issue, it restarts with the same errors.

any suggestions what I can do?

tail /log/snmpd.log

2024-09-14 05:20:57Z database handle is uninitialized
2024-09-14 05:20:57Z Initializing database handle
2024-09-14 05:20:57Z database handle is uninitialized
2024-09-14 05:20:57Z Initializing database handle
2024-09-14 05:20:57Z database handle is uninitialized
2024-09-14 05:22:20Z Received TERM or STOP signal...  shutting down...
Initializing database handle
database handle is uninitialized
Initializing database handle
database handle is uninitialized
unable to open file(read_json_file_into_string) with No such file or directory
unable to open file(read_json_file_into_string) with No such file or directory
buffer too small to read octet string (13 < 13)
2024-09-14 05:26:48Z error finding row index in _ifXTable_container_row_restore
2024-09-14 05:26:50Z NET-SNMP version 5.9.3
2024-09-14 05:27:09Z IfIndex of an interface changed. Such interfaces will appear multiple times in IF-MIB.
2024-09-19 11:49:11Z Reconfiguring daemon

2024-09-19 11:49:11Z NET-SNMP version 5.9.3 restarted
2024-09-19 11:49:11Z error finding row index in _ifXTable_container_row_restore
2024-09-19 11:49:11Z duplicate registration: MIB modules ipAddressTable and ipAddressTable (oid .1.3.6.1.2.1.4.34).
2024-09-20 07:30:41Z Reconfiguring daemon

##SNMP Config re-saved via Webadmin##

2024-09-20 07:30:41Z NET-SNMP version 5.9.3 restarted
2024-09-20 07:30:41Z error finding row index in _ifXTable_container_row_restore
2024-09-20 07:30:41Z duplicate registration: MIB modules ipAddressTable and ipAddressTable (oid .1.3.6.1.2.1.4.34).
XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary#

XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary# cat /cfs/system/snmpd.conf
agentAddress udp:161,udp6:161
sysName fwname
syslocation ourcity
sysContact xxx
sysDescr xxx XGS4500
sysObjectID 1.3.6.1.4.1.2604.5
CreateUser 'snmpv3username' SHA256 "xxx" AES "xxx"
rouser 'snmpv3username'
authtrapenable 1
XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary#



Edited TAGs
[edited by: Erick Jan at 8:10 AM (GMT -7) on 20 Sep 2024]
Parents
  • I put CSC in debug and restarted snmpd

    after restart, SNMP was working and our monitoring can query the XGS again.

    XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary# csc custom debug
    XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary# service snmpd:restart -ds nosync
    200 OK

    2024-09-20 07:30:41Z duplicate registration: MIB modules ipAddressTable and ipAddressTable (oid .1.3.6.1.2.1.4.34).
    Initializing database handle
    database handle is uninitialized
    Initializing database handle
    database handle is uninitialized
    2024-09-20 11:19:17Z error finding row index in _ifXTable_container_row_restore
    2024-09-20 11:19:18Z NET-SNMP version 5.9.3
    2024-09-20 11:21:17Z Error expanding HCOutOctets to 64bits in ipSystemStatsTable.ipv4
    2024-09-20 11:21:49Z Initializing database handle
    ###...duplicate events...
    2024-09-20 11:21:49Z database handle is uninitialized
    nvram_eget(): failed with -16
    2024-09-20 11:21:49Z Initializing database handle
    2024-09-20 11:21:49Z database handle is uninitialized
    ###...duplicate events...
    2024-09-20 11:26:51Z Initializing database handle
    2024-09-20 11:26:51Z database handle is uninitialized
    nvram_eget(): failed with -16
    2024-09-20 11:26:51Z Initializing database handle
    ###...duplicate events...
    2024-09-20 11:27:19Z database handle is uninitialized
    nvram_eget(): failed with -16
    nvram_get(): failed with -16
    nvram_get(): failed with -16
    nvram_eget(): failed with -16
    nvram_eget(): failed with -16
    nvram_eget(): failed with -16
    nvram_get(): failed with -16
    nvram_get(): failed with -16
    2024-09-20 11:27:19Z Initializing database handle
    2024-09-20 11:27:19Z database handle is uninitialized
    ###...duplicate events...
    2024-09-20 11:27:20Z Initializing database handle
    2024-09-20 11:27:20Z database handle is uninitialized
    

    XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary# csc custom debug

    I can provide the CSC debug log if required.

Reply
  • I put CSC in debug and restarted snmpd

    after restart, SNMP was working and our monitoring can query the XGS again.

    XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary# csc custom debug
    XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary# service snmpd:restart -ds nosync
    200 OK

    2024-09-20 07:30:41Z duplicate registration: MIB modules ipAddressTable and ipAddressTable (oid .1.3.6.1.2.1.4.34).
    Initializing database handle
    database handle is uninitialized
    Initializing database handle
    database handle is uninitialized
    2024-09-20 11:19:17Z error finding row index in _ifXTable_container_row_restore
    2024-09-20 11:19:18Z NET-SNMP version 5.9.3
    2024-09-20 11:21:17Z Error expanding HCOutOctets to 64bits in ipSystemStatsTable.ipv4
    2024-09-20 11:21:49Z Initializing database handle
    ###...duplicate events...
    2024-09-20 11:21:49Z database handle is uninitialized
    nvram_eget(): failed with -16
    2024-09-20 11:21:49Z Initializing database handle
    2024-09-20 11:21:49Z database handle is uninitialized
    ###...duplicate events...
    2024-09-20 11:26:51Z Initializing database handle
    2024-09-20 11:26:51Z database handle is uninitialized
    nvram_eget(): failed with -16
    2024-09-20 11:26:51Z Initializing database handle
    ###...duplicate events...
    2024-09-20 11:27:19Z database handle is uninitialized
    nvram_eget(): failed with -16
    nvram_get(): failed with -16
    nvram_get(): failed with -16
    nvram_eget(): failed with -16
    nvram_eget(): failed with -16
    nvram_eget(): failed with -16
    nvram_get(): failed with -16
    nvram_get(): failed with -16
    2024-09-20 11:27:19Z Initializing database handle
    2024-09-20 11:27:19Z database handle is uninitialized
    ###...duplicate events...
    2024-09-20 11:27:20Z Initializing database handle
    2024-09-20 11:27:20Z database handle is uninitialized
    

    XGS4500_AM02_SFOS 20.0.1 MR-1-Build342 HA-Primary# csc custom debug

    I can provide the CSC debug log if required.

Children
No Data