No me genera los graficos

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

Moderators: Developers, Moderators

juannabis
Posts: 19
Joined: Thu Jun 08, 2006 8:53 am

No me genera los graficos

Post by juannabis »

Hola, llevo tiempo intentando solucionar mi problema, he visto que mas gente lo ha tenido y entre unas cosas y otras no he conseguido arreglar el mio.

Se trata del error de RRDTool: "ERROR: opening '/var/www/cacti/rra/servidor_de_ficheros_traffic_in_77.rrd': No such file or directory"

Tengo instalado Ubuntu 5.10 y Cacti 0.8.6j.

Alguien me echa una mano para ver la luz???.

Muchas gracias!![/i]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Cerciorarte de que el web server tenga permisos de considerar los archivos en el directorio de RRA. Tambien, cerciorarte de que tu poller este funcionando.
[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]
juannabis
Posts: 19
Joined: Thu Jun 08, 2006 8:53 am

Post by juannabis »

Los directorios /var/www/cacti/rra y /var/www/cacti/log tienen esta forma:

drwxrwxrwx 2 cactiuser users 4096 2007-02-16 19:51 rra
drwxrwxrwx 2 cactiuser users 4096 2007-03-16 19:45 log


En /etc/crontab tengo:

*/5 * * * * cactiuser /usr/bin/php /var/www/cacti/poller.php > /dev/null 2>&1

Como puedo ver si el poller esta funcionando??.

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

Post by rony »

Procurar por favor funcionar el poller como el cactiuser de la l
[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]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Procurar por favor funcionar el poller como el cactiuser de la linea de comando, ven si eso te dice mas.

Fijar la salida que resulta si todavia tienes problemas.
[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]
juannabis
Posts: 19
Joined: Thu Jun 08, 2006 8:53 am

Post by juannabis »

He ejecutado "*/5 * * * * cactiuser /usr/bin/php /var/www/cacti/poller.php > /dev/null 2>&1" en la linea de comandos y no muestra nada.

Despues he entrado en la web de Cacti y seguia teniendo el mismo error.

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

Post by rony »

Funcionar el comando siguiente de la l
[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]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Funcionar el comando siguiente de la linea de comando y divulgar la salida:

Code: Select all

/usr/bin/php /var/www/cacti/poller.php
[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]
juannabis
Posts: 19
Joined: Thu Jun 08, 2006 8:53 am

Post by juannabis »

Si ejecuto eso en la linea de comandos no se muestra ningun resultado, y la sentencia no termina, se queda ejecutando.

He probado con /usr/bin/php y con /usr/bin/php5, y paso lo mismo en los dos.

Sin embargo, si ejecuto /usr/bin/php /var/www/cacti/lib/poller.php, se ejecuta, no se queda colgado, pero no sale nada.

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

Post by rony »

Fijar por favor la salida.
[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]
juannabis
Posts: 19
Joined: Thu Jun 08, 2006 8:53 am

Post by juannabis »

No hay salida:

root@Zatu:/home/admin# /usr/bin/php /var/www/cacti/lib/poller.php
root@Zatu:/home/admin#
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ejecutar por favor el siguiente:

Code: Select all

/usr/bin/php /var/www/cacti/poller.php 
Estas ejecutando la escritura incorrecta de poller.php. La escritura del lib hara exactamente que estas viendo.
[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]
juannabis
Posts: 19
Joined: Thu Jun 08, 2006 8:53 am

Post by juannabis »

Si ejecuto ese comando se queda como colgada la ejecucion, no muestra nada por la pantalla.

Te adjunto una imagen.

Gracias.
Attachments
poller.JPG
poller.JPG (21.8 KiB) Viewed 18761 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

El interesar, de que no debe ocurrir.

Fijar por favor los resultados de los 2 comandos siguientes:

Code: Select all

php -v

Code: Select all

php -m
Cerciorarte de que tu servidor del mysql est
[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]
juannabis
Posts: 19
Joined: Thu Jun 08, 2006 8:53 am

Post by juannabis »

Aqui tienes la salida por pantalla.
Attachments
php.JPG
php.JPG (48.21 KiB) Viewed 18735 times
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests