Hi Steven, I am newbie of SARG. I faced the problem to install sarg on Centos 9. May i know how to configure the sarg in your case?
Apparently, your system compiles sarg from sources during install. It doesn't just install a pre-build executable. The configure script couldn't find a working C compiler to compile sarg. It tried gcc, cc and cl but none of these were found to be working. Either no suitable compiler is installed or, if one is installed, it is unable to produce a valid executable. I see you had to install autoconf, automake and a bunch of devel packages from the command line. Don't you need to install gcc too?
Following the installation steps sends this error; [root@s01 sarg-2.4.0]# uname -r 5.15.0-207.156.6.el9uek.x86_64 yum -y install autoconf automake gd-devel pcre-devel bzip2-devel openldap-devel gettext-devel xz xz-devel [root@s01 sarg-2.4.0]# ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in /root/sarg-2.4.0': configure: error: no acceptable...
unable to generate user specific report for username such as "user@domain.local"
Hello. Is it possible to additionally display information about outgoing traffic from clients in the report?
Thank you very much for your reply. I just successfully installed sarg on RockyLinux 9. Here are my installation steps: dnf -y install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm wget https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-38-1.noarch.rpm rpm -ivh rpmsphere-release-38-1.noarch.rpm dnf -y install sarg Cheers!
It looks like you are building sarg 2.4.0. Can you try sarg 2.4.0-pre1 (https://sourceforge.net/projects/sarg/files/sarg/sarg-2.4.0-pre1/). It is really version 2.4.1 but I never took the time to release it. All those issues are reported by gcc 8 and later. They should have been fixed in 2.4.0-pre1.
Thank you very much for your reply I tried it, but I encountered more problems that need to be solved. I would like to ask if my original installation method was wrong?
P.S. Looks like I simply commented, but not answered your post.
If it's Rocky Linux and if sarg isn't in the repos, you may try to take the package from Fedora: https://pkgs.org/download/sarg Also, you may unpack an Arch package and put the files in their respective dirs. I know, it's a dirty hack, but as a last resort...
Did you read all instructions here ? Do you have all dependencies installed? Also, why don't you install sarg from repos? Is it there?
Did you read all the instructions here ? Do you have all dependencies installed? Also, why don't you install sarg from repos? Is it there?
Did you read all the instructions here ? Also, why don't you install sarg from repos? Is it there?
I'm a newbie, I need to build it, but I'm not very savvy with C. Can anyone help me? Thanks a lot [root@squid ~]# uname -r 5.14.0-284.25.1.el9_2.x86_64 [root@squid ~]# dnf -y install gcc gd gd-devel make perl-GD wget httpd [root@squid ~]# dnf -y install autoconf automake gd-devel pcre-devel bzip2-devel openldap-devel gettext-devel xz xz-devel [root@squid sarg-2.4.0]# ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for...
Hi @fmarchal, sorry for the late answer! I'wasnt able to build sarg 2.4.0-pre1 on a fresh Debian 11 box. I've got the same error again (you can see the full log here) On the other hand, using the backports repo as Fabio suggested worked fine. Regards
Have you tried to build sarg 2.4.0-pre1 (https://sourceforge.net/projects/sarg/files/sarg/sarg-2.4.0-pre1/)? Does it build on debian 11? Sarg 2.4.0-pre1 is supposed to become 2.4.1. Issues raised by gcc 10 should be fixed.
Hey! For Debian 11 you can use the backports repo now. Add backports to your source.list: deb http://deb.debian.org/debian bullseye-backports main Update and install sarg now: apt update apt install sarg/bullseye-backports Cheers!
Same Tooo Please helpp
Hi! I've been using Sarg for a few years (always installed from the package manager) and now I'm trying to install sarg 2.4.0 on a fresh Debian 11 VM. Since it's not in the repos, I need to build it, but I'm not very savvy with C. Afer running ~# tar zxf sarg-2.4.0.tar.gz ~# apt-get install -y libgd-dev libbz2-dev libldap2-dev zlib1g-dev liblzma-dev sarg-2.4.0# ./configure --prefix=/ --sysconfdir=/etc/sarg --enable-extraprotection sarg-2.4.0# make I get this error util.c: In function ‘vrfydir’: util.c:589:29:...
If you are looking for help with the steps to Setup Amped wireless Extender, you can read through the website’s setup and login guide. You will find complete information on what steps to follow to configure the extender network and settings easily. Use the default web address setup.ampedwireless.com to configure the details and get done with the hassle-free setup method. For help on the setup and login, reach out to the support team now.
Hello Frederic. Actually I was using this area for calculate uploads. logformat squid %tl %>st %>a %Ss/%03>Hs %<st %[un %Sh/%<a %mt On default squid logging, there is no upload count. And I don't mind milliseconds. I just change that from squid conf settings millisecond TO uploaded file (>st) so now I can monitor users upload traffics also. It works greatly but if the upload size more than 10MB (10000000), it doesn't show on sarg:) When I check access.log, I can see 182 MB upload (in millisecond...
Thank you for your patch. After more than two years, I finally found some time to integrate it :-).
Add more spaces to the code.
Some bug reports suggest this variable must be at least 14 bytes long
Allow for very long connection time in report
Sarg ignores connections with a duration longer than max_elapsed seconds. Is that parameter set to a non zero value in your sarg.conf ?
Update changelog.
Update po files.
Add undeclared variable.
Update version number.
Uniform space layout in source code
Remove global variables declared in conf.h
Take absolute value of an int instead of a float
Guard against possibly truncated snprintf output
Hello. I'm working on long time connections. If the millisec is higher than 10 digits, Sarg shows 0 on that line. I guess there should be fix like we install sarg 2.4 (ex: In make stage, in user.c file char yearnum[10]; needs to be change to char yearnum[20];(ex: In make stage, in user.c file char yearnum[10]; needs to be change to char yearnum[20]; I guess in millisec also needs to change somewhere to store more than 10 digits. How can I do that?
Millisec char set (max lenght)
The Alexa Login page can be accessed using the default web address alexa.amazon.com in a compatible web browser. The setup wizard will then help you access the Alexa device settings and complete the setup process in no time. For more details about the login process, you can always reach out to the team at our end.
The web address http://Alexa.amazon.com can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
The web address [https://alexaechosetup.com/alexa-amazon-com-setup/](http://Alexa.amazon.com) can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
The web address [url=https://alexaechosetup.com/alexa-amazon-com-setup/]http://Alexa.amazon.com[/url] can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
The web address http://Alexa.amazon.com can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
The web address http://Alexa.amazon.com can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
The web address https://alexaechosetup.com/alexa-amazon-com-setup/ can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
The web address [http://Alexa.amazon.com] (https://alexaechosetup.com/alexa-amazon-com-setup/) can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
The web address http://Alexa.amazon.com can be used to access the Amazon alexa login page and get access to the amazon setup page. If you are looking for help with the alexa settings wizard and how to proceed with the setup process online, you can always refer to the information available online on our website.
Hello, My proxy server show windows client hostname on report. But it don't show proxy server hostname, only IP. It's becaus it's linux server? It's because it don't know hostname because dns ? Thks stephane
In french sarg on centos https://www.linuxhelp.com/how-to-install-sarg-on-centos-7 yum install -y gcc gd gd-devel make perl-GD httpd wget https://sourceforge.net/projects/sarg/files/sarg/sarg-2.4.0/sarg-2.4.0.tar.gz aller sur https://sourceforge.net/projects/sarg/files/ et vérifiez la version. en fonction de celle ci, remplacez le lien. decompresser tar -xvf sarg-2.4.0.tar.gz # adapter en fonction du nom de fichier cd sarg-2.4.0 lancer dans ce repertoire: ./configure a ce moment des soucis peuvent...
In french make des soucis peuvent intervenir https://sourceforge.net/p/sarg/discussion/234318/thread/af50038505/?limit=25#0b1e probleme index.c:622:43: error: la sortie de la directive « %04d » peut être tronquée en écrivant 4 octets dans une région dont la taille est comprise entre 1 et 5 [-Werror=format-truncation=] snprintf(yearnum,sizeof(yearnum),"%04d-%04d",year>>10,year & 0x3FF); Résolution: modifier des valeurs dans index.c: You can change sarg-2.4.0/index.c to resolve this problem: To compile...
thks for help
IN FRENCH make des soucis peuvent intervenir https://sourceforge.net/p/sarg/discussion/234318/thread/af50038505/?limit=25#0b1e probleme index.c:622:43: error: la sortie de la directive « %04d » peut être tronquée en écrivant 4 octets dans une région dont la taille est comprise entre 1 et 5 [-Werror=format-truncation=] snprintf(yearnum,sizeof(yearnum),"%04d-%04d",year>>10,year & 0x3FF); Résolution: modifier des valeurs dans index.c: You can change sarg-2.4.0/index.c to resolve this problem: To compile...
it s possible you have problems with userinfo.c after first debug change at line 81 "char cstr" for have value more 10 (i putted 15). I found answers on the web and in part on sarg sourceforge help. i saw other people had problems in 2020. it s possible to find answers quicker that me
https://sourceforge.net/p/sarg/discussion/234318/thread/af50038505/?limit=25
sorry for delay.. i reply help in french probleme: configure: lzma.h was not found so it won't be possible to process xz files solution yum install -y xz-devel xz-devel.x86_64 : Devel libraries & headers for liblzma probleme: configure: pcre.h was not found so the regexp won't be available in hostalias solution yum install pcre-devel -y && yum install gd-devel -y gd-devel étant déjà installé
sarg fails to build with GCC 10.3 - variables get redeclared (no extern)
Dear stephane, sorry for the delay in reply ... apologies when i run ./configure i see the below errors only at the end configure: pcre.h was not found so the regexp won't be available in hostalias configure: lzma.h was not found so it won't be possible to process xz files make gives the below index.c:622:43: error: ‘%04d’ directive output may be truncated writing 4 bytes into a region of size between 1 and 5 [-Werror=format-truncation=] snprintf(yearnum,sizeof(yearnum),"%04d-%04d",year>>10,year...
Sarg report don't resolve ip->hostname on wifi and vpn area x
hello do you have a link to a precision on the configuration of sarg.conf? I would like to know more about importing logos or images. "background_image". which path should I indicate? thank you Stephane
hello, i don't know if i can resolve your problem, but can u put here errors messages please ?
Hello. I solved the problem. In fact, I had compiled the SARG before installing the requirements for graphics and communication via LDAP and I was not removing the SARG completely with the "make uninstall" command. After that, everything was OK!
sarg stopped generating reports after I have accidentally deleted the reports directory contents in Windows. How to fix this?
Hi I've downloaded SARG(version sarg-2.4.0-pre1-win32) recently and been setting up. Able to get the basic report, but face the following problems. WINDOWS 7 environment. a. Unable to load a logo. It just says logo in the report. On right click and view the image, it shows up in a new tab. But on the report, no image is loaded. Used the same size of image as the sarg's. b. resolving IP to name is not functioning. I do not have a dns that can resolve local network. In windows, nmblookup will not work....
TKS!!!
Hello. I just installed SARG 2.4 and I have 2 doubts; 1) I was unable to display the graphics. I get that warning that SARG was compiled without the libgd library (I'm using Debian and installed libgd-dev). I re-installed the SARG after that and it still didn't work. Is there anything else I can do? 2) I would like to display the names of the users, consulting the AD database (I didn't know it existed, but I ended up reading it in the conf). So I made the settings and now I get an alert similar to...
Dear All, I am trying to install sarg on centos 8 64 bit but I am not able to install sarg version is 2.4.0 when I run make it gives me errors and make install does not create or install any files tried different versions of sarg but on centos 7 there is no issues appreciate your advice and help regards simon
quickfix static void StoreLogEntry(struct RealtimeReadLogStruct *Dest,struct ReadLogStruct *Entry) { memcpy(&Dest->EntryTime,&Entry->EntryTime,sizeof(Dest->EntryTime)); safe_strcpy(Dest->Ip,Entry->Ip,sizeof(Dest->Ip)); if (Entry->Url) { int i = 0; const char *url=Entry->Url; const char *proto=strstr(url,"://"); if (proto) { url = proto+3; } i = strlen(url) < sizeof(Dest->Url) ? strlen(url) : sizeof(Dest->Url)-1; memcpy(Dest->Url,url,i); Dest->Url[i]='\0'; } safe_strcpy(Dest->User,Entry->User,sizeof(Dest->User));...
few more screen-shots
Bug: realtime.c - StoreLogEntry - inbound url may have no scheme at all
In the files: index.c util.c userinfo.c I searched for all instances of "yearnum" and increased its size from 10 to 20.
Hi Bruno, What did you change in those 2 files?
Exclude codes in Reporting
Hello, I want to know is there any problem if I want the sarg reports saving to remote location? I am thinking to edit conf file like: output_dir 192.168.X.X:/var/www/html/squid-reports Sarg is on the squid server, OS is linux. The remote server which I want the reports are, is linux too. Thank you.
Sorry. Replied to post instead of creating new topic.
I'm upgrading from 2.3.8 to 2.4.0. When viewing reports in 2.4.0, I only see "Top Users", "Top Sites" and "Sites & Users". How do I get access to all of the other reports such as "Usage by Day and Hour", "Downloads", "Denied Sites", etc.... Thank you for your help.
I'm upgrading from 2.3.8 to 2.4.0. When viewing reports in 2.4.0, I only see "Top Users", "Top Sites" and "Sites & Users". How do I get access to all of the other reports such as "Usage by Day and Hour", "Downloads", "Denied Sites", etc.... Thank you for your help.
Hello, I want send sarg report by mail. I saw in sarg.conf 2 area: -# TAG: output_email Email address to send the reports. If you use this tag, no html reports will be generated. sarg -e email output_email none -# TAG: output_email Email address to send the reports. If you use this tag, no html reports will be generated. sarg -e email output_email none But i need html reports too. Is it possible create crontab with sarg -e at (for exemple) 19:55 and sarg at 20:00 ? Without use sarg.conf In fact i...
Hi Charles, thanks for replying. Ok, I did that, and to another 2 files (util.c and userinfo.c) following the same pattern for similar errors. Then it built successfully. Thanks a lot!
Bruno: You can change sarg-2.4.0/index.c to resolve this problem: To compile sarg simply increase the size of yearnum at line 538: char yearnum[10]; change to char yearnum[20]; thanks
I even tried this https://www.linuxhelp.com/how-to-install-sarg-on-ubuntu-16-04 with the same error
SARG: No files matching "/var/log/squid/access.log"
Sorry for bogus code formatting. Fixed file attached.
Can't build on Solaris
Frederic, you sir are a gentleman and a scholar. Thank you kindly.
Hi, This error occurs because variable cstr is only 9 bytes long. The compiler thinks variable "count" might end up occupying more than 8 bytes + terminating null once formatted as a string. To compile sarg simply increase the size of cstr at line 81: char cstr[90]; Memory is not an issue nowadays.
**EDIT: Apologies for the duplicate, please refer to original post here https://sourceforge.net/p/sarg/discussion/234318/thread/5826d9671f/ Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12,...
**EDIT: Apologies for the duplicate, please refer to original post here Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12, from userinfo.c:27: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10:...
**EDIT: Apologies for the duplicate, please refer to original post here https://sourceforge.net/p/sarg/discussion/234318/thread/5826d9671f/ Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12,...
EDIT: Apologies for the duplicate, please refer to original post here . Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12, from userinfo.c:27: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10:...
EDIT: Apologies for the duplicate, please refer to original post. Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12, from userinfo.c:27: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10:...
EDIT: Apologies for the duplicate, please disregard. Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12, from userinfo.c:27: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘builtinsprintfchk’...
Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12, from userinfo.c:27: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘builtinsprintfchk’ output between 3 and 10 bytes into a...
Hello Attempting to make sarg 2.4.0 on ubuntu 18.04.4 and receiving this error userinfo.c: In function ‘userinfo_create’: userinfo.c:158:28: error: ‘__builtinsprintfchk’ may write a terminating nul past the end of the destination [-Werror=format-overflow=] clen=sprintf(cstr,"+%X",count++); ^ In file included from /usr/include/stdio.h:862:0, from include/conf.h:12, from userinfo.c:27: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘builtinsprintfchk’ output between 3 and 10 bytes into a...
Fix build on FreeBSD