I've been reading the forums to find a solution as my issue doesn't seem unique in any way. But I read the results and I...can't understand it.
I'm rather ashamed by that.
Anyway, my issue, I get a red 'SNMP error' on the device page. Running poller.php gives me very familiar looking list of errors:
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
In addition, trying snmpwalk also gives me the same list. I set MIBDIRS to C:\php\extras\mibs as instructed in a few sources.
I looked through the readme and followed through as it said, but then I found forum posts that conflict with some of the documentation (environment variables especially...MIBDIRS as oppsoed to MIBSDIR, setting MIBS=ALL or not setting it at all). I've attached the technical support page as a text file to this post.
Now...to get this cleared up, am I supposed to be able to see those missing module files anywhere?
EDIT: Was looking in the wrong directory, all the MIB files were in the net-snmp folder. I thought something was odd when there was nothing in the PHP folder.
Redirecting there didn't help with getting rid the red SNMP error though, and snmpwalk now times out while trying to get something from localhost.
I take it that means something didn't install properly...Although I did use the Windows installer package as opposed to manually doing it myself.
Should I try a re-install or is the issue smaller than I think?
[solved] SNMP Error is the most common thing ever
Moderators: Developers, Moderators
[solved] SNMP Error is the most common thing ever
- Attachments
-
- techsupport.txt
- (15.6 KiB) Downloaded 135 times
Re: SNMP Error is the most common thing ever
These are separate issues.Flamefury wrote:Anyway, my issue, I get a red 'SNMP error' on the device page. Running poller.php gives me very familiar looking list of errors:
1) red snmp error means your snmp agent isn't properly configured or firewall/acl is blocking the traffic.
2) Cannot find module errors aren't really that important, since cacti doesn't heavily rely on MIB files. This is a sign that the MIBDIRS system variable is missing or pointing to the wrong folder that contains the MIB files it wants.
Yes, both php and net-snmp install their own set of MIB files although both should use whatever MIBDIRS is set to (typically C:\PHP\Extras\mibs).
Have you rebooted the server since running the windows installer?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
I have no firewall active on the computer, so it looks like the SNMP agent has not been configured properly. Where do I begin looking for what's wrong?
The module errors has since been rectified, but I have no MIB files in the PHP folder.
I have rebooted the machine since installation. poller.php returns no lines whatsoever. I'm also getting timeouts when trying to snmpwalk localhost. So, SNMP agent does look like the problem...
The module errors has since been rectified, but I have no MIB files in the PHP folder.
I have rebooted the machine since installation. poller.php returns no lines whatsoever. I'm also getting timeouts when trying to snmpwalk localhost. So, SNMP agent does look like the problem...
Start with the basics...
did you install the microsoft snmp agent?
set a community and allowed hosts?
did you install the microsoft snmp agent?
set a community and allowed hosts?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
The machines are windows 7, so I enabled SNMP feature along with WMI SNMP Provider from the control panel.
I have not set a community. Where would I do this?
EDIT: Nevermind, it's in Computer Management under Administrative Tools in the control panel.
In other words, I should be good to go (for this issue at least). Thanks for the help.
I have not set a community. Where would I do this?
EDIT: Nevermind, it's in Computer Management under Administrative Tools in the control panel.
In other words, I should be good to go (for this issue at least). Thanks for the help.
Who is online
Users browsing this forum: No registered users and 2 guests