need help with debian

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
mike776
Posts: 8
Joined: Sat May 29, 2004 10:35 am

need help with debian

Post by mike776 »

Hello all,
I use to use cacti before and everything was working fine.
Now I got debian again but is new instalation, I install it last week. I try to install cacti by apt-get install cacti everything seems to work fine , but there is no graphs. No files in /usr/share/cacti/site/rra.
Then I uninstall it and install it from tar.gz file. Still no graphs. This is my cacti.log file:
10/18/2005 09:20:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 4]
10/18/2005 09:20:02 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/18/2005 09:20:02 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www
10/18/2005 09:20:02 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
10/18/2005 09:20:02 AM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/scrip
t_server.php
10/18/2005 09:20:02 AM - PHPSVR: Poller[0] PHP Script Server has Started - Paren
t is cmd
10/18/2005 09:20:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/18/2005 09:20:32 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/18/2005 09:20:32 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /etc/php4/cgi
10/18/2005 09:20:32 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
10/18/2005 09:20:32 AM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/scrip
t_server.php
10/18/2005 09:20:32 AM - PHPSVR: Poller[0] PHP Script Server has Started - Paren
t is cmd
10/18/2005 09:20:32 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/18/2005 09:21:43 AM - CMDPHP: Poller[0] Host[4] PING: UDP ping timed out
10/18/2005 09:21:43 AM - CMDPHP: Poller[0] Host[4] SNMP: SNMP not performed due
to setting or ping result.
10/18/2005 09:21:43 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown req
uest received, exiting
10/18/2005 09:21:43 AM - CMDPHP: Poller[0] Time: 400.2837 s, Theads: N/A, Hosts:
1
10/18/2005 09:21:43 AM - SYSTEM STATS: Time:102.3732 Method:cmd.php Processes:1
Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:0
10/18/2005 09:21:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_commands.php]
10/18/2005 09:21:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_export.php]
10/18/2005 09:25:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 4]
10/18/2005 09:25:02 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/18/2005 09:25:02 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www
10/18/2005 09:25:02 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
10/18/2005 09:25:02 AM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/scrip
t_server.php
10/18/2005 09:25:02 AM - PHPSVR: Poller[0] PHP Script Server has Started - Paren
t is cmd
10/18/2005 09:25:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/18/2005 09:26:42 AM - CMDPHP: Poller[0] Host[4] PING: UDP ping timed out
10/18/2005 09:26:42 AM - CMDPHP: Poller[0] Host[4] SNMP: SNMP not performed due
to setting or ping result.
10/18/2005 09:26:42 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown req
uest received, exiting
10/18/2005 09:26:42 AM - CMDPHP: Poller[0] Time: 400.2880 s, Theads: N/A, Hosts:
1
10/18/2005 09:26:42 AM - SYSTEM STATS: Time:101.3667 Method:cmd.php Processes:1
Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:0
10/18/2005 09:26:42 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_commands.php]
10/18/2005 09:26:42 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_export.php]
10/18/2005 09:30:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 4]
10/18/2005 09:30:02 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/18/2005 09:30:02 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www
10/18/2005 09:30:02 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
10/18/2005 09:30:02 AM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/scrip
t_server.php
10/18/2005 09:30:02 AM - PHPSVR: Poller[0] PHP Script Server has Started - Paren
t is cmd
10/18/2005 09:30:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/18/2005 09:31:42 AM - CMDPHP: Poller[0] Host[4] PING: UDP ping timed out
10/18/2005 09:31:42 AM - CMDPHP: Poller[0] Host[4] SNMP: SNMP not performed due
to setting or ping result.
10/18/2005 09:31:42 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown req
uest received, exiting
10/18/2005 09:31:42 AM - CMDPHP: Poller[0] Time: 400.3086 s, Theads: N/A, Hosts:
1
10/18/2005 09:31:43 AM - SYSTEM STATS: Time:101.4504 Method:cmd.php Processes:1
Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:0
10/18/2005 09:31:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_commands.php]
10/18/2005 09:31:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_export.php]
10/18/2005 09:35:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 4]
10/18/2005 09:35:02 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/18/2005 09:35:02 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www
10/18/2005 09:35:02 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
10/18/2005 09:35:02 AM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/scrip
t_server.php
10/18/2005 09:35:02 AM - PHPSVR: Poller[0] PHP Script Server has Started - Paren
t is cmd
10/18/2005 09:35:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/18/2005 09:36:42 AM - CMDPHP: Poller[0] Host[4] PING: UDP ping timed out
10/18/2005 09:36:42 AM - CMDPHP: Poller[0] Host[4] SNMP: SNMP not performed due
to setting or ping result.
10/18/2005 09:36:42 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown req
uest received, exiting
10/18/2005 09:36:42 AM - CMDPHP: Poller[0] Time: 400.2822 s, Theads: N/A, Hosts:
1
10/18/2005 09:36:43 AM - SYSTEM STATS: Time:101.3968 Method:cmd.php Processes:1
Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:0
10/18/2005 09:36:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_commands.php]
10/18/2005 09:36:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_export.php]
10/18/2005 09:40:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 4]
10/18/2005 09:40:02 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/18/2005 09:40:02 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www
10/18/2005 09:40:02 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
10/18/2005 09:40:02 AM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/scrip
t_server.php
10/18/2005 09:40:02 AM - PHPSVR: Poller[0] PHP Script Server has Started - Paren
t is cmd
10/18/2005 09:40:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/18/2005 09:41:42 AM - CMDPHP: Poller[0] Host[4] PING: UDP ping timed out
10/18/2005 09:41:42 AM - CMDPHP: Poller[0] Host[4] SNMP: SNMP not performed due
to setting or ping result.
10/18/2005 09:41:42 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown req
uest received, exiting
10/18/2005 09:41:42 AM - CMDPHP: Poller[0] Time: 400.2840 s, Theads: N/A, Hosts:
1
10/18/2005 09:41:43 AM - SYSTEM STATS: Time:101.3873 Method:cmd.php Processes:1
Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:0
10/18/2005 09:41:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_commands.php]
10/18/2005 09:41:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_export.php]
10/18/2005 09:45:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 4]
10/18/2005 09:45:02 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/18/2005 09:45:02 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www
10/18/2005 09:45:02 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /usr/share/cacti
10/18/2005 09:45:02 AM - PHPSVR: Poller[0] DEBUG: FILENM: /usr/share/cacti/scrip
t_server.php
10/18/2005 09:45:02 AM - PHPSVR: Poller[0] PHP Script Server has Started - Paren
t is cmd
10/18/2005 09:45:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/18/2005 09:46:42 AM - CMDPHP: Poller[0] Host[4] PING: UDP ping timed out
10/18/2005 09:46:42 AM - CMDPHP: Poller[0] Host[4] SNMP: SNMP not performed due
to setting or ping result.
10/18/2005 09:46:42 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown req
uest received, exiting
10/18/2005 09:46:42 AM - CMDPHP: Poller[0] Time: 400.2828 s, Theads: N/A, Hosts:
1
10/18/2005 09:46:43 AM - SYSTEM STATS: Time:101.3657 Method:cmd.php Processes:1
Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:0
10/18/2005 09:46:43 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/poller_commands.php]
Thanks for your help
intenso
Posts: 19
Joined: Mon Oct 17, 2005 5:50 am
Location: Germany
Contact:

Post by intenso »

be sure that the permissions are correct ;)

the user www-data must have read/write acces to /usr/share/cacti/log and /usr/share/cacti/rra
mike776
Posts: 8
Joined: Sat May 29, 2004 10:35 am

Post by mike776 »

It does. Thats the first thing I did.
I did chmod 777 to log and rra.
It is driving me crazy everything seems to be OK but there is no graphs...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What does your crontab look like that run cacti?

What version of rrdtool are you running?
[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]
mike776
Posts: 8
Joined: Sat May 29, 2004 10:35 am

Post by mike776 »

This is my cron job:
debian:/usr/share/cacti# vi /etc/cron.d/cacti

0,5,10,15,20,25,30,35,40,45,50,55 * * * * www-data /usr/share/cacti/poller.php >
/dev/null 2>&1

and the rrdtool ver. is:
debian:/usr/share/cacti# rrdtool -v
RRDtool 1.0.49 Copyright 1997-2004 by Tobias Oetiker <tobi@oetiker.ch>

Usage: rrdtool [options] command command_options

Valid commands: create, update, graph, dump, restore,
last, info, fetch, tune, resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

cacti is setup to ver. 1.0 for rrdtool
joudatfd
Posts: 5
Joined: Wed Oct 12, 2005 11:33 am

crazy

Post by joudatfd »

this sounds crazy, but can you please try to link /usr/bin/perl, /usr/bin/snmpwalk and /usr/bin/rrdtool into /

i have two installations of cacti (first time on these computers) and it worked (still don't know why, paths to binaries in db seems to be ok)
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Re: crazy

Post by rony »

joudatfd wrote:this sounds crazy, but can you please try to link /usr/bin/perl, /usr/bin/snmpwalk and /usr/bin/rrdtool into /

i have two installations of cacti (first time on these computers) and it worked (still don't know why, paths to binaries in db seems to be ok)
???

Is your web server running in a chroot?
[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]
joudatfd
Posts: 5
Joined: Wed Oct 12, 2005 11:33 am

Re: crazy

Post by joudatfd »

rony wrote:
joudatfd wrote:this sounds crazy, but can you please try to link /usr/bin/perl, /usr/bin/snmpwalk and /usr/bin/rrdtool into /

i have two installations of cacti (first time on these computers) and it worked (still don't know why, paths to binaries in db seems to be ok)
???

Is your web server running in a chroot?
not mine ... linking would be useless then ... don't know ... but, here is part of error.log of apache, before linking

Code: Select all

sh: line 1: /perl: No such file or directory                                    
sh: line 1: /perl: No such file or directory                                    
sh: line 1: /perl: No such file or directory                                    
sh: line 1: /snmpwalk: No such file or directory                                
sh: line 1: /perl: No such file or directory                                    
sh: line 1: /perl: No such file or directory                                    
sh: line 1: /perl: No such file or directory                                    
sh: line 1: /rrdtool: No such file or directory   
mike776
Posts: 8
Joined: Sat May 29, 2004 10:35 am

Post by mike776 »

I still have problems with the graphs.
I reinstall cacti and then I ran this command as www-data user:
debian:/usr/share/cacti# su www-data
debian:/usr/share/cacti$ php /usr/share/cacti/poller.php >/usr/share/cacti/rra/pooler.log
No log handling enabled - turning on stderr logging
Cannot find module (NONE): At line 0 in (none)

then I check the log file I just created:
debian:/usr/share/cacti/rra# vi pooler.log

10/19/2005 11:51:04 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 4]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
pooler.log: unmodified: line 1

Please help me get this running.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest