Graph templates for Squid
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 150
- Joined: Sat Jul 30, 2005 2:15 pm
what I would like to see
If we could get these graphs to work, I'd like to see these:lvm wrote:Thanks for posting that. I will give it a try. Does anyone know, what additional OIDs whould yield interesting results?
Reinhard
Code: Select all
SQUID-MIB::cacheRequestHitRatio.1 = INTEGER: 0
SQUID-MIB::cacheRequestHitRatio.5 = INTEGER: 0
SQUID-MIB::cacheRequestHitRatio.60 = INTEGER: 0
-
- Posts: 10
- Joined: Tue Mar 01, 2005 11:59 am
additional squid templates
Hey guys, i have some other templates that i use to monitor my squid servers and their performance. Hopefully they help someone else.
- Attachments
-
- cacti_graph_template_squid_cache.xml
- Shows total cache, used cache and amount of objects. The Y axis doesn't jive as its the number of objects AND cache size in MB, but i didn't want separate graphs.
- (19.58 KiB) Downloaded 3011 times
-
- cacti_graph_template_squid_file_descriptors.xml
- Shows remaining file descriptors. We ran out once and began moniroting.
- (14.38 KiB) Downloaded 2896 times
-
- cacti_graph_template_squid_http_data.xml
- Looks to be pretty close to the data template that was initially posted but this one also includes data saved and it's percentage.
- (23.49 KiB) Downloaded 3375 times
-
- cacti_graph_template_squid_http_requests.xml
- Shows the amount of requests and hits.
- (16.23 KiB) Downloaded 3302 times
-
- cacti_graph_template_squid_http_service_times.xml
- Shows hit, miss and dns service times. This has saved me a couple times as well.
- (19.55 KiB) Downloaded 3898 times
gandalf wrote:Would you please mind to post some screenshots?
Reinhard
- Attachments
-
- graph_image_time.png (29 KiB) Viewed 23291 times
-
- graph_image_objects.png (19.83 KiB) Viewed 23292 times
-
- graph_image_httpreq.png (36 KiB) Viewed 23293 times
-
- graph_image_httpdata.png (38.81 KiB) Viewed 23294 times
-
- graph_image_filedescr.png (31.28 KiB) Viewed 23297 times
-
- Posts: 10
- Joined: Tue Mar 01, 2005 11:59 am
New template pics
Sorry for the delay, here are some examples.
- Attachments
-
- cache.png (23.56 KiB) Viewed 23275 times
-
- FD.png (22.34 KiB) Viewed 23275 times
-
- data.png (41.48 KiB) Viewed 23275 times
-
- req.png (32.4 KiB) Viewed 23275 times
-
- stimes.png (36.89 KiB) Viewed 23275 times
Re: additional squid templates
Hey,bshoebottom wrote:Hey guys, i have some other templates that i use to monitor my squid servers and their performance. Hopefully they help someone else.
I'm trying to import these templates, but recieve following error:
Code: Select all
Error: XML: Hash version does not exist.
I'm using cacti 0.8.6h
Re: additional squid templates
I experience the same. It's because the graphs were exported with version 0.8.6j.brononi wrote:Hey,bshoebottom wrote:Hey guys, i have some other templates that i use to monitor my squid servers and their performance. Hopefully they help someone else.
I'm trying to import these templates, but recieve following error:I'm doing in the left menu 'import templates'Code: Select all
Error: XML: Hash version does not exist.
I'm using cacti 0.8.6h
bshoebottom - is there any way you can backport these to version 'h' or 'i'? I'd really like to use the templates you've offered but the debian cacti release that I use is frozen at 0.8.6i.
-
- Posts: 10
- Joined: Tue Mar 01, 2005 11:59 am
backport
are there working backport instructions available? I can try, but have a limited schedule.
Re: backport
To be honest, I don't think so. I guess I'll have to wait for Debian/testing to upgrade to 0.8.6j.bshoebottom wrote:are there working backport instructions available? I can try, but have a limited schedule.
Hi All,
I get the following error with the HTTP DATA template from rrdtool and I'm a bit stumped. I tried to hunt through and find what could be causing the problem but I am a bit lacking in knowledge with rrdtool.
Any suggestions out there?
Thanks,
David
I get the following error with the HTTP DATA template from rrdtool and I'm a bit stumped. I tried to hunt through and find what could be causing the problem but I am a bit lacking in knowledge with rrdtool.
Any suggestions out there?
Thanks,
David
/usr/local/rrdtool-1.2.15/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="au-bne-squid - HTTP Data" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
DEF:a="/var/www/html/cacti-0.8.6j/rra/aubnesquid_http_data_received_881.rrd":http_data_received:AVERAGE \
DEF:b="/var/www/html/cacti-0.8.6j/rra/aubnesquid_http_data_sent_883.rrd":http_data_sent:AVERAGE \
DEF:c="/var/www/html/cacti-0.8.6j/rra/aubnesquid_http_data_saved_882.rrd":http_data_saved:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
CDEF:cdefi=cdefa,0,EQ,0,cdefb,100,*,cdefa,/,1024,/,IF,0,110,LIMIT,TIME,1175219125,GT,a,a,UN,0,a,IF,IF,TIME,1175219125,GT,b,b,UN,0,b,IF,IF,TIME,1175219125,GT,c,c,UN,0,c,IF,IF,TIME,1175219125,GT,c,c,UN,0,c,IF,IF,+,+,+,*,1024,* \
AREA:cdefa#00CF00:"Received" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n" \
LINE1:cdefe#002A97:"Sent" \
GPRINT:cdefe:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Max\:%8.2lf %s\n" \
LINE1:cdefi#FF0000:"Saved" \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Max\:%8.2lf %s\n" \
LINE1:c#000000:"Saved %" \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Max\:%8.2lf %s"
RRDTool Says:
ERROR: invalid rpn expression in: cdefa,0,EQ,0,cdefb,100,*,cdefa,/,1024,/,IF,0,110,LIMIT,TIME,1175219125,GT,a,a,UN,0,a,IF,IF,TIME,1175219125,GT,b,b,UN,0,b,IF,IF,TIME,1175219125,GT,c,c,UN,0,c,IF,IF,TIME,1175219125,GT,c,c,UN,0,c,IF,IF,+,+,+,*,1024,*
Ok, the problem is with this line;
The 'cdefb' doesn't exist and instead is called cdefe. I fixed the problem by going to Graph Management -> CDEFS and edit the Squid - Calculate Percentage of Storage item. Edit the first item and changed cdefb to cdefe.
Code: Select all
CDEF:cdefi=cdefa,0,EQ,0,cdefb,100,*,cdefa,/,1024,/,IF,0,110,LIMIT,TIME,1175219125,GT,a,a,UN,0,a,IF,IF,TIME,1175219125,GT,b,b,UN,0,b,IF,IF,TIME,1175219125,GT,c,c,UN,0,c,IF,IF,TIME,1175219125,GT,c,c,UN,0,c,IF,IF,+,+,+,*,1024,* \
The HTTP Data template doesn't work for me as the graph doesn't appear. When I turn on debugging for the Graph Template the drop-down box for the Graph Template list doesn't fully populate and the page doesn't finish loading. Also, in the apache logs the child process keeps crashing:
[Thu May 03 16:50:45 2007] [notice] child pid 10456 exit signal Segmentation fault (11)
[Thu May 03 16:50:47 2007] [notice] child pid 10487 exit signal Segmentation fault (11)
[Thu May 03 16:51:13 2007] [notice] child pid 10517 exit signal Segmentation fault (11)
Gentoo Linux AMD64 2.6.18-hardened
cacti-0.8.6j-r4
net-snmp-5.4
apache-2.0.58-r2
php-5.2.1-r3
I tried apache & php with and without threads, didn't make a difference though.
[Thu May 03 16:50:45 2007] [notice] child pid 10456 exit signal Segmentation fault (11)
[Thu May 03 16:50:47 2007] [notice] child pid 10487 exit signal Segmentation fault (11)
[Thu May 03 16:51:13 2007] [notice] child pid 10517 exit signal Segmentation fault (11)
Gentoo Linux AMD64 2.6.18-hardened
cacti-0.8.6j-r4
net-snmp-5.4
apache-2.0.58-r2
php-5.2.1-r3
I tried apache & php with and without threads, didn't make a difference though.
Who is online
Users browsing this forum: No registered users and 0 guests