[SOLVED] sarg

Started by rasitha, June 17, 2024, 09:10:26 PM

Previous topic - Next topic
June 17, 2024, 09:10:26 PM Last Edit: June 21, 2024, 07:54:22 AM by rasitha
i have installed sarg & generated the report by running sarg -x & the report is saved on /var/www/html/squid-reports/2024Jun18-2024Jun18

now i dont know how to view the file... can some one help me how to view the file

to view the report u need to install nginx on opnsense
go to services>nginx>configuration

in http(s) tab> location> add
add a description
URL Pattern = /test
Match Type = caseinsensitivemach
File System Root = /var/www/html/squid-reports
Index File = index.html

save

in http(s)tab>http server ( make sure to click advanced mode)

HTTP Listen Address = 8888 (port number-the port i use )
Default Server = tick
Server Name = fqdn of ur opnsense server or the ip
File System Root = /var/www/html/squid-reports
Locations = the name u add in the above step

save

Generel tab

Enable nginx = tick

how to access
http://ur opnsense ip or fqdn:8888(the port u give)