cacti Apache Web Hits the graph is empty
Moderators: Developers, Moderators
cacti Apache Web Hits the graph is empty
Hi
I've installed the cacti Version 0.6.8a on linux SuSE8.1
By default I get all system graphs like Load Average, Memory Usage,
Logged In Users etc.
Only the Apache web Hits graph is empty and I don't know why:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Apache Web Hits" \
--rigid \
--base=1000 \
--height=150 \
--width=500 \
--alt-autoscale \
--vertical-label="Hits" \
DEF:a="/srv/www/htdocs/cacti/rra/system_webhits.rrd":system_webhits:AVERAGE \
CDEF:cdefa=a,300,* \
AREA:cdefa#7EE600:"Web Hits" \
GPRINT:cdefa:LAST:"Current\:%8.0lf" \
GPRINT:cdefa:AVERAGE:"Average\:%8.0lf" \
GPRINT:cdefa:MAX:"Maximum\:%8.0lf\n"
Should I change someting at my apache configuration ?
I tried to atack my apache with the web stress tool ,
but still no entries !
Regards
chris
I've installed the cacti Version 0.6.8a on linux SuSE8.1
By default I get all system graphs like Load Average, Memory Usage,
Logged In Users etc.
Only the Apache web Hits graph is empty and I don't know why:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Apache Web Hits" \
--rigid \
--base=1000 \
--height=150 \
--width=500 \
--alt-autoscale \
--vertical-label="Hits" \
DEF:a="/srv/www/htdocs/cacti/rra/system_webhits.rrd":system_webhits:AVERAGE \
CDEF:cdefa=a,300,* \
AREA:cdefa#7EE600:"Web Hits" \
GPRINT:cdefa:LAST:"Current\:%8.0lf" \
GPRINT:cdefa:AVERAGE:"Average\:%8.0lf" \
GPRINT:cdefa:MAX:"Maximum\:%8.0lf\n"
Should I change someting at my apache configuration ?
I tried to atack my apache with the web stress tool ,
but still no entries !
Regards
chris
still no graph
Hi
I did chmod +r /var/log/apache/access.log, but still no graph.
I did chmod +r /var/log/apache/access.log, but still no graph.
Hi
Sorry, what I did exact:
linux:~ # cd /var/log/httpd
linux:/var/log/httpd # chmod +r access_log
I did correct, otherwise I get error.
Still doesn't work !
At other linux server is working and I cheked all configurations
many times. They are the same.
I thing is NOT the chmod problem, because at other linux I didn't chmod
anything and is working.
Regards
linux:~ # cd /var/log/httpd
linux:/var/log/httpd # chmod +r access_log
I did correct, otherwise I get error.
Still doesn't work !
At other linux server is working and I cheked all configurations
many times. They are the same.
I thing is NOT the chmod problem, because at other linux I didn't chmod
anything and is working.
Regards
Hi
The source is:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Apache Web Hits" \
--rigid \
--base=1000 \
--height=150 \
--width=500 \
--alt-autoscale \
--vertical-label="Hits" \
DEF:a="/srv/www/htdocs/cacti/rra/system_webhits.rrd":system_webhits:AVERAGE \
CDEF:cdefa=a,300,* \
AREA:cdefa#00A0C1:"Web Hits" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n"
The data configuration is:
/usr/bin/rrdtool create \
/srv/www/htdocs/cacti/rra/system_webhits.rrd \
--step 300 \
DS:system_webhits:COUNTER:600:0:100000 \
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 \
Name: The name used for RRA files, among other things; no spaces or strange characters.
system_webhits
(Optional) Internal Data Source Name: The name of the data source used by rrdtool, by default this name is the same as the Data Source Name. However it may need to be changed for compatability with other RRA's.
system_webhits
(Optional) Data Source Path: Used only if the data source lies in a different directory; you must include_once the full path to the RRA file.
<path_rra>/system_webhits.rrd
Data Source Type: The type of data that is being represented.
COUNTER
Data Input Type: What is used to gather the data for use in RRA files and on graphs.
GET WEB HITS
Associated RRA's: Which RRA's to use when entering data. (It is recommended that you select all of these values)
Daily ( 5 Minute Average )
Weekly ( 30 Minute Average )
Monthly ( 2 Hour Average )
Yearly ( 1 Day Avergae )
Heartbeat: The maximum amount of time that can pass before data is entered as "unknown". (Usually 600)
600
Step: Specifies the base interval in seconds with which data will be fed into the .rrd file. (Usually 300)
300
Minimum Value: The minimum value of data that is allowed to be collected.
0
Maximum Value: The maximum value of data that is allowed to be collected (number must be smaller than max value).
100000
Update .rrd File: Update the .rrd file in addition the cacti's database when saving these changes.
Update Changes in .rrd File
Active: Whether data is currently be collected for this data source.
x Data Source Currently Active ( enabled )
Regards
Chris
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Apache Web Hits" \
--rigid \
--base=1000 \
--height=150 \
--width=500 \
--alt-autoscale \
--vertical-label="Hits" \
DEF:a="/srv/www/htdocs/cacti/rra/system_webhits.rrd":system_webhits:AVERAGE \
CDEF:cdefa=a,300,* \
AREA:cdefa#00A0C1:"Web Hits" \
GPRINTLAST:"Current\:%8.0lf" \
GPRINTAVERAGE:"Average\:%8.0lf" \
GPRINTMAX:"Maximum\:%8.0lf\n"
The data configuration is:
/usr/bin/rrdtool create \
/srv/www/htdocs/cacti/rra/system_webhits.rrd \
--step 300 \
DS:system_webhits:COUNTER:600:0:100000 \
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 \
Name: The name used for RRA files, among other things; no spaces or strange characters.
system_webhits
(Optional) Internal Data Source Name: The name of the data source used by rrdtool, by default this name is the same as the Data Source Name. However it may need to be changed for compatability with other RRA's.
system_webhits
(Optional) Data Source Path: Used only if the data source lies in a different directory; you must include_once the full path to the RRA file.
<path_rra>/system_webhits.rrd
Data Source Type: The type of data that is being represented.
COUNTER
Data Input Type: What is used to gather the data for use in RRA files and on graphs.
GET WEB HITS
Associated RRA's: Which RRA's to use when entering data. (It is recommended that you select all of these values)
Daily ( 5 Minute Average )
Weekly ( 30 Minute Average )
Monthly ( 2 Hour Average )
Yearly ( 1 Day Avergae )
Heartbeat: The maximum amount of time that can pass before data is entered as "unknown". (Usually 600)
600
Step: Specifies the base interval in seconds with which data will be fed into the .rrd file. (Usually 300)
300
Minimum Value: The minimum value of data that is allowed to be collected.
0
Maximum Value: The maximum value of data that is allowed to be collected (number must be smaller than max value).
100000
Update .rrd File: Update the .rrd file in addition the cacti's database when saving these changes.
Update Changes in .rrd File
Active: Whether data is currently be collected for this data source.
x Data Source Currently Active ( enabled )
Regards
Chris
debian webhit
Hi, on all my debian systems the webhit did not work... the problem turned to be the read access to the access.log
So... make it readable for cacti
So... make it readable for cacti
Hi
I did, but it doesn't help.
I have 3 linux server: all with the same cacti Configuration.
At two of them ( SuSE 8.0 & SuSE 8.1 ) webhits are working
and only one is NOT working ( SuSE 8.1 ).
At those 2 computers, where webhits are working,
I didn't chomd anything, I mean the access_log.
I don't understand that !
Regards
Christoph
I have 3 linux server: all with the same cacti Configuration.
At two of them ( SuSE 8.0 & SuSE 8.1 ) webhits are working
and only one is NOT working ( SuSE 8.1 ).
At those 2 computers, where webhits are working,
I didn't chomd anything, I mean the access_log.
I don't understand that !
Regards
Christoph
Who is online
Users browsing this forum: No registered users and 1 guest