rrdtool permission denied
Moderators: Developers, Moderators
rrdtool permission denied
hi,
I have installed CACTI and other related packages in RHEL 4.4 and everything will installed perfectly. But when i create a graph then the debug returned:
RRDTool Command:
/usr/local/rrdtool-1.0.50/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Banani_Client_Gataway - Traffic - Et0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/banani_client_gataway_traffic_in_10.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/banani_client_gataway_traffic_in_10.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"
RRDTool Says:
sh: /usr/local/rrdtool-1.0.50/bin/rrdtool: Permission denied
I set the permission of rrdtools as
-rwxrwxrwx 1 root root 824863 May 12 18:44 /usr/local/rrdtool-1.0.50/bin/rrdtool
But the problem is the same.
The tail -f /var/log/httpd/error_log is shown:
sh: /usr/local/rrdtool-1.0.50/bin/rrdtool: Permission denied
I am tried to solved the problem. So Plz help me
Thanks and regards
Mahbub
NOC Engieer
I have installed CACTI and other related packages in RHEL 4.4 and everything will installed perfectly. But when i create a graph then the debug returned:
RRDTool Command:
/usr/local/rrdtool-1.0.50/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Banani_Client_Gataway - Traffic - Et0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/banani_client_gataway_traffic_in_10.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/banani_client_gataway_traffic_in_10.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"
RRDTool Says:
sh: /usr/local/rrdtool-1.0.50/bin/rrdtool: Permission denied
I set the permission of rrdtools as
-rwxrwxrwx 1 root root 824863 May 12 18:44 /usr/local/rrdtool-1.0.50/bin/rrdtool
But the problem is the same.
The tail -f /var/log/httpd/error_log is shown:
sh: /usr/local/rrdtool-1.0.50/bin/rrdtool: Permission denied
I am tried to solved the problem. So Plz help me
Thanks and regards
Mahbub
NOC Engieer
yeah i have disable the SuLinux and the graph is working. Thanks a lot..
But after that when i create a new graph the rrdtools gives the following message>
RRDTool Command:
/usr/local/rrdtool-1.0.50/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="motijheel_client_gateway - Traffic - Et0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/motijheel_client_gateway_traffic_in_24.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/motijheel_client_gateway_traffic_in_24.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/motijheel_client_gateway_traffic_in_24.rrd': No such file or directory
Plz give me the solution
Thanks and regards
Mahbub
NOC engineer
But after that when i create a new graph the rrdtools gives the following message>
RRDTool Command:
/usr/local/rrdtool-1.0.50/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="motijheel_client_gateway - Traffic - Et0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/motijheel_client_gateway_traffic_in_24.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/motijheel_client_gateway_traffic_in_24.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/motijheel_client_gateway_traffic_in_24.rrd': No such file or directory
Plz give me the solution
Thanks and regards
Mahbub
NOC engineer
after adding a new device , i create a graph for it. no problem..
But when I wanna show the graph then debug mode show that
RRDTool Command:
/usr/local/rrdtool-1.0.50/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="BTTB Bridge Router - Traffic - Et0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or directory
And really I don't find the created rrd file in rra directory.
permission of rra directory is
8047535 drwxrwxr-x 2 mahbub root 4096 May 16 13:12 rra
(mahbub is the CACTI user)
CACTI log file show
05/17/2008 02:40:05 PM - SYSTEM STATS: Time:3.2359 Method:cmd.php Processes:1 Th reads:N/A Hosts:9 HostsPerProcess:9 DataSources:22 RRDsProcessed:15
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[14] WARNING: Result from S NMP not valid. Partial Result:
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[15] WARNING: Result from S NMP not valid. Partial Result:
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[16] WARNING: Result from S NMP not valid. Partial Result:
Note: HOST 2 is my 1st device which some graphs are working and CPU(DS14,DS15,DS16), usages graphs have no DATA..
DS [14] log show that
Data Source Debug
/usr/local/rrdtool-1.0.50/bin/rrdtool create \
/var/www/html/cacti/rra/banani_client_gataway_cpu_user_16.rrd \
--step 300 \
DS:cpu_user:COUNTER:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
The HTTPd log show
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
Now what is the problem with CACTI ...
I think rrdtools is not working becoz it cann't create the rrd file..
Plz help me
Mahbub
NOC Engineer
But when I wanna show the graph then debug mode show that
RRDTool Command:
/usr/local/rrdtool-1.0.50/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="BTTB Bridge Router - Traffic - Et0/0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or directory
And really I don't find the created rrd file in rra directory.
permission of rra directory is
8047535 drwxrwxr-x 2 mahbub root 4096 May 16 13:12 rra
(mahbub is the CACTI user)
CACTI log file show
05/17/2008 02:40:05 PM - SYSTEM STATS: Time:3.2359 Method:cmd.php Processes:1 Th reads:N/A Hosts:9 HostsPerProcess:9 DataSources:22 RRDsProcessed:15
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[14] WARNING: Result from S NMP not valid. Partial Result:
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[15] WARNING: Result from S NMP not valid. Partial Result:
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[16] WARNING: Result from S NMP not valid. Partial Result:
Note: HOST 2 is my 1st device which some graphs are working and CPU(DS14,DS15,DS16), usages graphs have no DATA..
DS [14] log show that
Data Source Debug
/usr/local/rrdtool-1.0.50/bin/rrdtool create \
/var/www/html/cacti/rra/banani_client_gataway_cpu_user_16.rrd \
--step 300 \
DS:cpu_user:COUNTER:600:0:100 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
The HTTPd log show
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
ERROR: opening '/var/www/html/cacti/rra/bttb_bridge_router_traffic_in_30.rrd': No such file or dire ctory
Now what is the problem with CACTI ...
I think rrdtools is not working becoz it cann't create the rrd file..
Plz help me
Mahbub
NOC Engineer
Thanks for ur suggestion. Here is the general information:
Date Sat, 17 May 2008 18:35:45 +0600
Cacti Version 0.8.7b
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.0.x
Hosts 8
Graphs 12
Data Sources Script/Command: 5
SNMP: 3
SNMP Query: 7
Total: 15
I found in PHP information that PHP SNMP is not install. Is it necessary ??
PHP SNMP Not Installed
Thanks and Regards
Mahbub
NOC Engineer
Date Sat, 17 May 2008 18:35:45 +0600
Cacti Version 0.8.7b
Cacti OS unix
SNMP Version net-snmp
RRDTool Version RRDTool 1.0.x
Hosts 8
Graphs 12
Data Sources Script/Command: 5
SNMP: 3
SNMP Query: 7
Total: 15
I found in PHP information that PHP SNMP is not install. Is it necessary ??
PHP SNMP Not Installed
Thanks and Regards
Mahbub
NOC Engineer
As you say, some of graphs working, so you rrdtool works fine. Problem is with returned data. You still not enable a debug mode on cacti, please go to Settings -> General and change Poller Logging Level to DEBUG. Next paste log information.mahbub82 wrote: CACTI log file show
05/17/2008 02:40:05 PM - SYSTEM STATS: Time:3.2359 Method:cmd.php Processes:1 Th reads:N/A Hosts:9 HostsPerProcess:9 DataSources:22 RRDsProcessed:15
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[14] WARNING: Result from S NMP not valid. Partial Result:
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[15] WARNING: Result from S NMP not valid. Partial Result:
05/17/2008 02:44:03 PM - CMDPHP: Poller[0] Host[2] DS[16] WARNING: Result from S NMP not valid. Partial Result:
Note: HOST 2 is my 1st device which some graphs are working and CPU(DS14,DS15,DS16), usages graphs have no DATA..
Alex.
Who is online
Users browsing this forum: No registered users and 3 guests