rrdtool permission denied

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

Moderators: Developers, Moderators

Post Reply
mahbub82
Posts: 7
Joined: Mon May 12, 2008 7:52 am

rrdtool permission denied

Post by mahbub82 »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Is SELinux or stuff enabled?
Reinhard
mahbub82
Posts: 7
Joined: Mon May 12, 2008 7:52 am

Post by mahbub82 »

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
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Post by kanada »

What tell you a cacti log? Maybe try enable a debug mode?

Regards,
Alex.
mahbub82
Posts: 7
Joined: Mon May 12, 2008 7:52 am

Post by mahbub82 »

the Cacti Log File shown as

05/16/2008 11:36:05 AM - SYSTEM STATS: Time:4.3323 Method:cmd.php Processes:1 Threads:N/A Hosts:8 HostsPerProcess:8 DataSources:30 RRDsProcessed:19


Mahbub
NOC Engineer
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Post by kanada »

Can you post more information, not only ended system stats?

Alex.
mahbub82
Posts: 7
Joined: Mon May 12, 2008 7:52 am

Post by mahbub82 »

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
vpnnav
Posts: 16
Joined: Thu May 15, 2008 6:23 pm

Post by vpnnav »

Do you see In System Utilities> Technical Support :
ERROR: Installed RRDTool version does not match configured version.
Please visit the Configuration Settings and select the correct RRDTool Utility Version.
mahbub82
Posts: 7
Joined: Mon May 12, 2008 7:52 am

Post by mahbub82 »

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
dkundu
Posts: 1
Joined: Sun May 04, 2008 8:20 pm
Location: Sydney, Australia
Contact:

Post by dkundu »

But if you want to use cacti's cacti_snmp_* methods, cacti will check for php-snmp availability. If it's not there, cacti will switch silently to net-snmp-utils (snmpgetnext, snmpget and stuff).

So, from cacti's point of view, php-snmp is optional.
Life is beautiful
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Post by kanada »

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..
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.

Alex.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests