Cactid & MIB's Location under Win32

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Cactid & MIB's Location under Win32

Post by baetes »

Hi at all,
I'm new on cacti.......

I use Cacti 0.8.6f / php5x / cactid under Windows2003Srv.

I've Problems with Cactid

++++++++++++++++++++++++++++

C:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: Version 0.8.6e starting
No log handling enabled - turning on stderr logging
IP-MIB: Module not found
IF-MIB: Module not found
TCP-MIB: Module not found
UDP-MIB: Module not found
HOST-RESOURCES-MIB: Module not found
SNMPv2-MIB: Module not found
RFC1213-MIB: Module not found
SNMPv2-SMI: Module not found
NOTIFICATION-LOG-MIB: Module not found
UCD-SNMP-MIB: Module not found
UCD-DEMO-MIB: Module not found
SNMP-TARGET-MIB: Module not found
NET-SNMP-AGENT-MIB: Module not found
SNMP-VIEW-BASED-ACM-MIB: Module not found
SNMP-COMMUNITY-MIB: Module not found
UCD-DLMOD-MIB: Module not found
SNMP-FRAMEWORK-MIB: Module not found
SNMP-MPD-MIB: Module not found
SNMP-USER-BASED-SM-MIB: Module not found
SNMP-NOTIFICATION-MIB: Module not found
SNMPv2-TM: Module not found
CACTID: Execution Time: 3.2670 s, Threads: 10, Hosts: 6
+++++++++++++++++++++++
Some Idea where the modules / mibs are located ???

thx
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Add the following two environment variables to your system using the procedure above: MIBDIRS=c:\php\mibs, and PHPRC=c:\php.

If you downloaded full php package, then you should have the proper MIB modules.
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

Hi,
thx for answer... I've testetd both pathes C:\PHP\MIBS & C:\PHP\Extras\MIBS (There are xxxx.mib.txt locate).
It doesnt properly works.... :(
Have i load (or rename) this files ?????
There is an .index - file in the mib-directory and syntax looks like :

IP-MIB IP-MIB.txt

If i test the php.exe with poller.php the same error.................
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

So after creating a system wide variable called MIBDIRS and setting it to c:\php\mibs, php is still complaining about them? That doesn't make any sense, unless you lack the mibs in that directory.

Type: php -m and paste the output.
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

Hi,
output from php -m

C:\cactid>C:\php\php.exe -m
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)
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
iconv
libxml
mysql
odbc
pcre
session
SimpleXML
snmp
sockets
SPL
SQLite
standard
tokenizer
wddx
xml
zlib

[Zend Modules]


C:\cactid>

Regards Baetes
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

Hi BSOD2600,
now i've written the Path correctly and it works.............
:oops:

i've follow errors in cacti.log

CACTID: Poller[0] Host[11] DS[13] WARNING: Result from SNMP not valid. Partial Result

Any idea ?
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

Hi,
here Cacti - Log File........

Question:
Must be there any file in ...htdocs\\Cacti\rra ????
Attachments
Cactilog-File
Cactilog-File
cactilog.JPG (135.48 KiB) Viewed 2666 times
---------------------------------------
| Cacti 0.8.6f | Cactid 0.8.6e | MySQL 4.1.13a-nt | Apache 2.0.53| PHP 5.0.4 | RRDtool 1.2.11 | W23 Srv.|
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

I've checked permissions to:

...\htdocs\cacti\rra &
c:\rrdtool

Everyone -> Change.

I doesn't reply any Graphs or files in ....\rra

Thx all for given ideas :wink:
---------------------------------------
| Cacti 0.8.6f | Cactid 0.8.6e | MySQL 4.1.13a-nt | Apache 2.0.53| PHP 5.0.4 | RRDtool 1.2.11 | W23 Srv.|
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Another trick to get rid of mib warnings. Use the environment variable:

MIBS=NONE

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

Post by BSOD2600 »

1) next time you post a log, post the actual text and not a screen shot.

2) If you manually run poller.php, do the rrd files get created? Still sounds like a security issue on the folder/files which is why they're not getting created. The web user have read rights to cmd.exe ?
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

Hi,
i've checked permissions....

...\htdocs\cacti\... &
c:\rrdtool

Everyone -> Change.

If i run C:\php\php-win.exe C:\Apache\Apache2\htdocs\cacti\cmd.php

no files are created to ...\rra :-((

Next Time i'll post a file / no screenshot.........

Thx
---------------------------------------
| Cacti 0.8.6f | Cactid 0.8.6e | MySQL 4.1.13a-nt | Apache 2.0.53| PHP 5.0.4 | RRDtool 1.2.11 | W23 Srv.|
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You know the scheduled task is suppose to be running poller.php. Try running that manually and see what happens.
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

Sorry... Copy&Paste - failure........

My Scheduled Task is:

C:\php\php-win.exe C:\Apache\Apache2\htdocs\cacti\poller.php

No files in ..\cacti\rra....

extract from cacti.log:

08/19/2005 10:20:05 AM - SYSTEM STATS: Time: 5.3424 s, Method: cactid, Processes: 8, Threads: 10, Hosts: 5, Hosts/Process: 1, Data Sources 4, RRDs Processed 2
08/19/2005 10:22:33 AM - CACTID: Poller[0] Host[22] DS[29] SNMP: v1: S030A7027, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.65539, value: 752680639
08/19/2005 10:22:33 AM - CACTID: Poller[0] Host[22] DS[29] SNMP: v1: S030A7027, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.65539, value: 2040353708
08/19/2005 10:22:33 AM - CACTID: Poller[0] Host[20] DS[28] SNMP: v1: s040a6514, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.65539, value: 458611722
08/19/2005 10:22:33 AM - CACTID: Poller[0] Host[20] DS[28] SNMP: v1: s040a6514, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.65539, value: 1132061743
08/19/2005 10:22:33 AM - CACTID: Poller[0] Time: 4.4130 s, Threads: 10, Hosts: 1
08/19/2005 10:22:34 AM - CACTID: Poller[0] Time: 4.6970 s, Threads: 10, Hosts: 2
08/19/2005 10:22:34 AM - CACTID: Poller[0] Time: 4.6460 s, Threads: 10, Hosts: 2
08/19/2005 10:22:34 AM - CACTID: Poller[0] Time: 4.6010 s, Threads: 10, Hosts: 2
08/19/2005 10:22:34 AM - CACTID: Poller[0] Time: 4.8140 s, Threads: 10, Hosts: 2
08/19/2005 10:22:34 AM - SYSTEM STATS: Time: 5.3596 s, Method: cactid, Processes: 8, Threads: 10, Hosts: 5, Hosts/Process: 1, Data Sources 4, RRDs Processed 2

I mean.... some querys results values, but no graphs or files exist and the permission are already OK.

I put out my hairs :evil:
---------------------------------------
| Cacti 0.8.6f | Cactid 0.8.6e | MySQL 4.1.13a-nt | Apache 2.0.53| PHP 5.0.4 | RRDtool 1.2.11 | W23 Srv.|
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

run the following from a command line in DEBUG mode:

"php poller.php"

Run this while in the cacti directory. You should see a bunch of:

CACTI2RRD messages followed by "Ok".

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?
baetes
Posts: 11
Joined: Tue Aug 16, 2005 10:04 am
Location: Cologne, Germany

Post by baetes »

Hi,
if i run php poller.php follow messages..........
C:\Apache\Apache2\htdocs\cacti>php poller.php
Waiting on 5/5 pollers.
No log handling enabled - turning on stderr logging
NET-SNMP-AGENT-MIB: Module not found
No log handling enabled - turning on stderr logging
NET-SNMP-AGENT-MIB: Module not found
No log handling enabled - turning on stderr logging
NET-SNMP-AGENT-MIB: Module not found
No log handling enabled - turning on stderr logging
NET-SNMP-AGENT-MIB: Module not found
Waiting on 5/5 pollers.
No log handling enabled - turning on stderr logging
NET-SNMP-AGENT-MIB: Module not found
Waiting on 5/5 pollers.
08/19/2005 12:12:03 PM - SYSTEM STATS: Time: 3.3100 s, Method: cactid, Processes
: 8, Threads: 10, Hosts: 5, Hosts/Process: 1, Data Sources 4, RRDs Processed 2

If i copy NET-SNMP-AGENT-MIB to...\php\...mibs
follow errors :
(extract !!)

Undefined identifier: netSnmpNotifications near line 459 of C:\php\extras\mibs/N
ET-SNMP-AGENT-MIB_.txt
Undefined identifier: netSnmpNotifications near line 459 of C:\php\extras\mibs/N
ET-SNMP-AGENT-MIB_.txt
Undefined identifier: netSnmpNotifications near line 459 of C:\php\extras\mibs/N
ET-SNMP-AGENT-MIB_.txt
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsCacheEntry ::= { nsCacheTable 1 }
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsDebugTokenTable ::= { nsConfigDebug 4
}
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsDebugDumpPdu ::= { nsConfigDebug 3 }
Cannot adopt OID in NET-SNMP-AGENT-MIB: nsDebugOutputAll ::= { nsConfigDebug 2 }

Thx for Help
---------------------------------------
| Cacti 0.8.6f | Cactid 0.8.6e | MySQL 4.1.13a-nt | Apache 2.0.53| PHP 5.0.4 | RRDtool 1.2.11 | W23 Srv.|
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest