Poller problem: change root is not supported

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

Moderators: Developers, Moderators

budiwins
Posts: 6
Joined: Sun Sep 25, 2005 9:57 pm
Location: Jakarta
Contact:

Poller problem: change root is not supported

Post by budiwins »

There's no rrd files in rra folder, and when I run php poller.php, I have the following error:
==============================================
shell>php poller.php
Waiting on 1/1 pollers.
ERROR: change root is not supported by your OS or at least by this copy of

rrdtool
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
09/26/2005 07:09:34 PM - SYSTEM STATS: Time:5.6185 Method:cmd.php

Processes:1 Th
reads:N/A Hosts:4 HostsPerProcess:4 DataSources:30 RRDsProcessed:15
==============================================

My configuration:
- Win2K3 Svr SP1
- Apache HTTPD 2.0.54
- PHP 5.0.5
- RRDTOol 1.2.10
- Cacti 0.8.6g

Since I don't use IIS for webserver, so there's no IUSR_MACHINENAME that vould be added to cmd.exe

Any help would be appreciated ..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You must be using rrdtool-cygwin, NOT win32.

Since you're using apache, it runs under whatever user account you specified. That is the account that needs rights on cmd.exe.
budiwins
Posts: 6
Joined: Sun Sep 25, 2005 9:57 pm
Location: Jakarta
Contact:

Post by budiwins »

Thanks for the info. It works now. There's some rrd files on rra folder now. but after 30 minutes, why the rrd files are not updated? it's only updated when I run php poller.php. Also, when I checked on scheduled task, the task is running (can be seen on last run time) that is changing.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

truncate your poller_output table (google it)
increase your php memory (php.ini)
increase your php timeout value (php.ini)
run "php poller.php" from the command line in LOW and check for errors. You should get a bunch of "OK's".

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?
budiwins
Posts: 6
Joined: Sun Sep 25, 2005 9:57 pm
Location: Jakarta
Contact:

Post by budiwins »

I've done your suggestion (truncate poller_output, increase memory & timeout in php.ini), and below is the output of php poller.php:
===============================================
shell> php poller.php
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
OK u:0.05 s:0.11 r:2.84
OK u:0.05 s:0.11 r:2.98
OK u:0.05 s:0.11 r:3.03
OK u:0.05 s:0.11 r:3.08
Waiting on 1/1 pollers.
OK u:0.05 s:0.11 r:3.89
OK u:0.05 s:0.12 r:3.94
OK u:0.05 s:0.13 r:3.98
OK u:0.05 s:0.13 r:4.02
OK u:0.05 s:0.13 r:4.08
OK u:0.05 s:0.13 r:4.11
OK u:0.05 s:0.14 r:4.14
OK u:0.05 s:0.15 r:4.17
OK u:0.05 s:0.15 r:4.20
OK u:0.05 s:0.16 r:4.23
OK u:0.05 s:0.16 r:4.28
Waiting on 1/1 pollers.
OK u:0.05 s:0.16 r:5.17
OK u:0.05 s:0.16 r:5.21
Waiting on 1/1 pollers.
OK u:0.05 s:0.16 r:6.36
OK u:0.05 s:0.16 r:6.42
OK u:0.05 s:0.16 r:6.45
OK u:0.05 s:0.16 r:6.48
OK u:0.05 s:0.16 r:6.56
09/28/2005 10:31:50 AM - SYSTEM STATS: Time:11.6384 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:43 RRDsProcessed:22
===============================================

But the rrd files are still not updated (by the scheduler task). Do I need to update rrdtools to 1.2.11? but I couldn't find any binaries for windows.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

OK messages are good. Turn the logging level to debug to find out what's really going on. Does the user running the scheduled task have the proper rights to create files in your rrd and log folder?

Latest rrdtool: http://www.cacti.net/downloads/rrdtool/win32/
Godfather
Posts: 1
Joined: Wed Oct 12, 2005 4:04 am
Location: Moscow, Russia
Contact:

Post by Godfather »

BSOD2600 wrote:You must be using rrdtool-cygwin, NOT win32.

Since you're using apache, it runs under whatever user account you specified. That is the account that needs rights on cmd.exe.
Thanks a lot for this tip!!
My general problem with your support was solved successfully +))
cgroothoff
Posts: 1
Joined: Sun Nov 20, 2005 11:04 am

rrdtool problem

Post by cgroothoff »

I am using the Win32 version of RRDTOOL.exe and have tried the memory and timeout changes suggested, but I am still getting this error - ERROR: change root is not supported by your OS or at least by this copy of rrdtool.

I also do not get any files in the RRA folder.

My configuration:
- Win2K3
- IIS
- PHP 4.4.1
- RRDTOol 1.2.10 (installed rrdtool-1.2.10-win32-perl58.zip)
- Cacti 0.8.6g
- MySQL 4.1.15

Any other suggestions?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

ummm, why are you using the Win32 version of rrdtool when this thread just reiterated why you CANNOT use that with cacti?

Go get the cygwin rrdtool.
TACF
Posts: 6
Joined: Thu Nov 17, 2005 3:12 pm
Location: Toronto, ON

Almost there...

Post by TACF »

Hi,

I had the same problem as above. I'm now using the correct RRDtool, but when I run the scheduled task, or run "php poller.php" in the Cacti directory, the command window just hangs.

Right now I have a hung SVCHOST as well, due to the scheduled task. Any pointers?

Update: This problem only happens when using the Cactid poller type. The cmp.php works fine.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Do you have cactid installed and the correct path for it in cacti ? If so, what version?
TACF
Posts: 6
Joined: Thu Nov 17, 2005 3:12 pm
Location: Toronto, ON

Post by TACF »

Yes 2x.

I'm using Cactid version .8.6f (I guess that's the version) from http://www.cacti.net/cactid_download.php

When I had an incorrect path before the poller windows gave a specific error.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

When you manually run cactid, what happens?
When you run the scheduled task with an admin account, what happens?
TACF
Posts: 6
Joined: Thu Nov 17, 2005 3:12 pm
Location: Toronto, ON

Post by TACF »

Interesting... When I run cactid.exe manually I get:

CACTID: Using cactid config file [cactid.conf]
CACTID: MYSQL: Connection Failed: Host 'Myservername' is not allowed to connect to this MySQL server
--
Myservername is the name of my server. I guess that's why it hangs, cause there's an authentication error.

And I do have the task running with an admin account. I tried another admin account, and got the same results.

I'm playing with some authentication stuff now... changing the IP address to 127.0.0.1 and such.
TACF
Posts: 6
Joined: Thu Nov 17, 2005 3:12 pm
Location: Toronto, ON

Post by TACF »

OK, changing the IP address to 127.0.0.1 fixed the problem. That should probably be noted somewhere in the instal files.

Thanks for the help.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests