[solved] SNMP Error is the most common thing ever

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Flamefury
Posts: 5
Joined: Wed Aug 25, 2010 2:20 pm

[solved] SNMP Error is the most common thing ever

Post by Flamefury »

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?
Attachments
techsupport.txt
(15.6 KiB) Downloaded 136 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Error is the most common thing ever

Post by BSOD2600 »

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:
These are separate issues.

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?
Flamefury
Posts: 5
Joined: Wed Aug 25, 2010 2:20 pm

Post by Flamefury »

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...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Start with the basics...

did you install the microsoft snmp agent?
set a community and allowed hosts?
Flamefury
Posts: 5
Joined: Wed Aug 25, 2010 2:20 pm

Post by Flamefury »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests