Skip to content
  • There are no suggestions because the search field is empty.

How do I fix "nim-snmpwalk cfg.c 560 ERROR: Invalid file format" errors in the Statseeker log?

2024-07-18 16:04:18 37139 nim-snmpwalk cfg.c 560 ERROR: Invalid file format (/home/statseeker/nim/etc/snmp.cfg): Invalid syntax (2), line 5, after token 2(10) (/usr/home/builder/wk/statseeker_manual/utils/snmp/snmp.c: 1038)

If you have errors like below in the Statseeker Log, they are caused by an invalid line (in this case line 5) in the SNMP Config in the "Network Discovery - Advanced Options section".

2024-07-18 16:04:18 37139 nim-snmpwalk cfg.c 560 ERROR: Invalid file format (/home/statseeker/nim/etc/snmp.cfg): Invalid syntax (2), line 5, after token 2(10) (/usr/home/builder/wk/statseeker_manual/utils/snmp/snmp.c: 1038)

The line can either be removed or you can put a # infront of it.

This config can be accessed by - Admin Tool > Network Discovery - Advanced Options section > SNMP Config.

The file looks something like:

# array 3 0 0
'max_output_files' '500'
'10.30.109.254' '10' '1'
'10.0.48.62' '10' '1'
'<device IP Address>''10''1'

In this case the last line ('<device IP Address>''10''1') is invalid.

After deleting it click the "Save" button.