Koozali.org: home of the SME Server

Removing SARG from menu in Server-manager panel

Offline steve288

  • *
  • 336
  • +0/-0
Removing SARG from menu in Server-manager panel
« on: June 16, 2011, 04:13:48 PM »
I have installed Sarg which as you know Sarg "provides comprehensive reporting on the Squid web proxy usage."

It appears that when you install sarg it is also available at
https://192.168.1.1/squid/daily/index.html
for example

I would like to remove the (albiet nicely done) menu item in the Server-Manager panel listing "SARG reports" so that it's not listed there so that I access it from the link for example like above https://192.168.1.1/squid/daily/index.html instead.

I have read some of the documents on the server-manager regarding creating it etc. But It has not really helped me.
I dont know if I can simply by hand remove a line of code that would prevent it from being loaded into the panel, or even I was thinking of simply changing the colour to the colour of the menu so its hidden. For privacy reasons I have been asked by managment to do something about this. They like the fact that if they need to they can easily look at the data but want to help reduce snooping.  Sometimes others need to do things in the server-manger, they dont need to know about this ability.
I know that frankly you can simply look at the text files, but most if any will not go to the trouble or know where to look.
Sarg is a nice little add on but for use makes it too easy.



Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Removing SARG from menu in Server-manager panel
« Reply #1 on: June 16, 2011, 04:56:11 PM »
steve288

You can install the user manager contrib, and this will allow you to configure access rights for users to panels in server manager, ie when accessed using user-manager instead of server manager.

yum install --enablerepo=smecontribs smeserver-userpanel
Then follow the instructions.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Removing SARG from menu in Server-manager panel
« Reply #2 on: June 16, 2011, 05:31:04 PM »
I have installed Sarg which as you know Sarg "provides comprehensive reporting on the Squid web proxy usage."

It appears that when you install sarg it is also available at
https://192.168.1.1/squid/daily/index.html
for example

I would like to remove the (albiet nicely done) menu item in the Server-Manager panel listing "SARG reports" so that it's not listed there so that I access it from the link for example like above https://192.168.1.1/squid/daily/index.html instead.
Why do you need to remove it? As I understand it you can already access it at the alternative address or am I reading that wrong?
Most off the time the server-manager menu is there to implement things on SME Server easily as the default URLs from a package might not factor in the configuration system and the internal database. I do not use SARG so I am not sure if that is the case for SARG.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline steve288

  • *
  • 336
  • +0/-0
Re: Removing SARG from menu in Server-manager panel
« Reply #3 on: June 16, 2011, 05:50:17 PM »
Thanks mary for that. I do have that installed but was hoping not to go that way.

Cactus, your right it is accessable via the address I provided, if I understand the comment you are making. Its not that they want to stop people from looking at it, they are not paranoid (yet) They just dont want to make it obvious. People here are not linux users and would not take the time to research or SARG and certainly if it was not listed in the menu would not even know it is there to do any research on. We just wanted to make it a little more obscure so it was not obvious. The sarg does a nice job of making it very nice and obvious in the menu. We are just oddballs cause we want to not make it that obvious.

I was hoping that there was a simple place I could look to make a change to hide it. Perhaps not? And changes might make it a house of cards.

Offline Jean-Philippe Pialasse

  • *
  • 2,907
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Removing SARG from menu in Server-manager panel
« Reply #4 on: June 16, 2011, 06:13:12 PM »
Why do you want to hide it fron the admin (as the server manager is for the admin) ?

SARG is like some of other old contribs that are still using httpd-auth to gain access, it is probable that in a near future they will use the same session as server manager, by doing so the second way to access it might disappear.

In fact you are making a feature from a bug.

By the way if you are sure you do not want to see the menu of sarg in your server manager you can simply move out the file for sarg from the directory
Code: [Select]
/etc/e-smith/web/panels/manager/cgi-bin (i do not know the exact name of the file corresponding to Sarg but it shall be obvious)

then you do
Code: [Select]
/etc/e-smith/events/actions/navigation-conf

It will disappear until the next update of sarg

Offline steve288

  • *
  • 336
  • +0/-0
Re: Removing SARG from menu in Server-manager panel
« Reply #5 on: June 16, 2011, 07:34:58 PM »
I see your point on possible future updates.

Thanks, I may set up a separate machine and test it out.
At least I have learned something.

Regards
« Last Edit: June 16, 2011, 07:38:40 PM by steve288 »

Offline Makutzi

  • 2
  • +0/-0
Re: Removing SARG from menu in Server-manager panel
« Reply #6 on: July 27, 2011, 05:11:05 PM »
Hi, while on the SARG issue, I want to delete the reports or log files SARG crates on a weekly basis - Very interesting feature indeed, just feel it is missing a button with the function: "CLEAR". Any suggestions?