cacti Apache Web Hits the graph is empty

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

Moderators: Developers, Moderators

cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

cacti Apache Web Hits the graph is empty

Post by cc »

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
User avatar
ablyler
Posts: 40
Joined: Tue Mar 19, 2002 7:00 pm
Location: Ann Arbor, MI
Contact:

Post by ablyler »

Did you check the datasource to make sure it is pointing to the location of your access_log?
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Hi

Post by cc »

Hi

You mean, the path at rrdtool Data Source Configuration:
/var/log/httpd/access_log
it is OK.

Regards
chris
Guest

Post by Guest »

chmod +r /var/log/apache/access.log
solved it
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

still no graph

Post by cc »

Hi

I did chmod +r /var/log/apache/access.log, but still no graph.
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Some posts earlier you wrote that your log file is /var/log/httpd/access_log. Why do you make chmod on /var/log/apache/access.log?

- bulek
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Hi

Post by cc »

Hi

Sorry, I did chmod +r /var/log/httpd/access.log,
but I wrote wrong.
It doesn't help and still NO GRAPH.

Rgerdas
Chris
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Still the names are different: access_log and access.log - maybe this is the reason of your ptroblems?

- bulek
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Hi

Post by cc »

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
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

Chris, you receive the same quality level answers as the data provided by you :-?

Can you post rrdtool create commandline wisible at the top of the page with data source configuration?

- bulek
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Hi

Post by cc »

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" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"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
SeeniX

debian webhit

Post by SeeniX »

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
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Hi

Post by cc »

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
cc
Cacti User
Posts: 71
Joined: Fri Sep 27, 2002 3:09 am
Location: CH

Post by cc »

Hi

My access_log is now:

linux: /var/log/httpd # ls -l
-rw-r--r-- 1 cactiuser root 355207 Mar 7 20:55 access_log

Still doesn't work.

Regards
Christoph
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

How does look like your rrdtool update command line (you can find it when you click "Edit Data" link near your data source name).

- bulek
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest