still no .rrd's... is my php broken?
Moderators: Developers, Moderators
still no .rrd's... is my php broken?
I have looked at the other posts, but one things is different for me, When I run php <path to cacti>/cmd.php OR php poller.php I get the same thing
cactiuser@wnutil02:/srv/www/htdocs/cacti/cacti/cacti> php cmd.php
X-Powered-By: PHP/4.2.2
Content-type: text/html
<br><strong>This script is only meant to run at the command line.</strong>cactiuser
Does this mean my php is broken? I am trying to keep looking, but when someone says 'run it in debug', I am not sure what that means. I have looked at other posts and thought you could run php in debug by specifying the '-q', but that doesn't do anything either.
cactiuser@wnutil02:/srv/www/htdocs/cacti/cacti/cacti> php cmd.php
X-Powered-By: PHP/4.2.2
Content-type: text/html
<br><strong>This script is only meant to run at the command line.</strong>cactiuser
Does this mean my php is broken? I am trying to keep looking, but when someone says 'run it in debug', I am not sure what that means. I have looked at other posts and thought you could run php in debug by specifying the '-q', but that doesn't do anything either.
-
- Posts: 2
- Joined: Fri Aug 05, 2005 2:11 pm
- Location: Maryland, USA
- Contact:
You're using the CGI version of PHP. You need the CLI version. If you're running Debian, you can get this by running:
Otherwise, you'll need to do a little digging in your distro to find the correct file.[/code]
Code: Select all
apt-get install php4-cli
I have upgraded my rrdtool and my php... I can now run php poller.php from the cli (thanks stevenbdjr). This is what I get??
cactiuser@::/srv/www/htdocs/cacti/cacti/cacti> /srv/www/php/bin/php poller.php
Content-type: text/html
X-Powered-By: PHP/4.4.0
08/05/2005 03:03:07 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /srv/www/php/bin, ARGS: -q /srv/www/htdocs/cacti/cacti/cacti/cmd.php 0 3]
sh: line 1: /srv/www/php/bin: is a directory
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
......
This just goes on and on...
Here is cmd.php
cactiuser@::/srv/www/htdocs/cacti/cacti/cacti> /srv/www/php/bin/php cmd.php
Content-type: text/html
X-Powered-By: PHP/4.4.0
#!/usr/bin/php -q
08/05/2005 03:05:17 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/05/2005 03:05:17 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for 'amer.dc.worknetinc.com'.
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: amer.scrub.worknetinc.com, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 18
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 138766648
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 3288058629
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 2170813835
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[11] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 2759606165
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[11] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 47281477
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[12] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 1278403633
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[12] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 2115101805
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 4033414973
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Time: 1.2515 s, Theads: N/A, Hosts: 3
cactiuser@::/srv/www/htdocs/cacti/cacti/cacti> /srv/www/php/bin/php poller.php
Content-type: text/html
X-Powered-By: PHP/4.4.0
08/05/2005 03:03:07 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /srv/www/php/bin, ARGS: -q /srv/www/htdocs/cacti/cacti/cacti/cmd.php 0 3]
sh: line 1: /srv/www/php/bin: is a directory
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
......
This just goes on and on...
Here is cmd.php
cactiuser@::/srv/www/htdocs/cacti/cacti/cacti> /srv/www/php/bin/php cmd.php
Content-type: text/html
X-Powered-By: PHP/4.4.0
#!/usr/bin/php -q
08/05/2005 03:05:17 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
08/05/2005 03:05:17 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for 'amer.dc.worknetinc.com'.
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: amer.scrub.worknetinc.com, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: 18
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 138766648
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 3288058629
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 2170813835
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[11] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 2759606165
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[11] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 47281477
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[12] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 1278403633
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[12] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 2115101805
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v1: amer.scrub.worknetinc.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 4033414973
08/05/2005 03:05:18 PM - CMDPHP: Poller[0] Time: 1.2515 s, Theads: N/A, Hosts: 3
-
- Posts: 2
- Joined: Fri Aug 05, 2005 2:11 pm
- Location: Maryland, USA
- Contact:
I ran into the poller problem recently with a fresh install of 0.8.6f on Windows 2003. Applying the patches listed here cleared it up.
Steven
Steven
already patched, but not the pre-patched stuff. Can I just download those pre-patched individual files and replace the files?
Example. Just download cmd.php from
http://www.cacti.net/downloads/patches/ ... e-patched/
dated Aug.2 and replace my cmd.php?
Example. Just download cmd.php from
http://www.cacti.net/downloads/patches/ ... e-patched/
dated Aug.2 and replace my cmd.php?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Goto Settings->Paths and past your values to this post.
TheWitness
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?
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?
snmpwalk binary /usr/bin/snmpwalk
snmpget binary /usr/bin/snmpget
rrdtool binary /usr/local/rrdtool/bin/rrdtool
php binary /srv/www/php/bin
cacti log /srv/www/htdocs/cacti/cacti/cacti/log/cacti.log
There isn't anything in the
RRDTool Default Font Path
or
Cactid Poller File Path
I can go to the debug pages and 'rrdtool create/graph' by hand (meaning copy from cacti and paste into a shell). It will create the (as cactiuser) rrd files, but nothing gets updated and if I try to creat a graph using cacti, I get an error that the .rrd file in
/srv/www/htdocs/cacti/cacti/cacti/rra/xxx.rrd doesn't exist
I have upgraded to the 1.50 rrdtool, 4.4.0 php, not sure about the mysql version, as I have to be careful not to break the other things running on the box
snmpget binary /usr/bin/snmpget
rrdtool binary /usr/local/rrdtool/bin/rrdtool
php binary /srv/www/php/bin
cacti log /srv/www/htdocs/cacti/cacti/cacti/log/cacti.log
There isn't anything in the
RRDTool Default Font Path
or
Cactid Poller File Path
I can go to the debug pages and 'rrdtool create/graph' by hand (meaning copy from cacti and paste into a shell). It will create the (as cactiuser) rrd files, but nothing gets updated and if I try to creat a graph using cacti, I get an error that the .rrd file in
/srv/www/htdocs/cacti/cacti/cacti/rra/xxx.rrd doesn't exist
I have upgraded to the 1.50 rrdtool, 4.4.0 php, not sure about the mysql version, as I have to be careful not to break the other things running on the box
it is working (kinda)... but I have to run it by hand???
If I run cmd.php, then run poller.php, the last part of my poller is
OK u:0.01 s:0.01 r:0.13
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
.....
If I run poller.php again, it starts with that same message. If I run cmd.php... let it run, then run poller.php, I am getting graph's with data!!
Problem is.. I can't sit here and do it every 5 minutes
I have upgraded my php and my path's are a little weird... where can I be going wrong?
Very close here...
If I run cmd.php, then run poller.php, the last part of my poller is
OK u:0.01 s:0.01 r:0.13
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
.....
If I run poller.php again, it starts with that same message. If I run cmd.php... let it run, then run poller.php, I am getting graph's with data!!
Problem is.. I can't sit here and do it every 5 minutes
I have upgraded my php and my path's are a little weird... where can I be going wrong?
Very close here...
Have you read this simple page:
http://www.cacti.net/downloads/docs/htm ... _unix.html
Instruction #7:
Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
This should run your poller.php every 5 minutes for you.
http://www.cacti.net/downloads/docs/htm ... _unix.html
Instruction #7:
Add a line to your /etc/crontab file similar to:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
Replace cactiuser with the valid user specified in the previous step.
Replace /var/www/html/cacti/ with your full Cacti path.
This should run your poller.php every 5 minutes for you.
Yeah, this is in my /etc/crontab
*/5 * * * * cactiuser /srv/www/php/bin/php /srv/www/htdocs/cacti/cacti/cacti/poller.php 2>&1 > /dev/null
(my path to cacti really is /srv/www/htdocs/cacti/cacti/cacti)
When I run this command by hand, it never ends (which I think is my problem with it sitting in cron right now)
When run by hand, it runs through the poller and updates the graph, but just says
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
...
Until I stop it. Sometimes when I run it by hand, it works... other times it doesn't?? I saw in a post that TheWitness answered that a MIN or MAX had been unchecked? I also saw that rrdtool (I was using 1.38) needed upgrading, so I got 1.50.
This is working by hand (as cactiuser)... but I get that Waiting message??
*/5 * * * * cactiuser /srv/www/php/bin/php /srv/www/htdocs/cacti/cacti/cacti/poller.php 2>&1 > /dev/null
(my path to cacti really is /srv/www/htdocs/cacti/cacti/cacti)
When I run this command by hand, it never ends (which I think is my problem with it sitting in cron right now)
When run by hand, it runs through the poller and updates the graph, but just says
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
...
Until I stop it. Sometimes when I run it by hand, it works... other times it doesn't?? I saw in a post that TheWitness answered that a MIN or MAX had been unchecked? I also saw that rrdtool (I was using 1.38) needed upgrading, so I got 1.50.
This is working by hand (as cactiuser)... but I get that Waiting message??
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Run in DEBUG please and post output. Run by hand. Also, you need to run the following mysql command set:
mysql -u root -p cacti
> truncate table poller_output;
> quit;
TheWitness
mysql -u root -p cacti
> truncate table poller_output;
> quit;
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?
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?
Thanks... I did eventually get it. I upgraded to the 1.2x rrdtool. Now everything seems to be zipping along.
I know everyone is busy... but looking over these posts, there seems to have been a bunch of problems lately... was 86f that rough? I know we didn't upgrade for a LONG time... because everything just worked. We went to f first, then we were going to cactid because it was faster... now the cactid remains.. but at least we have data again.
Thanks to everyone for trying to help!
I know everyone is busy... but looking over these posts, there seems to have been a bunch of problems lately... was 86f that rough? I know we didn't upgrade for a LONG time... because everything just worked. We went to f first, then we were going to cactid because it was faster... now the cactid remains.. but at least we have data again.
Thanks to everyone for trying to help!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
There have most recently been problems in the GNU world with some critical libraries that have caused some problems. There is something affecting rrdtool as well. I don't quite understand what is going wrong though. Many are not having difficulties.
RRDTool 1.2.11 also has been problematic. The security hole was also another major problem that forced too many things too quickly.
TheWitness
RRDTool 1.2.11 also has been problematic. The security hole was also another major problem that forced too many things too quickly.
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?
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?
Who is online
Users browsing this forum: No registered users and 2 guests