Programming :: Get Webalizer To Analyse Some Log Files?

Aug 2, 2010

I'm trying to get webalizer to analyse some log files. The server uses virtual hosts and has log rotations on and also uses turbopanel (now known as simple control panel). Because of this, the documentation is limited and webalizer works in a weird way. I found this perl script under turbopanel called webalizerrun.pl the code is as follows:

Code:
#!/usr/bin/perl
$WEBALIZER = "/usr/bin/webalizer";
chomp($var = shift);
$wdir = "$var/conf/webalizer";
opendir(DIR, $wdir) or die "Unable to read $wdir: $!";

[Code]...

Here's what I want to do, and I believe I can do this using this code with slight modifications. As of now, the log files for each site is in the folder specified above with the file named as "domain-name_access_log" and then the log rotation just adds a number to the end of that. I want use this perl script to run webalizer for a particular site and have its output be placed in directory.

1.) Line 4: chomp($var = shift): I know chomp is used to remove trailing characters, but what character in this case? How may I find that out? Also what does $var = shift do inside chomp?

2.) Line 8: What exactly does the readdir function do? What does it return to $domain?

The rest seems similar to csh, checks if it's dir or file and then changes to the directory and runs webalizer on that directory.

View 14 Replies


ADVERTISEMENT

General :: Webalizer - Apache All The Html Webalizer Reports ?

Jan 14, 2010

[root@xxx webalizer]# pwd
/var/www/html/webalizer
[root@xxx webalizer]#
[root@xxx webalizer]# ls -all
total 4924
drwxr-xr-x 2 tomcat tomcat 12288 Jan 1 04:03 .
drwxr-xr-x 16 tomcat tomcat 4096 Jan 14 10:01 ..
-rwxrwxrwx 1 tomcat tomcat 2606 Dec 1 2006 ctry_usage_200611.png

[Code]...

When I go to http://myserver/webalizer I only see the 2007 reports and I want to see all the years and months. How do I do that ?

View 13 Replies View Related

General :: Analyse The Output Of Tcpdump ?

Jul 14, 2010

I am trying to analyze the output of tcpdump, but I am unable to figure out what the output is. as I think that the security my computer would be compromised by this output.

View 2 Replies View Related

Networking :: Firestarter Is Blocking So Many Connection Attempts\ Analyse?

Mar 2, 2010

Since yesterday Firestarter has been prompting me that it is blocking external connection attempts as shown in the picture below:I'm not even going to bother covering the IP addresses because I personally don't see why I should care but as you can see, there has been loads of them attempting to connect to ports 3674 - 3675. I ran nmap 127.0.0.1 and it came back as 631 being the only one open. So then I thought maybe lsof -i would mention much more but all it shown was:

@boris:~$ cat meh
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
cupsd 1644 root 5u IPv6 14329 0t0 TCP localhost:ipp (LISTEN)

[code]...

View 1 Replies View Related

Fedora :: ABRT Not Connecting To Bugzilla Nor The Remote Servers To Analyse Core Dumps

Jun 14, 2011

Has anyone noticed ABRT not being able to connect to Bugzilla or the remote Core Dump analysis server? Since my upgrade during the beta phase of F15 I have been unable to file bug reports from ABRT's traces, nor has it offered me the option to file bugs to bugzilla. What it does, however, is offer me to analyse the Core Dump and backtrace of the crash using either the remote server or locally with GDB. Needless to say I'm clueless in GDB, and it requires a LOT of debug symbols found in the corresponding debug packages. But trying to use the remote analysis server always results in a message of the server being busy and to try again later. IIRC the last time I was able to file a bug through ABRT was in 13, has anyone been able to do so in 15?

View 14 Replies View Related

Ubuntu Multimedia :: Analyse The Network Traffic That IE Is Getting To Get An IP Address For The Video And Audio Feeds?

Apr 13, 2010

This is probably the wrong forum to star and I am clutching at straws here hoping someone can point me in the right direction.I own a cheap IP Network WebCam, bought from eBay (like this one:it doesn't list it's manufacturer anywhere and just says it is the F-Series IP Camera.It works well, both on Firefox and IE. However, you can only get a live video stream with audio out of it using IE and an ActiveX plugin or the supplied Windoze only IP Camera Super-Client software which doesn't like Wine.

As I am mainly an Ubuntu user, I was wondering if anyone knew of any tricks to get hold of the two streams, maybe using VLC to view?I've tried IE4Linux and Play-On-Linux to install IE in ubuntu, but the ActiveX unsurprisingly doesn't work. I was hoping that:someone can point me to a forum that might have someone who knowssomeone can tell me how to analyse the network traffic that IE is getting to get an IP address for the video and audio feedssomeone has some experience with these cameras and knows the answer to all my questions I've tried using wireshark, but the output makes no sense to me - I've figured out various addresses to the video stream:[URL]But I can't get the audio stream. I was hoping to use it as a baby monitor, it has excellent night viewing capabilities with its IR LEDS, but having no audio in Ubuntu with it is a pain.

View 2 Replies View Related

General :: Webalizer A Specific Link / URL?

Feb 18, 2010

I have a question for you guys. How do I monitor a URL (link) in my server ? I want to see how many times a page has been accessed. In webalizer, there is such thing but there's a TOP 30 URL access, and I want to monitor (count) a specific URL. Is that possible ? If yes, how and what do I need to do.

They say:

Securing and Optimizing Linux: RedHat Edition -A Hands on Guide
PrevChapter 30. Optional component to install with ApacheNext
30.3. Configure the /etc/webalizer.conf file

The /etc/webalizer.conf is the default configuration file for Webalizer. With it, you can specify which directories or pages in your web site to analyze, which URLs to hide, and so on. By default, the Webalizer program will install a sample configuration file named webalizer.conf.sample under the /etc/ directory of Linux. You can use this file to configure your choices and then rename it webalizer.conf, and the Webalizer program will be able to find and use it. A lot of options exist and it's important to read the documentation that comes with Webalizer for more information on all of the different setting and parameters. Also, it's important to note that we comment in this Webalizer configuration file only the most common and used parameters.

[Code]...

But I don't get it, what should I type in order for the webalizer to monitor a specific URL.

View 5 Replies View Related

Fedora Servers :: Webalizer Not Analyzing Correctly?

Feb 8, 2009

I have a dedicated server with fc-9. I have several domains. They are located in /home/domainname/html Under each /home/domainname I have added a webalizer.conf file. Recently I moved video files into a subdomain so I could track usage and generate reports on the use of these video files. Hence the main domain html files call the sub-domain to present flash files for viewing and .avi, .ogm, mp4, etc files for downloading.

So I have for directories:
/home/domain/html
/home/domain_files/html

I set up the domain_files as I have the main domain with access_log and error_log. I set up webalizer to analyze every day at midnight. What I get for webalizer results is links back to Sept, even though the logfile's first enter is in January. I also see many files in the report that are from a totally different domain. I have checked carefully and in webalizer.conf I have: LogFile /home/domain_files/access_log I'm lost. I haven't a clue what's wrong. If webalizer can't do this is there another simple logfile analyzer that can give me video usage?

View 1 Replies View Related

Red Hat / Fedora :: Configure Webalizer On A CentOS 5.5 System?

Sep 14, 2010

I have been trying to configure webalizer on a centOS 5.5 system.I did the yum install and I found this helpful link...[URL]..However when I try to change the dir it puts the info into, it keeps giving me an error cannot cd to the directory. I changed the /etc/webalizer.conf file as described in the above article and try to run it manually same results.

/etc/cron.daily/00webalizer Error: Can't change directory to /home/webalizer/ When I put the original dir back in the path it writes to /var/www not /var/www/output like it should. I even tried a local /var/wwww/output dir. Then I tried a link to /home/webalizer/output (a dir I created) and same results.(with orginal .cfg in place) I go to my www page remote or on the local network I get page not found errors. http://mysite.com/webalize or 192.168.1.80/webalizer page not found.

In summary.
1. Why wont the /etc/webalizer.cf file allow me to change the location of the files?
2. How do I display the www page to view the data?
3. How can I secure the www page so only I can view the data.

just saw this in my email too :
header info deleted...
/etc/cron.daily/00webalizer:
Error: Can't change directory to /home/webalizer
/etc/cron.daily/logrotate:
Current logging target is:
`- SYSLOG

edit: i should also mention SeLinux is in permissive mode not enforcing while i am testing this.

View 2 Replies View Related

General :: Webalizer Not Displaying Info On Www Pages?

Sep 14, 2010

I have been trying to configure webalizer on a centOS 5.5 system. I did the yum install and I found this helpful link...However when I try to change the dir it puts the info into, it keeps giveing me an error cannot cd to the directory. I changed the /etc/webalizer.conf file as described in the above article and try to run it manually same results. /etc/cron.daily/00webalizer Error: Can't change directory to /home/webalizer/When I put the original dir back in the path it writes to /var/www not /var/www/output like it should. I even tried a local /var/wwww/output dir. Then I tried a link to /home/webalizer/output (a dir I created) and same results.(with orginal .cfg in place)I go to my www page remote or on the local network I get page not found errors.In summary.1. Why wont the /etc/webalizer.cf file allow me to change the location of the files?2. How do I display the www page to view the data?3. How can I secure the www page so only I can view the data.

View 4 Replies View Related

General :: Winstall Webalizer In Application Server?

Mar 3, 2010

Recently i am install webalizer in my application server .i am using centos4.1 .i installed successfully.but when i run the command i am getting like this.

root@tuxserver# /usr/bin/webalizer
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field

[code]....

View 2 Replies View Related

Software :: Webalizer: Unable To Restore Run Data (10)

Oct 21, 2010

I'm using Webmin, and Webalizer plugin. Days ago, webalizer works fine. But starting from yesterday, Webalizer no longer generate reports. And when I try to generate report manually using webmin, I get this message: Code: Running Webalizer to generate report from [URL]..

.. Webalizer failed! See the output above for details. Because I didn't get any details on that message, I run webalizer manually using command:

Code: # webalizer -n mydomain.com And as result, I got this message:

Code: # webalizer -n mydomain.com Error: Unable to restore run data (10) I have few domains in this machine, and for all domains I got the same result. Anyone has any idea(s) about what happened and how to cure it? Few days ago I think I tried to install Perl-Small-XML using CPAN and failed. And I installed awstats too. Don't know whether it's related or not.

View 1 Replies View Related

Ubuntu Servers :: Install Webalizer And Configure It To Push Stats For Multiple Domains?

Jun 16, 2010

how to install webalizer and configure it to push stats for multiple domains?

View 6 Replies View Related

Programming :: Command For Find/Replace In Text Files (inc. Files In Sub-folders)?

Oct 11, 2010

I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.

Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'

The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.

View 1 Replies View Related

Programming :: Sort Files In Directories Based On Files Date

Sep 8, 2009

I need a script that will take all the files in a given directory and create new monthly sub-directories and sort all the files based on the creation date into the appropriate directory.For example, all files created between 01/01/09 and 01/31/09 will be placed in 'JAN-2009'

View 5 Replies View Related

Programming :: Convert RTF Files To MS Word Files Using Java?

Sep 19, 2010

In my application I came across a new requirement where I have to convert RTF files to Word and PDF formatted files. I am searching for an API using which my java application can able to convert the above specified formats.

View 4 Replies View Related

Programming :: Bash Programming - Rename Files In A Loop?

Mar 31, 2011

I need to rename the resulted searched files from a loopI have the following code:

find . -name DOC* | while read i
do
find $i -type f -name '*.txt'
done

basically, I am searching for all txt files inside any folder starting with DOC name.this code is working fine with me.I need to rename those .txt files to .txtOLDOS: Ubuntu 10.4Bash shell

View 10 Replies View Related

Programming :: C Header Files And Object Files ?

Sep 18, 2010

When is it good to use separate translation units and object files and link them into the main C program, and when is it good to include the header files in the main C program? I don't understand if most people include header files or if most people just link in object files and use their contents in the main program. It's sort of a simple question, but it's confusing to me and that's why I need help with it. I sort of don't understand the difference, or if there's really no difference other than the way the final result is achieved, which way is better or preferred, etc...

For example:

Code:

or:

Code:

Simple explanation of the difference? or which one is preferred or better? I've read a little on the ELF format... so is there no difference in the end result? It's just a matter of preference or necessity, and where the information is to begin with?

View 9 Replies View Related

Programming :: Create Inverted Files To Associate Files To Numbers ( Numbers Being The Index Of My Paths )?

Apr 4, 2011

am writing a small search program for my class. I have decided to use indexing for my program. Ive researched online about indexing and how search engines do it. If im gonno do that I need to create inverted files to associate files to numbers ( numbers being the index of my paths ) . Now I was wondering what would be the best way to create an inverted file ? I was going to create sql tables using mysql api in C but then again there is no array data type or vectors to store few numbers in a single column in mysql and it is not advised to use Enum or SET

View 14 Replies View Related

Programming :: Search The String "Listen" In A Few Files (config Files)?

May 9, 2011

I'm trying to search the string "Listen" in a few files (config files). I madefind /apps/apache* -exec grep -H Listen {} ;but the result list is very long. How i make a "grep -v" whith this command?

View 3 Replies View Related

Programming :: Deleted Files In Directory With So Many Files Without Deleting Directory Itself

Nov 14, 2010

There are millions of files in many directories. Wherenver i try rm * or find or use xargs, they say 'argument list too long' and exit. How can i deleted files in a directory with so many files without deleting the directory itself.

View 3 Replies View Related

Programming :: Comparing Two Files ?

May 7, 2011

I have two files

Code:

we have to consider here $5 , $6 , $7 for our search

file2.txt

Code:

Here we should take only $2 for comparison. As you can most of the $2 field records has value and some do not have value.

Question:I want to take the fields $5 , $6 , $7 from file 1 and compare it with $2 field from file 2. and the rsult should be like this:

Code:

The final output will look like this

Actual file1.txt (before running the code)

Code:

FIle1.txt after running the above said condition

Code:

So the field $5 , $6 , $7 should get replaced from the matched valued of $1(file1)

View 3 Replies View Related

Programming :: C++: Not #including Files?

Jun 16, 2010

I'm trying to make my program as small as possible. Currently it's down to 17.8 KB, but I'd like to get it smaller (I know, I'm insane). Is there a way to not use the "#include" directive to include the entire header, but rather to just load only the stuff I need? For example, I just want to include 'sprintf' and 'printf' from stdio.h, not the entire header. Is this possible? Or am I misunderstanding some fundamental element here?

View 14 Replies View Related

Programming :: How Come Windows .exe Files Can Not Be Run?

Mar 31, 2011

I have been doing some work with assembly and low level stuff like that and had some questions. When programs are compiled they are converted into machine language. The problem is that all of the books I read assumes the user uses Linux. How come windows .exe files can not be run in Linux? I under stand there are some proprietary software that might be required like directx but I'm not talking about that. How come the same C program compiled in a Linux environment and a windows environment cant be interchanged? What is physically different about compiling a program in windows and Linux? Is one way better then the other or are they just different ways to reach the same place? I haven't done any work with apple computers but I assume that its similar to Linux.

I have been looking around the internet and the best answer I have been able to get so far is "because that's how it is" and "because windows uses file extensions". If somebody were able to give me the facts or point me to a website that does I would be very happy.

View 3 Replies View Related

Programming :: How To Organise Different Files

Sep 30, 2010

organise different files into one by using linux programming?what is the use of gcc wat is its abbrevation?

View 2 Replies View Related

Programming :: See The Contain Of Binary Files?

Aug 4, 2010

i have some files name libbeet.so.3.02 , libpos.so.3.04.I think all is binary files , but i am not able to see the contain of file.is there any script to read the file contain.

View 5 Replies View Related

Programming :: Copy Big Files Using Tar?

Sep 13, 2010

I am trying to copy content of single folder to multiple destination simultaneously using tar and FIFO. here is the source code

mkfifo bin1.fifo
tar -C bin -cf - . | tee bin1.fifo | tar -C bin2 -xf - &
tar -C bin1 -xf bin1.fifo

[code]....

View 1 Replies View Related

Programming :: Where To Put Headers And Cpp Files

Mar 14, 2010

I have several classes that I use for multiple programs. Where should I keep the h/cpp files so I only have to add the #include for the compiler to find them?

View 9 Replies View Related

Programming :: Getting A Script To Be Run On Multiple Files?

Apr 17, 2009

I use a mencoder line to convert .avi to .mpg (dvd player compatible), it works well but i can only do one file at the time. It requires giving the input and output directories and the files name. I tried using (*.avi *.mpg in the command) on the directory but it just add up all the .avi and convert them into one huge .mpg. My goal is to have a script that would convert all the .avi files from a directory to the same amount of .mpg and also keep the naming of those files. Here is what i work with on single files:

Code:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:480,harddup
-srate 48000 -af lavcresample=48000
-lavcopts

[code]....

View 3 Replies View Related

Programming :: Get Only Ip Addresses & Send It To 3 Files?

May 7, 2010

have a file (called it A) contains;

hostname 192.168.23.65
hostname 10.18.13.253
hostname 10.18.16.253
hostname 177.23.56.58

how can i write a script to get only ip addresses & send it to 3 files with the following info. only:

file1:
192.168.0.0
file2:
10.18.0.0
file3:
177.23.0.0

by creating the 3 files then i will be able to set up subnetmask, gw,....etc.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved