can not find rrd files

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

Moderators: Developers, Moderators

Post Reply
seea
Posts: 2
Joined: Wed Oct 29, 2003 5:21 am
Location: Romania
Contact:

can not find rrd files

Post by seea »

There are no rrd files in rra/ ; why ?
What is whrong ?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Typically this means that you have incorrect permissions on the 'rra/' directory. Make sure the user 'cmd.php' runs as in cron has permission to create new files in this directory. You can test this by su'ing to that user at the command line and running 'php cmd.php' in Cacti's directory.

-Ian
2ndlaw
Posts: 6
Joined: Fri Oct 31, 2003 9:31 am

I, too, am not seeing anything in the /rra directory

Post by 2ndlaw »

I am trying to get a fresh install working on a RH9 system. I have everything set to root for the cactiuser to take care of any rights issues (I hope!) When I execute the "php cmd.php" command, things look normal, but nothing appears in the /rra directory. Any help would be appreciated.

Mike
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Post by SeanLee »

I'm also running on RH9. I'm not worried about security as much since this box is not in production, so to fix this "issue" you're experiencing, I did this from inside my cacti dir:

chmod -R 777 rra log

Hope this helps

Sean
2ndlaw
Posts: 6
Joined: Fri Oct 31, 2003 9:31 am

still no rrd files

Post by 2ndlaw »

I changes the privs as suggested in the previous post, but I still don't see any files in the rrd directory whenever I execute the "php cmd.php" command. My logs look OK. They say that my device is found using SNMP. The particular file is getting updated, but when I go to the directory specified...still no file.

Again, any additional help would be greatly appreciated.
using:
RH9
cacti 0.8.3a
mysql 4.2.2-17
net-snmp 5.0.9-4
whatever php comes with RH9

Thanks!

Mike
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Post by SeanLee »

Are you in a /home directory? IE my dir structure perms look like:

/home ---->755
|
/username ---->755
|
/html ---->755
|
/cacti ---->755
|
/log ---->777
/rra ---->777
2ndlaw
Posts: 6
Joined: Fri Oct 31, 2003 9:31 am

the continuing saga

Post by 2ndlaw »

As far as I can tell, I have the directories setup as listed in the previous post. I am still getting no files in the /rra directory. I am including the runtime message block for a the 'php cmd.php' command. Maybe there is something there that will detail the issue.

[hardware@localhost cacti1]$ php cmd.php
X-Powered-By: PHP/4.2.2
Content-type: text/html

command: perl /var/www/html/cacti1/scripts/linux_memory.pl MemFree:, output: 6052
sh: line 1: /usr/local/bin/rdtool: is a directory
command: perl /var/www/html/cacti1/scripts/linux_memory.pl SwapFree:, output: 777312
sh: line 1: /usr/local/bin/rdtool: is a directory
MUTLI command: perl /var/www/html/cacti1/scripts/loadavg_multi.pl, output: 1min:0.05 5min:0.09 10min:0.05
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value: 0.05
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value: 0.09
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value: 0.05
sh: line 1: /usr/local/bin/rdtool: is a directory
command: perl /var/www/html/cacti1/scripts/unix_users.pl, output: 6
sh: line 1: /usr/local/bin/rdtool: is a directory
command: perl /var/www/html/cacti1/scripts/unix_processes.pl, output: 87
sh: line 1: /usr/local/bin/rdtool: is a directory
snmp: 10.248.0.72, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.10, value: 1963154689
sh: line 1: /usr/local/bin/rdtool: is a directory
snmp: 10.248.0.72, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.10, value: 1098799903
sh: line 1: /usr/local/bin/rdtool: is a directory
update /var/www/html/cacti1/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:6052
sh: line 1: /usr/local/bin/rdtool: is a directory
update /var/www/html/cacti1/rra/localhost_mem_swap_4.rrd --template mem_swap N:777312
sh: line 1: /usr/local/bin/rdtool: is a directory
update /var/www/html/cacti1/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min N:0.05:0.09:0.05
sh: line 1: /usr/local/bin/rdtool: is a directory
update /var/www/html/cacti1/rra/localhost_users_6.rrd --template users N:6
sh: line 1: /usr/local/bin/rdtool: is a directory
update /var/www/html/cacti1/rra/localhost_proc_7.rrd --template proc N:87
sh: line 1: /usr/local/bin/rdtool: is a directory
update /var/www/html/cacti1/rra/west__ph_router_traffic_in_8.rrd --template traffic_in:traffic_out N:1963154689:1098799903
sh: line 1: /usr/local/bin/rdtool: is a directory
time: 1

---------------------------------------------------------------------------

again, any input anyone can offer will be greatly appreciated.

Mike
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Post by SeanLee »

Ahhh looks like it can't find the rrdtool binary.
Is /usr/local/bin/rdtool a directory? Maybe the rrdtool is actually located at /usr/local/bin/rdtool/bin/rrdtool instead? Make sure your paths are right in Cacti settings area.

Sean
2ndlaw
Posts: 6
Joined: Fri Oct 31, 2003 9:31 am

Post by 2ndlaw »

well, I thought about that, but the directory does exist as it shows in the output. I missed typed the rrdtool directory name when I was doing the install. Just for grins I can redo it to see if it makes a difference...

Mike
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Post by SeanLee »

fyi - it needs the /path/to/rrdtool/binary
not the /path/to/rrdtool/directory
:)

Sean
2ndlaw
Posts: 6
Joined: Fri Oct 31, 2003 9:31 am

Post by 2ndlaw »

ack! that's it! I thought it was the directory. I didn't catch the binary part. W00t! Thanks a bunch!

Mike
SeanLee
Posts: 44
Joined: Wed Oct 29, 2003 10:41 pm

Post by SeanLee »

N/P ;)

Now, if you get CPU/Disk graphs working under win2k - let me know! (I'm stuck heh)

*edit*
meaning, if you can actually graph windows machines. I'm running cacti under linux, but I want to graph my production windows boxes.
2ndlaw
Posts: 6
Joined: Fri Oct 31, 2003 9:31 am

Post by 2ndlaw »

will do! After I start showing off these graphs for our routers, that may be my next task!

thanks again,

Mike
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests