polling problems

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

Moderators: Developers, Moderators

Post Reply
oracle
Posts: 9
Joined: Sat Nov 20, 2004 7:27 am

polling problems

Post by oracle »

I have installed cacti. The graphs are generated but there is no data showed on the graphs.

Configuration:
OS WinXP Prof
cacti: 08.6b
cactid: installed win version
cygwin: not installed
apache 2.0.5
PHP: 5.0.2
php-win.exe scheduled to run at 5 min
RRD: installed

I've tried to see what data I am receiveing from cmd.php and from cactid. Here are the results:

CMD.PHP is generating the following results

C:\apache2triad\htdocs\cacti>c:\apache2triad\php\bin\php.exe c:\apache2triad\htd
ocs\cacti\cmd.php
Failed loading C:/apache2triad/php/extensions/zendoptimizer.dll
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:/usr/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/usr/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
#!/usr/bin/php -q
'cat' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:24 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
'cat' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:25 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
'uptime' is not recognized as an internal or external command,
operable program or batch file.
'who' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:25 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
'ps' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:25 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
11/20/2004 06:03:25 PM - CMDPHP: Poller[0] Time: 1.7884 s, Theads: N/A, Hosts: 2


C:\apache2triad\htdocs\cacti>


CACTID is providing no feedback

C:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Here are your solutions:
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)
You need the following system environement variable:

MIBDIRS=c:\php\mibs (or where ever they are)
C:/usr/etc/snmp/snmp.conf: line 2: Warning: Unknown token: persistentDir.
C:/usr/etc/snmp/snmp.conf: line 3: Warning: Unknown token: tempFilePattern.
Edit this file and remove the entries as noted above.
#!/usr/bin/php -q
'cat' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:24 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
'cat' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:25 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
'uptime' is not recognized as an internal or external command,
operable program or batch file.
'who' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:25 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
'ps' is not recognized as an internal or external command,
operable program or batch file.
11/20/2004 06:03:25 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not
valid. Partial Result:
You are running scripts not designed for the Windows environment. You need to delete the "localhost" device and create a new one of type WindowsXP/2000.

Cactid, you need to verify that we don't have localhost. Needs to be an IP Address or recognizable host name.

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?
oracle
Posts: 9
Joined: Sat Nov 20, 2004 7:27 am

ERROR: opening 'C:\apache2triad\htdocs\cacti/rra/caravan_rou

Post by oracle »

Aparently cmd.php and cactid provides no more error messages but now there is no more graph generated either
ERROR: opening 'C:\apache2triad\htdocs\cacti/rra/caravan_router_traffic_in_25.rrd': No such file or directory

Now cactid replies:

C:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: Windows Environment, root permissions not required for ICMP Ping
CACTID: Version 0.8.6c starting
CACTID: Execution Time: 4.7140 s, Threads: 1, Hosts: 3

C:\cactid>
and cmd.php replies with:

C:\apache2triad\htdocs\cacti>c:\apache2triad\php\bin\php.exe c:\apache2triad\htd
ocs\cacti\cmd.php
Failed loading C:/apache2triad/php/extensions/zendoptimizer.dll
#!/usr/bin/php -q
11/21/2004 06:27:58 AM - CMDPHP: Poller[0] Time: 1.1732 s, Theads: N/A, Hosts: 3


C:\apache2triad\htdocs\cacti>
oracle
Posts: 9
Joined: Sat Nov 20, 2004 7:27 am

something else

Post by oracle »

in order to get these results I've copied as well the c:\usr\share\snmp\mibs into c:\whateverdirectory\php\mibs.

As result I am getting now very good results for polling but no graph is any longer generated
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What about the ZendOptimizer error messages. You should re-install Zend. To my knowledge the file creation should not be a problem. The forward slashes vs. back slashes don't make a difference.

TheWitness

p.s. I would like to know what the solution to this problem is. Many have had it, but I have never received a response as to what was actually causing it.
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?
oracle
Posts: 9
Joined: Sat Nov 20, 2004 7:27 am

solution for ZEND

Post by oracle »

I have just copied the zend .dll library in the /extensions folder That is because for PHP4 the extensions are installed in the /ext folder and PHP5 requires a /extensions folder.

Here are the results I receive now from cmd.php

C:\apache2triad\htdocs\cacti>c:\apache2triad\php\bin\php.exe c:\apache2triad\htd
ocs\cacti\cmd.php
#!/usr/bin/php -q
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] PING: Host is Alive
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 8 items i
n the auto reindex cache for '164.164.164.3'.
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 39398736
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 145919127
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 3426152677
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2474093207
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 3404411455
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 0
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2500740
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 3134188081
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 145919127
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 39398736
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2474093207
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 3426152677
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 3404411455
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 3134188081
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2500740
11/22/2004 04:46:40 PM - CMDPHP: Poller[0] Host[2] SNMP: v1: 164.164.164.3, dsna
me: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 0
11/22/2004 04:46:41 PM - CMDPHP: Poller[0] Time: 1.3269 s, Theads: N/A, Hosts: 3


C:\apache2triad\htdocs\cacti>
I still do not get graphs. Do you have any ideea?
oracle
Posts: 9
Joined: Sat Nov 20, 2004 7:27 am

finally working

Post by oracle »

I am finally up and running.
I had to execute again the poller.php in the console

Thanks for HELP
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

First time graphs always take 2 polling cycles. :D
[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]
oracle
Posts: 9
Joined: Sat Nov 20, 2004 7:27 am

would it be possible to be more speciffic

Post by oracle »

I have now graphs but there are data registered on the graphs only when I execute poller.php
There is nothing registered on the graphs when cacti execute cmd.php or cactid

Thank you in advance
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Make sure that the rra and log directory have the correct permissions to all the user that the poller is running as read/write access. Then it should work.
Last edited by rony on Tue Nov 23, 2004 2:38 pm, edited 1 time in total.
[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]
oracle
Posts: 9
Joined: Sat Nov 20, 2004 7:27 am

access

Post by oracle »

curently everibody has access to those folders, including to the php folder. I even shared those folders
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Poller.php calls either cactid or cmd.php as required. It also is the one to update the RRD's as well.

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

Who is online

Users browsing this forum: No registered users and 1 guest