Bug #956
closed# cannot be used in SNMP configuration
100%
Description
Actual problem is a # character can't be used in any of the SNMP configuration fields. Original post follows.
Running 2.0-BETA4 (i386) built on Thu Oct 14 01:16:12 EDT 2010 FreeBSD 8.1-RELEASE-p1
Oct 15 15:11:44 pfsense snmpd44594: unexpected character 0xa
Oct 15 15:11:44 pfsense snmpd44594: in file /var/etc/snmpd.conf line 25
Oct 15 15:11:44 pfsense snmpd44594: error in config file
Unsurprisingly, "bsnmpd" service always shows "stopped".
Don't know a lot about this config file's syntax, but on line 9, changing
system := 1 # pfSense
to
system := "1" # pfSense
at least allows bsnmpd to start. That fix doesn't make sense to me, but it works anyway. Deleting the comment also seems to do the trick. This might relate to the way bsnmpd parses its config file - if everything after a ":=" is copied verbatim and comments ignored...?
Also available in: Atom