snmp error

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

Moderators: Developers, Moderators

elasys
Posts: 2
Joined: Mon Nov 22, 2004 12:18 am
Contact:

snmp error

Post by elasys »

hi everybody
I use cacti-0.8.6b
cactid-0.8.6c
net-snmp-5.1.2-1.win32.exe
active perl 5
mysql
rrdtool
and IIS

but in device page was wrote snmp error under device name
and also all the graph is not generated and the pictures not found message apear
I run all of them in debug mode everything is normal, but there is not any rrd enerated in rra folder but in log file they are in used !!!!!!!
all the permission for rra and log file is correct
also when I run php pooler.exe this messages apear
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)
C:\net-snmp\etc\snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:\net-snmp\etc\snmp/snmp.conf: line 3: Warning: Unknown token:

Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9
plz help me
thanx in advance[/quote]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
elasys
Posts: 2
Joined: Mon Nov 22, 2004 12:18 am
Contact:

please help

Post by elasys »

thanx a lot :)

my problem was solved,
but new problem is that I want to use cacti from another station but just when I try http://localhost/cacti/ on cacti server it replies

and when I try to use http://serverIPaddress/cacti/ on cacti server or another station error 505 (internal server error) occure

what is the reason???? :roll:

thanx in advance
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Not a clue

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

If I had to guess, the problem is with apache and you need to review that there isn't a virtual hosting directives setup.

Other than that, no clue.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Guest

Post by Guest »

I corrected the spelling of "MIBDIRS" and if I open a command prompt (Windows 2003 Web) and do "dir %MIBDIRS%" I see all the MIBs, but I'm still getting the "Cannot find module" errors. If there something I need to do to reload Cacti?

I'm using Net-SNMP 5.2.0-1-rc1.
jogar
Posts: 2
Joined: Fri Jan 07, 2005 9:18 am
Location: Hampton, VA

Post by jogar »

Whoops. Guest==me
pamram
Posts: 3
Joined: Thu Jan 06, 2005 4:23 pm
Location: Miami FL
Contact:

Post by pamram »

Here's your solution:

on the same drive where you installed php, let's say D:\PHP, create a folder called D:\usr\mibs an make sure the IIS user has rights to it. That'll do !
Best regards,

Amram Pena, Issabel ICA, Enterasys ECE Network Security, CCNA, FCSE, MCP
http://www.linkedin.com/in/pamram
US toll-free: 1-844-735-7260 / US DID: 1-305-735-7260
Email: pamram@inss-inc.com
Skype: inss-amram
jogar
Posts: 2
Joined: Fri Jan 07, 2005 9:18 am
Location: Hampton, VA

Post by jogar »

Thanks Pam,
I tried that, no effect--then went back and as a sanity check made the MIBDIRS directory Everyone--Full Control (!!!), but that didn't work either!

Is there a way to get any more verbose results from Cacti for this "Cannot find module (IP-MIB)" stuff??
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Do you have net-snmp installed? If so, goto the Net-SNMP directory and edit the snmp.conf file. There will be a MIBDIRS path in that file. Please insure that the value there is relevant. In addition, you should publish more information, where you see the error, etc.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

2003 server - iis

after install (following instructions and changes to path statements)

I run:
c:\php\php.exe c:\inetpub\cacti\poller.php
in a command promt.
(I've run it at the run command as well but...)

I get the following:

C:\Documents and Settings\Administrator>c:\php\php.exe c:\inetpub\cacti\poller.p
hp
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)
There are no items in your poller cache or polling is disabled. Make sure you have at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'.

my path is:
C:\Documents and Settings\Administrator>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;MIBDIRS=C:\net-snmp\share\snmp\mibs;C:\php\extr
as\mibs;PHPRC=C:\php;C:\mysql\bin;C:\net-snmp\bin


My net-snmp conf file contents are:

mibdirs C:/net-snmp/share/snmp/mibs
persistentDir C:/net-snmp/snmp/persist
tempFilePattern C:/net-snmp/temp/snmpdXXXXXX


Per suggestions above I've put in both directories .. with no luck.

Any suggestions other than moving to Linux? :)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What is your version of PHP? Have you tried the environment variable MIBDIRS?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

path = to the environmental variable yes?
Path just shows you what you have entered.

MIBDIRS = text in my first message
Even tried using net-snmp's directory and php's in the same line seperated by ; Makes no difference.

Perl = Active Perl 5.8.6.811-MSWin32 (for grins)
php = 5.0.3-Win32
net-snmp = 5.2.1-1.win32
rrd = 1.0.49-win32
cacti = cacti-0.8.6c and cactid-0.8.6d
mysql = 4.1.9-win32
IIS = 6.0
2003 server latest patches

I know it's something I'm missing since there are others running on this platform. Guessing permissions of some sort since the netsnmp runs fine.
The install of 2003 is virgin save the MS critical updates so no applications other than the ones listed above (plus virus prot).
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looking more closely, the following is FOOBAR:
C:\Documents and Settings\Administrator>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System;MIBDIRS=C:\net-snmp\share\snmp\mibs;C:\php\extr
as\mibs;PHPRC=C:\php;C:\mysql\bin;C:\net-snmp\bin
You do not place MIBDIRS and PHPRC in the path statement.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
tdl
Posts: 27
Joined: Sat Feb 12, 2005 4:06 am
Location: Long Beach CA

Post by tdl »

I'll take them out .. but the instructions said to put them in :)


Chapter 3. Installing Under Windows
Install PHP
Extract the PHP zip file to c:\ and rename the install directory (ie. 'php5.0.1') to 'php'.

If using PHP 4, move the files in c:\php\dlls to c:\php.

Add the following to your Windows PATH environement variable c:\php. The Windows path can be accessed via the Control Panel at: 'System', 'Advanced', 'Environment'.

*************************************************
Add the following three environment variables to your system using the procedure above: MIBS=ALL, MIBSDIR=c:\php\mibs, and PHPRC=c:\php.
*************************************************
(MIBSDIR CHANGED TO MIBDIRS per forum)

Setting these in the environement variable .. places them in the path.

I'll give anything a shot at this point.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests