Alias /cacti/ /var/www/cacti/
<Directory /var/www/cacti/>
DirectoryIndex index.php
Options -Indexes
AllowOverride all
order deny,allow
deny from all
allow from "my computers ip address"
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc on
php_flag track_vars on
</Directory>
no graph at all more data found ...
Moderators: Developers, Moderators
-
- Posts: 29
- Joined: Mon Jan 08, 2007 11:07 am
-
- Posts: 29
- Joined: Mon Jan 08, 2007 11:07 am
no graphs versus graphs ...
Hi
when i run the php -q poller.php than i get graphs in cacti but Nan so the main problem is rrd right ???
i issued the following command:
[user@hamm cacti]$ php -q poller.php
OK u:0.00 s:0.00 r:0.03
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.01 r:0.12
OK u:0.00 s:0.01 r:0.12
OK u:0.01 s:0.01 r:0.14
OK u:0.01 s:0.01 r:0.14
OK u:0.01 s:0.01 r:0.16
OK u:0.01 s:0.01 r:0.16
OK u:0.01 s:0.01 r:0.16
OK u:0.01 s:0.01 r:0.18
01/10/2007 10:29:39 AM - SYSTEM STATS: Time:1.1946 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
[user@hamm cacti]$ cd rra
[user@hamm rra]$ ls
localhost_proc_7.rrd mc3810_5min_cpu_24.rrd mc3810_traffic_in_22.rrd
localhost_users_6.rrd mc3810_traffic_in_21.rrd mc3810_traffic_in_23.rrd
[user@hamm rra]$
so cacti is not responsable or yes ???
when i run the php -q poller.php than i get graphs in cacti but Nan so the main problem is rrd right ???
i issued the following command:
[user@hamm cacti]$ php -q poller.php
OK u:0.00 s:0.00 r:0.03
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.08
OK u:0.00 s:0.00 r:0.10
OK u:0.00 s:0.01 r:0.12
OK u:0.00 s:0.01 r:0.12
OK u:0.01 s:0.01 r:0.14
OK u:0.01 s:0.01 r:0.14
OK u:0.01 s:0.01 r:0.16
OK u:0.01 s:0.01 r:0.16
OK u:0.01 s:0.01 r:0.16
OK u:0.01 s:0.01 r:0.18
01/10/2007 10:29:39 AM - SYSTEM STATS: Time:1.1946 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:6
[user@hamm cacti]$ cd rra
[user@hamm rra]$ ls
localhost_proc_7.rrd mc3810_5min_cpu_24.rrd mc3810_traffic_in_22.rrd
localhost_users_6.rrd mc3810_traffic_in_21.rrd mc3810_traffic_in_23.rrd
[user@hamm rra]$
so cacti is not responsable or yes ???
-
- Posts: 29
- Joined: Mon Jan 08, 2007 11:07 am
no graph in cacti
i added an line in crontab
where is says path invalid ...
so crontab is not running poller at all ...
I will re install the whole computer becasue now it is getting to advanced and my manager wants to see results right now so i will re install and install cacti from cactis homepage rather than using rpm:s from CentOs and hope it will get better.
thank you and if i get back to the same kind of problems i will be back and read all the comments ...
where is says path invalid ...
so crontab is not running poller at all ...
I will re install the whole computer becasue now it is getting to advanced and my manager wants to see results right now so i will re install and install cacti from cactis homepage rather than using rpm:s from CentOs and hope it will get better.
thank you and if i get back to the same kind of problems i will be back and read all the comments ...
Re: no graph in cacti
I'm guessing the command you entered in crontab was incorrect then, if it was complaining that the path was invalid. Hard to say without seeing what you had in crontab. Don't forget that the php command you specify in crontab needs the path to the poller.php file, not the web URL (such as /var/www/cacti/poller.php, not /cacti/poller.php)mnilsson@udcom.net wrote:i added an line in crontab
where is says path invalid ...
so crontab is not running poller at all ...
If you're getting graphs, but they contain "NaN" that could be caused by a variety of well-documented mis-configurations. Take a look at:mnilsson@udcom.net wrote: I will re install the whole computer becasue now it is getting to advanced and my manager wants to see results right now so i will re install and install cacti from cactis homepage rather than using rpm:s from CentOs and hope it will get better.
thank you and if i get back to the same kind of problems i will be back and read all the comments ...
http://docs.cacti.net/node/283
Brent
-
- Posts: 29
- Joined: Mon Jan 08, 2007 11:07 am
Hi
thank you for the reply ...
I installed the cacti from dags repository and it added more packages but i could not see what it added but i hade an page to install cacti using another repository and it is working fine except that the graph is not doing the average of the values seems to be taking the value direct without doing anything ...
Do you have any idea ???, this happens on all my graphs including the default traffic graphs that cacti provides me with when i create the host.
Matthias
thank you for the reply ...
I installed the cacti from dags repository and it added more packages but i could not see what it added but i hade an page to install cacti using another repository and it is working fine except that the graph is not doing the average of the values seems to be taking the value direct without doing anything ...
Do you have any idea ???, this happens on all my graphs including the default traffic graphs that cacti provides me with when i create the host.
Matthias
Well, this is one of the reasons I don't use pre-packaged installs of cacti (or net-snmp). You never know what the person who made the packages customized or what they did or expect you to do after installing the package. I sometimes spend more time looking for the post-installation configuration tasks than if I'd just installed stuff myself.mnilsson@udcom.net wrote:Hi
I installed the cacti from dags repository and it added more packages but i could not see what it added but i hade an page to install cacti using another repository and it is working fine except that the graph is not doing the average of the values seems to be taking the value direct without doing anything ...
Do you have any idea ???, this happens on all my graphs including the default traffic graphs that cacti provides me with when i create the host.
I typically use packages to install things like apache or php because I don't need to do much (if any) customization of them after installing the packages and the pre-built binaries usually have compiled in support for what I need. Cacti, rrdtool, and net-snmp I generally build/install myself (not trusting any distro to provide updates when I need 'em).
But since you're there already, I'd say go browse those pages gandalf put up on docs.cacti.net.
I suppose it might also be a bug in whatever version of rrdtool you've got installed (rrdtool is responsible for generating the graphs, after all). It might be worth downloading, compiling and installing the latest rrdtool and configuring cacti to use it instead of the one (I assume) you installed from a package.
Or alternatively, you could download cacti yourself, extract it in a different directory than the one used by the packaged version, setup a new mysql database for this 2nd cacti instance, and start fresh. Oh, and don't forget to also download the 3 or 4 patches that are out for the latest version of cacti.
Who is online
Users browsing this forum: No registered users and 15 guests