Would anyone be able to give me some guidance on this error? I get this when i try to run and SNMP walk on my firewall.
/etc/snmp/snmp.conf: line 1: Error: Blank line following X token. net-snmp: 1 error(s) in config file(s) MIB search path: /usr/share/httpd/.snmp/mibs:/usr/share/snmp/mibs Cannot find module (ENTITY-MIB): At line 18 in /usr/share/snmp/mibs/PAN-ENTITY-EXT-MIB.my Did not find 'entPhysicalIndex' in module #-1 (/usr/share/snmp/mibs/PAN-ENTITY-EXT-MIB.my) /etc/snmp/snmp.conf: line 1: Error: Blank line following X token. net-snmp: 1 error(s) in config file(s) snmpwalk: Timeout
Hey jbradley419
The first line suggests that there something is misconfigured in your /etc/snmp/snmp.conf file. The first thing I would do is to check the file and look to see if the token is in fact there and if it is check to see if there is any unnecessary spaces. The error is also suggesting that it is missing required MIB's to do the SNMP walk. I'll attach some documentation that should help. Let us know if this fixes the issue.
https://assets.nagios.com/downloads/nagiosxi/docs/Using-The-SNMP-Walk-Wizard.pdf
Thanks,
Sandor G
Hey!, I do not see a token all i see is the letter X in the config file. How do i find/generate the token to add to the config file?
I believe you generally generate a token by editing your snmp settings on the device. Usually it will generate a unique id token when setting it up so thinking about it I don't think that you will need to do this on the XI machine itself. Rereading the error itself its having an issue with the blank line following the x token. Could you attempt to remove that line and see if it no longer gives the error?
There was no blank line. when i remove the X the error goes away. but i am still receiving the below error.
MIB search path: /usr/share/httpd/.snmp/mibs:/usr/share/snmp/mibs Cannot find module (ENTITY-MIB): At line 18 in /usr/share/snmp/mibs/PAN-ENTITY-EXT-MIB.my Did not find 'entPhysicalIndex' in module #-1 (/usr/share/snmp/mibs/PAN-ENTITY-EXT-MIB.my)