lighttpd Statistics - 1.0

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

liujitao
Posts: 1
Joined: Wed Sep 10, 2008 10:04 pm

Post by liujitao »

loke wrote:when running the script from command line I get
lighttpd_total_hits:695144 lighttpd_total_kbytes:4683115 lighttpd_uptime:263647 lighttpd_busy_servers:2

but when trying to graph in cacti I get

7/17/2007 10:35:05 AM - CMDPHP: Poller[0] Host[26] DS[515] WARNING: Result from SERVER not valid. Partial Result: WARNING: Function do
07/17/2007 10:35:05 AM - PHPSVR: Poller[0] WARNING: Function does not exist
solution:

# chown -R cacti:cacti ss_lighttpd_stats.php
# chmod 644 ss_lighttpd_stats.php

:)
glen
Posts: 9
Joined: Sun Oct 05, 2008 10:46 am

Post by glen »

in case anyone interested, i made some improvements to the script:

http://cvs.pld-linux.org/cgi-bin/cvsweb ... ttpd.patch

most important one is to accept HTTP/1.0 in response. in setings where you access the lighty server via squid proxy.
User avatar
white-jeroen
Posts: 25
Joined: Sat Mar 22, 2008 10:35 am

PHP4 version of lighttpd_stats_1.0

Post by white-jeroen »

Hi Folks.
I quickly changed the patched version of the script to work for PHP.
Have fun.
Attachments
lighttpd_stats_1.0_php4.tar.gz
PHP4 version of patched version of lighttpd_stats_1.0
(14.11 KiB) Downloaded 418 times
Jeroen Vermeulen BVBA - freelance PHP, Perl & Magento expert - http://www.jeroenvermeulen.eu/
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: PHP4 version of lighttpd_stats_1.0

Post by gandalf »

white-jeroen wrote:Hi Folks.
I quickly changed the patched version of the script to work for PHP.
Have fun.
Would you mind publishing the template to the template repository at http://docs.cacti.net/templates?
Reinhard
wallb
Posts: 5
Joined: Mon Nov 23, 2009 8:07 am

wrong values display templates

Post by wallb »

Hello, the php scripts wroks great, but I've some problems in display as you can see in my graphs in attachments. Displayed values are wrong !
Only the workload graph is good.
Any Idea ?
Regards,
Attachments
Display bytes / request
Display bytes / request
bytesrequest.JPG (36.87 KiB) Viewed 3488 times
Display kbits/s
Display kbits/s
kbittss.JPG (31.7 KiB) Viewed 3488 times
Display hits/s
Display hits/s
hitss.JPG (30.1 KiB) Viewed 3488 times
frenchpov
Posts: 1
Joined: Thu Nov 25, 2010 8:11 am

Re: lighttpd Statistics - 1.0

Post by frenchpov »

I have the same problem, displayed values are wrong
Any Idea ?
User avatar
pwajda
Posts: 8
Joined: Thu Mar 08, 2012 4:23 am
Location: Cracow, Poland

Re: wrong values display templates

Post by pwajda »

wallb wrote:Hello, the php scripts wroks great, but I've some problems in display as you can see in my graphs in attachments. Displayed values are wrong !
Only the workload graph is good.
Any Idea ?
Regards,
Hello,
do you restart service periodically?

If so, those parameters are COUNTERS and during service restart are resetting. rrdtool got problems with it. That's why.

regards
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests