Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


lighttpd Statistics - 1.0
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
liujitao



Joined: 10 Sep 2008
Posts: 1

PostPosted: Wed Sep 10, 2008 10:10 pm    Post subject: Reply with quote

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

Back to top
glen



Joined: 05 Oct 2008
Posts: 3

PostPosted: Sun Oct 05, 2008 10:52 am    Post subject: Reply with quote

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

http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/cacti-plugin-lighttpd.patch

most important one is to accept HTTP/1.0 in response. in setings where you access the lighty server via squid proxy.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group