Ad Widget

Collapse

Monitor a host internet usage/history

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jroberson
    Senior Member
    • May 2008
    • 124

    #1

    Monitor a host internet usage/history

    Does anybody know a way that Zabbix can monitor a host's internet usage or browser history? I have a situation here that if Zabbix can do this it might save me and a few other people a lot of headaches. The idea would be to monitor employees' internet usage and log it so we can have it when their supervisor asks for it. Right now, with our current setup, the only option is jump into the machine and MANUALLY look through the cookies and browsing history. These are XP hosts BTW.

    Thanks for any ideas.
  • nelsonab
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2006
    • 1233

    #2
    Even easier.... Put a Squid proxy in front of them. Then you'll get a URL log of every site they hit. Setup squid on your network, then set their computer to use the proxy. If they're smart and paranoid they can remove it, however you can override this with domain policy. Or if you really want to get crazy you could setup a firewall rule (if your firewall allows) and setup transparent proxy.

    Now for the disclaimer... I have had to do this at a few sites, and every time I hate doing it.... one boss used it as fodder for her own personal witch huts... As if she wasn't micromanaging enough.
    RHCE, author of zbxapi
    Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
    Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

    Comment

    • troffasky
      Senior Member
      • Jul 2008
      • 565

      #3
      Originally posted by nelsonab
      if you really want to get crazy you could setup a firewall rule (if your firewall allows) and setup transparent proxy.
      Not really crazy, just common sense! If the proxy is the only host allowed out on port 80, nobody will have any choice but to use it, which also negates the requirement for making it transparent.

      Comment

      • jroberson
        Senior Member
        • May 2008
        • 124

        #4
        Unfortunately, at this time, we are not allowed to change anything on the network side of the operation. That is the most logical choice and I have recommended it, but it gets knocked down every time. Therefore, my only option is something within the network or on the workstations themselves. I was hoping there was an easy way with Zabbix, but I couldn't think of any on my own. Does anyone else know of any workstation based monitoring solution? It will have to "free" because of even more restrictions.

        Comment

        • troffasky
          Senior Member
          • Jul 2008
          • 565

          #5
          Websense Remote Filtering will do what you want on workstations, but it's not exactly free!

          Ok, so if you're not allowed to "change" the network, here's something you might be able to do 'in' the network: use arpspoof to pretend to be the default gateway and route traffic through your linux box. As it will then be traversing your box, you can filter it or audit it as you see fit. It's not foolproof - some switches will prevent you from effectively spoofing another host's traffic. I can tell you from experience, however, that most switches aren't configured out of the box to detect/block ARP spoofing.

          Another idea, would placing your linux box [with the requisite number of ethernet cards] between the LAN and your default gateway count as changing the network?

          Comment

          • nelsonab
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2006
            • 1233

            #6
            Originally posted by jroberson
            Unfortunately, at this time, we are not allowed to change anything on the network side of the operation. That is the most logical choice and I have recommended it, but it gets knocked down every time. Therefore, my only option is something within the network or on the workstations themselves. I was hoping there was an easy way with Zabbix, but I couldn't think of any on my own. Does anyone else know of any workstation based monitoring solution? It will have to "free" because of even more restrictions.
            If you setup the client workstation to use the proxy you're not changing the network continuations, just how that workstation accesses parts of the network. The configuration options are under Internet Settings in windows I belive (on a Linux desktop, can't check). In Firefox edit-> preferences-> advanced-> connection settings.
            RHCE, author of zbxapi
            Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
            Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

            Comment

            • jroberson
              Senior Member
              • May 2008
              • 124

              #7
              Hmm, that's true. I didn't think of that. The only problem would be setting up all the clients. I guess we could push all of that through Group Policy to IE6 and just leave any other browser/program access alone. This our primary browser as we have an old Intranet portal here and FF or IE7 will not work. A proxy shouldn't affect that as it is essentially forwarding the web requests. It might miss some of the traffic going through streaming programs but it'd hit most of the web traffic. Much more than we are getting now! It might not ultimately fly with the powers that be, but it's a possible solution.

              Thanks!

              (I guess I have to use Zabbix to monitor the proxy server then! )

              Comment

              • nelsonab
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2006
                • 1233

                #8
                Originally posted by jroberson
                (I guess I have to use Zabbix to monitor the proxy server then! )
                Exactly! And you could then write a few scripts that parse the state of Squid and generate some nice pretty management friendly graphs showing how everyone is being a good little worker bee and not surfing the big bad interwebs....

                Sarcasm implied. :-)
                RHCE, author of zbxapi
                Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
                Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

                Comment

                • jroberson
                  Senior Member
                  • May 2008
                  • 124

                  #9
                  Originally posted by nelsonab
                  Exactly! And you could then write a few scripts that parse the state of Squid and generate some nice pretty management friendly graphs showing how everyone is being a good little worker bee and not surfing the big bad interwebs....

                  Sarcasm implied. :-)
                  If they wanted to see that, there wouldn't be any point to any of this.


                  Sarcasm noted and appreciated.

                  Comment

                  Working...