WARNING:
Although the below contains helpful information, it is sprinkled with a rant as well. Please don't be offended--I am just of the opinion that Ubuntu is horrible and should never be used for anything important or for anything that needs to be done quickly.
[EDIT]
It's worth noting that this problem may present itself in a strange manner. You may notice some `ifAlais` OIDs translated properly while others are returned with ridiculous hex nonsense. Even though it makes absolutely no sense whatsoever, you should probably try the below steps anyway because this is probably what the problem is if you're forced to use Ubuntu (or possibly Debian and other Debian derivatives).
[/EDIT]
CONTENT:
As incredibly ridiculous as this is, I have fixed the issue. I'm actually a bit irritated about all of the hoops I had to jump through, but this was DEFINITELY an SNMP OID translation issue and it was NOT a Cacti issue.
To save everyone else ridiculous stress if you are for some reason forced to do something stupid like use Ubuntu (my company is standardizing on it):
When installing libsnmp, the IETF MIBs are not installed by default because Ubuntu maintainers are butthurt about licensing. Install standard MIBs:
Code: Select all
sudo apt-get install snmp-mibs-downloader
(optional: write to Ubuntu maintainers and tell them to stop being so butthurt and install these by default)
Now, you won't be able to actually do anything by MIB name and you might find that you have ridiculous results returned in hex if you try to get/walk an OID. You need to edit the snmp configuration.
sudo vi /etc/snmp/snmp.conf
# go to bottom of file
[a]
<enter>
mibs +IF-MIB
<escape>
[:wq]
Explanation of previous code block: the 'sudo vi' opens the config file in vi, a text editor (which may or may not be symlinked to vim in Ubuntu...not sure). Anything in squared brackets ( between [ and ] ) is meant to be typed literally. The `a` puts you in 'insert' mode; the `:wq` saves and closes the file. Anything in angled brackets ( between < and > ) is a key that should be pressed on your keyboard. If there's a hash ( # ), you don't type that--it's a comment.
Now you can get/walk OIDs on the command-line if they're in IF-MIB. But...Cacti is still going to show you ridiculous hex nonsense.
Turns out that because Cacti is using PHP and PHP's SNMP stuff is derp, you have to actually restart Apache.
Now everything is golden.
The better solution to all of this? Don't use something that is as horrible as Ubuntu. Ubuntu makes baby Jesus cry. Use Arch. Or BSD. Or CentOS/RHEL/Fedora if you're in love with RH distributions. Something tells me that Debian would suffer from these same issues as they tend to get their feelings hurt by licensing, too.
Of course, if you actually know ahead of time that standard MIBs aren't included in Ubuntu by default and you just download them out of habit because you're used to using a horrible distribution, you won't have to waste hours trying to figure out why Cacti is spitting hex at you because you would have installed the MIBs BEFORE starting httpd (why is it called apache2 in Ubuntu? and why is everything located in weird places?). Or you would've done it prior to some step that required you to restart httpd anyway.