add informations on hosts top10

Developers
2008-09-10
2012-10-11
  • Arnaud GOUAILLE

    Arnaud GOUAILLE - 2008-09-10

    Hello,

    I have another application which uses a database. In this database, I have a table where I can get the username of a specific host from his IP address.

    I would like to add the name of a host after the IP address in the top10 hosts by running a SQL command. I would get something like that :

    192.168.1.1 (Jack Sheppard)
    192.168.1.2 (Jack Bauer)
    ...

    I've found where to add my little code in awstats.pl script for the complete hosts list, last visits or unknown hosts but I can not find where I have to add my code for the top10, in main page.

    Can somebody help me on that ?

    --
    Arnaud GOUAILLE

     
    • Arnaud GOUAILLE

      Arnaud GOUAILLE - 2008-10-01

      Hi Jean-Luc,

      what I need to display is a name and a firstname, I don't think the static DNS file would return it to me.

      If I could know how the top10 hosts list is built I would be able to add this information (that I've done successfully for complete hosts, last visits hosts and unknown hosts by the way...)

       
      • Arnaud GOUAILLE

        Arnaud GOUAILLE - 2008-10-01

        Hm ok I've found what I was searching for...

        it's in the line 9882 of awstats.pl :

        ...
        foreach my $key (@keylist) {
        print "<tr>";
        print "<td class=\&quot;aws\&quot;>$key</td>";
        &ShowHostInfo($key);
        ...

         
    • Jean-Luc

      Jean-Luc - 2008-09-10

      Bonjour Arnaud,

      Did you consider to create a static DNS cache file ? This should solve your problem if you use "DNSLookup=2" in the AWStats config file.

      Jean-Luc
      http://www.internetofficer.com/awstats/

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks