graphs showing up as broken links
Moderators: Developers, Moderators
graphs showing up as broken links
Hello.
I`ve just installed cacti on FC5.
Just started adding devices, but graphs are showing up as broken links.
Can anybody point me in the right direction?.
I`ve just installed cacti on FC5.
Just started adding devices, but graphs are showing up as broken links.
Can anybody point me in the right direction?.
Last edited by superdust on Tue Oct 31, 2006 3:11 pm, edited 1 time in total.
Thank you for replying.
- wrong permissions
The permissions for the rra and log folder is set to 755, cactiuser is owner.
- crontab entry missing or wrong
*/5 * * * * cactiuser php /usr/share/cacti/poller.php > /dev/null 2>&1
- lack of disk storage
No.
Any tests I can run?
I use FC5 and installed all tools with yum.
- wrong permissions
The permissions for the rra and log folder is set to 755, cactiuser is owner.
- crontab entry missing or wrong
*/5 * * * * cactiuser php /usr/share/cacti/poller.php > /dev/null 2>&1
- lack of disk storage
No.
Any tests I can run?
I use FC5 and installed all tools with yum.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Place the full path to php in your cron job.
[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]
[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]
Thank you rony.
-crontab entry is now
*/5 * * * * cactiuser /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Still the same error message from rdtool
ERROR: opening '/usr/share/cacti/rra/localhost_users_6.rrd': No such file or directory
I also tried
-php /usr/share/cacti/poller_reindex_hosts.php -id=All
outputs: "WARNING: Do not interrupt this script. Reindexing can take quite some time" and then drops back to ".[root@localhost cacti]#"
-php /usr/share/cacti/rebuild_poller_cache.php
outputs: "PHP Warning: include_once(./lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/rebuild_poller_cache.php on line 35
PHP Warning: include_once(): Failed opening './lib/utility.php' for inclusion (include_path='.:/usr/share/pear') in /usr/share/cacti/rebuild_poller_cache.php on line 35
WARNING: Do not interrupt this script. Rebuilding the Poller Cache can take quite some time
.PHP Fatal error: Call to undefined function update_poller_cache() in /usr/share/cacti/rebuild_poller_cache.php on line 95"
-php /usr/share/cacti/poller.php
outputs: "10/29/2006 11:59:42 AM - SYSTEM STATS: Time:1.0536 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0"
-crontab entry is now
*/5 * * * * cactiuser /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Still the same error message from rdtool
ERROR: opening '/usr/share/cacti/rra/localhost_users_6.rrd': No such file or directory
I also tried
-php /usr/share/cacti/poller_reindex_hosts.php -id=All
outputs: "WARNING: Do not interrupt this script. Reindexing can take quite some time" and then drops back to ".[root@localhost cacti]#"
-php /usr/share/cacti/rebuild_poller_cache.php
outputs: "PHP Warning: include_once(./lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/rebuild_poller_cache.php on line 35
PHP Warning: include_once(): Failed opening './lib/utility.php' for inclusion (include_path='.:/usr/share/pear') in /usr/share/cacti/rebuild_poller_cache.php on line 35
WARNING: Do not interrupt this script. Rebuilding the Poller Cache can take quite some time
.PHP Fatal error: Call to undefined function update_poller_cache() in /usr/share/cacti/rebuild_poller_cache.php on line 95"
-php /usr/share/cacti/poller.php
outputs: "10/29/2006 11:59:42 AM - SYSTEM STATS: Time:1.0536 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0"
-php /usr/share/cacti/poller.php
With Debug level Debug outputs:
With Debug level Debug outputs:
Code: Select all
[root@localhost ~]# php /usr/share/cacti/poller.php
11/01/2006 11:03:11 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /usr/share/cacti/cmd.php 0 1]
11/01/2006 11:03:12 PM - SYSTEM STATS: Time:1.0537 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Well, I use links as well for my rra directory. rra/ points to /var/lib/cacti/? Files are populated/updated? Does your web server's user has at least read access to the files? See httpd's error_log ...superdust wrote:Ok, haven`t had time to work on cacti for a while.
I see that in /usr/share/cacti the rra folders are just a shortcut, the actual folder are in /var/lib/cacti/
Could that be a problem?.
Where would I change this path?
Reinhard
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
How about this approach instead:
1) Set logging to DEBUG
2) CD to the Cacti Directory
3) Run the following: "php <path_cacti>/cmd.php"
4) Post output.
Then, once that output is seen, we can talk. Also, look at your Poller Cache and make sure things look correct. With as few hosts as you have, I think it's just a learning exercise.
TheWitness
1) Set logging to DEBUG
2) CD to the Cacti Directory
3) Run the following: "php <path_cacti>/cmd.php"
4) Post output.
Then, once that output is seen, we can talk. Also, look at your Poller Cache and make sure things look correct. With as few hosts as you have, I think it's just a learning exercise.
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?
Thank you for your time.
The output of: "php <path_cacti>/cmd.php"
The poller cache is in the rra directory right?.
That directory is empty.
The output of: "php <path_cacti>/cmd.php"
Code: Select all
[root@localhost cacti]# php /usr/share/cacti/cmd.php
11/20/2006 08:57:55 AM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
11/20/2006 08:57:55 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /usr/share/ca cti/scripts/linux_memory.pl MemFree:, output: 2752
11/20/2006 08:57:55 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/share/ca cti/scripts/linux_memory.pl SwapFree:, output: 178048
11/20/2006 08:57:56 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /usr/share/ca cti/scripts/loadavg_multi.pl, output: 1min:0.17 5min:0.05 10min:0.01
11/20/2006 08:57:56 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /usr/share/ca cti/scripts/unix_users.pl , output: 2
11/20/2006 08:57:56 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /usr/share/ca cti/scripts/unix_processes.pl, output: 106
11/20/2006 08:57:56 AM - CMDPHP: Poller[0] Time: 2.7145 s, Theads: N/A, Hosts: 1
[root@localhost cacti]#
That directory is empty.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Do the following:
mysql -u root -p cacti
select count(*) from poller_output;
Report back. Your poller is working. This likely is a permissions issue.
TheWitness
mysql -u root -p cacti
select count(*) from poller_output;
Report back. Your poller is working. This likely is a permissions issue.
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