no graph is shown

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

Moderators: Developers, Moderators

DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

nothing....I mean, it executes the script ... wanna see the output? :)
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

the good news is that i'm not getting anything in cacti.log when executing as cactiuser :D
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Please post the output.

Also, double check the permissions. :) Sorry, I know I'm repeating myself.
[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 »

What do you have the shell set to for cactiuser?
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

[root@teste cacti]# cat /etc/passwd | grep cacti
cactiuser:x:500:500::/home/cactiuser:/bin/bash
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, I'm stumped....

I see nothing wrong with your cron entry, other than not specifying the full path. Which you said you have tested. Even if the shell is set to /bin/false cron will still execute entries in the /etc/crontab for that user, because it has a shell set.

So, I'm at a loss.

The only things I can say is make sure you are using the full path to php and make sure that your permissions on the logs and rra directory are correct.

Other than that, it's has to be an issue with cron, I would focus there.
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

the problem is that the files are already created, but no update....

so, should this have something to do with my distribution? I mean, the php version, mysql, httpd....etc. net-snmp and rddtool are the latest available...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Again, if root can update them, it's a permission issue. The cactiuser has to be able to update the files in the rra and log directory. Typically, you set the owner of the directory and files in the directory to cactiuser.

Run the following in your cacti installation directory.

Code: Select all

chown -R cactiuser log rra

I know of many users using FC2 and not having problems. So, no I don't think so, the fact that is runs as root is an indication that it is working. Again, it think its a permission issue or a cron issue.

The fact that you don't see any entry in the cron log that poller is being executing is perplexing me.
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

[root@teste cacti]# ls -al | grep rra
drwxrwxrwx 2 cactiuser users 4096 Jan 21 14:39 rra
-rw-r--r-- 1 root users 6068 Dec 19 22:01 rra.php
[root@teste cacti]# ls -al | grep log
-rw-r--r-- 1 root users 6133 Dec 19 22:01 auth_login.php
drwxrwxrwx 2 cactiuser users 4096 Jan 21 17:11 log
-rw-r--r-- 1 root users 1796 Dec 19 22:01 logout.php

I've even tried to run the cron job as root, with same result....I'm stuck too. it's must be a stupid thing that I'm missing
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Sorry if you covered this, did you install cacti from the source, or from a package?

Because from the source, your will have a log and rra directory in the root of the cacti installation.

If they are else where, you need to locate them and check there permissions.
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

the only rra and log dirs are located inside the cacti dir and nowhere else. I've installed from tar.gz.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

/boggle

But if you run it as root, it updated the rrds?
[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]
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

yup...it does. and i've changed the line in cron, so it will be run not as cactiuser, but as root.....still, no change... :(
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

reinstalled cacti on a new, fresh FC1 - it seems it works?!?!

don't know for sure yet....have to let it run for a day or so....at least /var/log/cron looks OK :D
DeathRipple
Posts: 19
Joined: Thu Jan 20, 2005 12:25 pm

Post by DeathRipple »

local it's working.....at least for now....
next problem....it's not working right with another remote linux machine.... the graph is shown, but no update is made...

01/24/2005 03:45:03 PM - SYSTEM STATS: Time: 3.0753 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 4, Hosts/Process: 4
01/24/2005 03:45:03 PM - CMDPHP: Poller[0] Time: 2.3824 s, Theads: N/A, Hosts: 3
01/24/2005 03:45:03 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 193.231.79.1, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.End of MIB, output: U
01/24/2005 03:45:03 PM - CMDPHP: Poller[0] Host[3] WARNING: Result from SNMP not valid. Partial Result:
01/24/2005 03:45:03 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 193.231.79.1, dsname: hdd_free, oid: .1.3.6.1.4.1.2021.9.1.7.End of MIB, output: U
01/24/2005 03:45:03 PM - CMDPHP: Poller[0] Host[3] WARNING: Result from SNMP not valid. Partial Result:
01/24/2005 03:45:02 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 193.231.79.1, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, output: U
01/24/2005 03:45:02 PM - CMDPHP: Poller[0] Host[3] WARNING: Result from SNMP not valid. Partial Result:
01/24/2005 03:45:02 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 193.231.79.1, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, output: U
01/24/2005 03:45:02 PM - CMDPHP: Poller[0] Host[3] WARNING: Result from SNMP not valid. Partial Result:
01/24/2005 03:45:02 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 193.231.79.1, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, output: U
01/24/2005 03:45:02 PM - CMDPHP: Poller[0] Host[3] WARNING: Result from SNMP not valid. Partial Result:
01/24/2005 03:45:02 PM - CMDPHP: Poller[0] Host[3] SNMP: v1: 193.231.79.1, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, output: U

...etc

suggestions?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests