Linux Server - Traffic überwachen?

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Linux Server - Traffic überwachen?

    Hi Coder,

    habe nen eigenen Vserver Linux mit Debian 3.1 von server 4 you

    allerdings bieten die es nicht an das man den Traffic überwachen kann.

    Ich suche ein sehr leichtes Script bzw Programm mit dem ich den Traffic überwachen kann es sollte sehr einfach zu verstehen und installieren sein

    Sprache am besten Deutsch xD



    Danke für eure Mühe
  • Bei den SERVER4YOU VServern ist doch ein Confixx Premium dabei. Du kannst also alle Domains einzeln auf Traffic überwachen.

    Willst du den Traffic live und global messen wirst du dir extra Software installieren müssen. Das ist zwar Englisch, aber einfacher als auf HowtoForge findest du es nicht erklärt. Munin/Monit könnte was für dich sein.
  • Also ich erkläre mal was ich mache wie ich es mache

    Ich starte Putty :D
    loge mich als root ein
    Dann gebe ich ein apt-get install munin munin-node so scheint alles in ordnung zu sein dann gehts weiter
    Also nächstes steht dort soll man vi /etc/munin/munin.conf eingeben ich machs aber mit pico /etc/munin/munin.conf da der befehl vi bei mir irgendwie nicht geht da kann ich nicht schreiben... keine ahnung wieso

    ich gebe bei html dir an: /var/www/web1/html/munin
    und unten statt localhost.localdomain vs159193.vserver.de oder 62.75.159.193
    dann mach ich mkdir -p /var/www/web1/html/munin/monitoring
    dann chown munin:munin /var/www/web1/html/munin/monitoring

    danach restarte ich /etc/init.d/munin-node restart

    so und nun geh ich auf meine website web1.vs159193vserver.de/munin/monitoring aber als erstens ist in dem ordner nix drin und zweitens schreibt ie auch Sie haben nicht die erforderliche Berechtigung, um die Seite anzuzeigen.

    aber es kommt nix keine ahnung wieso wo liegt mein fehler

    danke
  • bei address kannst du die die 127.0.0.1 belassen.
    statt server1.example.com benutzt du web1.vs159193vserver.de
    beim htmldir hast du den Unterordner vergessen. Richtig muss es lauten: /var/www/web1/html/munin/monitoring

    Wenns weiterhin nicht funktioniert poste mal die letzten Logmeldungen:

    Quellcode

    1. tail -f /var/log/munin/munin-node.log
  • Quellcode

    1. vs159193:~# tail -f /var/log/munin/munin-node.log
    2. 2007/08/16-14:25:01 CONNECT TCP Peer: "127.0.0.1:60090" Local: "127.0.0.1:4949"
    3. 2007/08/16-14:30:02 CONNECT TCP Peer: "127.0.0.1:60182" Local: "127.0.0.1:4949"
    4. 2007/08/16-14:35:01 CONNECT TCP Peer: "127.0.0.1:60292" Local: "127.0.0.1:4949"
    5. 2007/08/16-14:40:01 CONNECT TCP Peer: "127.0.0.1:60397" Local: "127.0.0.1:4949"
    6. 2007/08/16-14:45:02 CONNECT TCP Peer: "127.0.0.1:60489" Local: "127.0.0.1:4949"
    7. 2007/08/16-14:50:01 CONNECT TCP Peer: "127.0.0.1:60585" Local: "127.0.0.1:4949"
    8. 2007/08/16-14:52:00 Server closing!
    9. Process Backgrounded
    10. 2007/08/16-14:52:02 MyPackage (type Net::Server::Fork) starting! pid(5875)
    11. Binding to TCP port 4949 on host *
    Alles anzeigen



    und meine /etc/munin/munin.conf sieht so aus

    Quellcode

    1. # Example configuration file for Munin, generated by 'make build'
    2. # The next three variables specifies where the location of the RRD
    3. # databases, the HTML output, and the logs, severally. They all
    4. # must be writable by the user running munin-cron.
    5. dbdir /var/lib/munin
    6. htmldir /var/www/web1/html/munin/monitoring/
    7. logdir /var/log/munin
    8. rundir /var/run/munin
    9. # Where to look for the HTML templates
    10. tmpldir /etc/munin/templates
    11. # Make graphs show values per minute instead of per second
    12. #graph_period minute
    13. # Drop [email]somejuser@fnord.comm[/email] and [email]anotheruser@blibb.comm[/email] an email everytime
    14. # something changes (OK -> WARNING, CRITICAL -> OK, etc)
    15. #contact.someuser.command mail -s "Munin notification" [email]somejuser@fnord.comm[/email]
    16. #contact.anotheruser.command mail -s "Munin notification" [email]anotheruser@blibb.comm[/email]
    17. #
    18. # For those with Nagios, the following might come in handy. In addition,
    19. # the services must be defined in the Nagios server as well.
    20. #contact.nagios.command /usr/sbin/send_nsca -H nagios.host.com -c /etc/send_nsca.cfg
    21. # a simple host tree
    22. [62.75.159.193]
    23. address 127.0.0.1
    24. use_node_name yes
    Alles anzeigen


    Und dann sollte ich doch den Traffic hier sehen oder ?
    web1.vs159193.vserver.de/munin/monitoring
    Sie haben nicht die erforderliche Berechtigung, um die Seite anzuzeigen.

    ^^
    Es sind auch keine files in den ordner munin oder /munin/monitoring
  • IRA schrieb:

    vs159193:~# /var/log/munin/munin-graph.log
    -bash: /var/log/munin/munin-graph.log: Permission denied

    Bei Linux muss man immer das Programm angeben, mit dem man die Datei öffnet.

    IRA schrieb:

    allerdings wie kann ich ein webinterface für vnstat instzallieren so das ich über den ie den traffic beobachten kann

    vnstat ist ein reines Konsolenprogramm. Ohne Webinterface.

    Inzwischen gibts ein optionales Webinterface. Allerdings ist das nicht in den Debian Quellen enthalten und du musst es selbst installieren.

    //UPDATE...und bitte keine Doppelposts... und mal ordentlich formatieren
  • Ja aber wie installiere ich das webinterface da steht ja nur die download file

    ich kenne mich halt nicht so gut mit linux aus von daher wie installiere ich es und wie starte ich es und wie kann ich es betrachten


    danke


    edit aus einem anderen forum
    Das Webinterface besteht aus einfachen PHP Scripten welche du einfach in einen Web Ordner platzieren kannst.

    Mein Code bezieht sich auf einen Eintrag aus der config.php des Webinterfaces.
    Dieser Eintrag muss auf den Pfad zu deiner vnstat installtion geändert werden.

    In der Regel "/usr/bin/vnstat"

    Bei dir muss dann noch die Variable $iface_list = array('eth0'); auf $iface_list = array('venet0'); geändert werden.


    aber ich verstehe nicht genau was ich machen soll

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von IRA ()

  • was muss ich noch angeben
    ist so alles ok ?

    <?php
    //
    // vnStat PHP frontend 1.3 (c)2006-2007 Bjorge Dijkstra (bjd@jooz.net)
    //
    // This program is free software; you can redistribute it and/or modify
    // it under the terms of the GNU General Public License as published by
    // the Free Software Foundation; either version 2 of the License, or
    // (at your option) any later version.
    //
    // This program is distributed in the hope that it will be useful,
    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    // GNU General Public License for more details.
    //
    // You should have received a copy of the GNU General Public License
    // along with this program; if not, write to the Free Software
    // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    //
    //
    // see file COPYING or at gnu.org/licenses/gpl.html
    // for more information.
    //

    //
    // configuration parameters
    //
    // edit these to reflect your particular situation
    //

    // list of network interfaces monitored by vnStat
    $iface_list = array('venet0', 'eth1', 'sixxs');

    //
    // optional names for interfaces
    // if there's no name set for an interface then the interface identifier
    // will be displayed instead
    //
    $iface_title['eth0'] = 'Internal';
    $iface_title['eth1'] = 'Internet';
    $iface_title['sixxs'] = 'SixXS IPv6';

    //
    // There are two possible sources for vnstat data. If the $vnstat_bin
    // variable is set then vnstat is called directly from the PHP script
    // to get the interface data.
    //
    // The other option is to periodically dump the vnstat interface data to
    // a file (e.g. by a cronjob). In that case the $vnstat_bin variable
    // must be cleared and set $data_dir to the location where the dumps
    // are stored. Dumps must be named 'vnstat_dump_$iface'.
    //
    // You can generate vnstat dumps with the command:
    // vnstat --dumpdb -i $iface > /path/to/data_dir/vnstat_dump_$iface
    //
    $vnstat_bin = '';
    $data_dir = './dumps';
    ?>

    Und die PHP File einfach irgendwo hoch auf dem webspace stimmts?