Lightsquid and Lighttpd



  • Anybody used lightsquid?
    this is log analyser on the cgi/php scripts
    but this need apache.
    How can use lighttpd?
    I install lightsquid FreeBSD , but looking only blank pages.



  • Sorry, this is not supported.



  • @sullrich:

    Sorry, this is not supported.

    Yes, i know. But may be anybody hav this twin in FreeBSD.



  • Just successfully installed lightsquid on lighttpd (out of the box :)

    1. pkg_add -r lightsquid
    2. modify /usr/local/www/lightsquid/lightsquid.cfg file (make sure paths are OK)
    3. test run lightparser.pl
    4. check http(s)://yourbox:port/lightsquid/index.cgi
    5. add /etc/crontab job - */55    *      *      *      *      root    /usr/local/www/lightsquid/lightparser.pl today

    Still have to make lighttpd ask for auth on index.cgi.



  • Thx
    May be this to be pfSense package? :D



  • Maybe, I give my vote to it :)



  • @tdi:

    Maybe, I give my vote to it :)

    Yahooo - all fine worked
    Last version 1.7.1 but i don't find latest Ric skin - only for 1.5.

    PS pfPackage for this may be simplest I already write template ;D



  • So – I was thinking of doing the same thing, maintaining a package for PFSense that would be for squid log analysis.  Are you going to do this or???



  • Lightsquid as a pfSense package is a very good (useful) idea.



  • Yess - cron worked

    #crontab -e
    <esc>I
    */20 * * * * /usr/local/www/lightsquid/lightparser.pl <enter><esc>:wq</esc></enter></esc>



  • looking later



  • Pre-test scrinshot. What options do i need to add more?
    –--------
    Updated screenshot and gui files for test.
    PS cron temporary not activated - only make cfg




  • Maybe uupdate interval for the cronjob and an "process logs now" button to kick off log püarsing to have the latest info when viewing.



  • @hoba:

    Maybe uupdate interval for the cronjob and an "process logs now" button to kick off log püarsing to have the latest info when viewing.

    Thx
    "Process Logs now" Button - good idea  :D
    And may be add "Rotate Squid Log" cron job - where squid  developers not inserted this future to self package?



  • Look up gui files for test
    PS: it's not fo install - only test with alrady installed Lightsquid
    PS1: cron managment temporary disabled



  • @dvserg:

    Yess - cron worked

    #crontab -e
    <esc>I
    */20 * * * * /usr/local/www/lightsquid/lightparser.pl <enter><esc>:wq

    i VERY recomend

    #crontab -e
    <esc>I
    */20 * * * * /usr/local/www/lightsquid/lightparser.pl today <enter><esc>:wq</esc></enter></esc></esc></enter></esc>



  • @dvserg:

    Last version 1.7.1 but i don't find latest Ric skin - only for 1.5.

    PS pfPackage for this may be simplest I already write template ;D

    unfortunately as you say RIC template OUTDATE
    and now not support ALL features
    i not recomend to use it ;(

    if you have own template please send me, i add it in next release ;)



  • I not found template ric for 1.7.1
    But i change manualy ric versions in his modules to current (1.7.1) - and all ok  :P
    2 week active test - nothing any unsupported futures  :)
    May be this insurance by developer?
    –-------
    Thx for test crontab - i work with them 1 week - all passed.
    Now make installation package part (may be need 2-3 days)



  • The package needs to populate the crontab entries in config.xml that the recent snapshots support.

    If we can get this fixed I will consider adding this as a package for 1.2.



  • Sources for installation test
    Plz test this.
    –-----------
    Added buttons 'Reresh now' and 'Refresh full' for background refreshing of data

    'Refresh full' function scan to 100 rotated access.log files and update that.
    But all jobs start together  :( Have any way for queue command's? (may be pl script?)

    lightsquid.xml.txt
    pkg_config.xml.txt
    lightsquid.inc.txt



  • @dvserg:

    I not found template ric for 1.7.1
    But i change manualy ric versions in his modules to current (1.7.1) - and all ok  :P
    2 week active test - nothing any unsupported futures  :)
    May be this insurance by developer?
    –-------
    Thx for test crontab - i work with them 1 week - all passed.
    Now make installation package part (may be need 2-3 days)

    as author i say, RIC template outdated ;)
    some new features not supported in RIC template ;)

    if you make package, i recomend you not use RIC templete

    all features in ric - work fine, but new doesn't exist in it ;)



  • In this package Ric not installed Only Base and text
    ps Can you speek on russian?



  • @dvserg:

    In this package Ric not installed Only Base and text
    ps Can you speek on russian?

    yes, russian my native language ;)
    please welcome lightsquid <<>> gmail.com ;)



  • Very nice addition to pfsense! Keep on the work :)
    p.s. i'm russian too.



  • BIG thanks author lightsquid  :)
    ps Ok. I create topic in russian forum.



  • Has the package been corrected to utilize the pfSense cron config.xml capabilities?



  • @sullrich:

    Has the package been corrected to utilize the pfSense cron config.xml capabilities?

    ..khm..
    You about this?

            <modify_system><modifyfilename>/etc/crontab</modifyfilename>
    		 <textneeded>*/20       *       *       *       *       root   /usr/bin/perl /usr/local/www/lightsquid/lightparser.pl > /dev/null</textneeded> 
    
    	 <modifyfilename>/etc/crontab</modifyfilename>
    		 <textneeded>0       0       *       *       *       root   /usr/local/sbin/squid -k rotate > /dev/null</textneeded></modify_system> 
    

    This right?



  • No.

    See tdr_install_cron() from /etc/inc/pfsense-utils.inc on a recent snapshot.



  • Then I do not understand what needs to be done  >:(
    I want more detailed guidance



  • The cron entries need to be added to config.xml now.

    First, download config.xml from a recent snapshot and look how the items look.

    Now, CAREFULLY read that function that I pointed out that adds the items to cron.  The point is, you need to add items to cron in the same fashion that the function I showed you does… The function is an example only.



  • This files with new cron function (tested on 1.0.1-SNAPSHOT-03-27-2007)
    Cron task's safe setup to config.xml (But i I have to was set new field 'task_name' for safe).
    Now correctly add/delete only my jobs and block adding job's, if some job present in items list

    2 Scott:
    May be need write user's cron-function for safe install cron-jobs to config.xml?
    Or(and) create special 'pkg_cron' part in config.xml?

    lightsquid.inc.txt
    lightsquid.xml.txt



  • It needs to write the cron entries on installation and remove them on deinstallation.



  • This already realised. I tested success instal/deinstall.



  • will this be available as a package for pfsense?



  • @bsider:

    will this be available as a package for pfsense?

    Official package - may be for pfSense 1.2. In last step i create cron shedules for this versions compatible.
    Manually installation for current version - plz looking  previous sources posting



  • My new skin's for lightsquid - novosea (blue) and novopf (pf colors)
    Have 'Home button' - link to pfSense root page from lightsquid pages.
    –--------
    Update themes :( - re-archive 'novopf' theme. Now this must worked.
    Update GUI - added this 2 themes to menu. But this themes must be added manually to '/usr/local/www/lightsquid/tpl', another will used 'base' as default.

    lightsquid.zip.txt
    lightsquid_theme.zip.txt



  • now i'm testing lightsquid too…



  • troubles on install .. .can you lend  me lights ?  how can i install it ?



  • Looking topic about squidGuard on RU forum part  :)



  • i take squidguard.inc and .xml  … a pkg_config.xml and i cant installl .. something is missing ?

    do you have an new pkg_confi.xml ???


Log in to reply