Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Schwierigkeiten beim Auslesen von Informationen via SNMP

    Deutsch
    1
    1
    106
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • the_force
      the_force last edited by

      Hallo,

      ich möchte aus einer pfSense Trafficinformationen per SNMP ziehen, um diese via MRTG darzustellen. Die CFG-Datei generiere ich wie folgt:

      cfgmaker --global 'Workdir:/var/www/mrtg' --global 'Options[_]: growright,bits' Meine_public_Community@10.10.10.5 > test.cfg
      

      "Irgendwie" habe ich das Gefühl, als wenn die Auslieferung der SNMP-Daten vom Zufallsprinzip abhängt. In meinem Beispiel erhalte ich in der cfg-Datei - unter Anderem - diese Ausgabe für die drei Schnittstellen:

      SetEnv[10.10.10.5_1]: MRTG_INT_IP="0.0.0.0" MRTG_INT_DESCR="re0"
      [...]
      SetEnv[10.10.10.5_2]: MRTG_INT_IP="10.10.10.5" MRTG_INT_DESCR="re1"
      [...]
      SetEnv[10.10.10.5_3]: MRTG_INT_IP="195.243.1.xxx" MRTG_INT_DESCR="re2"
      

      Wir sehen, dass beim ersten Interface keine IP-Adresse abgefragt werden konnte. Deshalb steht dort 0.0.0.0

      Und jetzt kommt's - wenn ich ein paar Sekunden den gleichen Befehl erneut abschicke (Also wirklich "Cursor-Up - Eingabetaste" mache), wird das Interface korrekt angezeigt. Dann sieht das halt so aus:

      SetEnv[10.10.10.5_1]: MRTG_INT_IP="62.206.13.yyy" MRTG_INT_DESCR="re0"
      [...]
      SetEnv[10.10.10.5_2]: MRTG_INT_IP="10.10.10.5" MRTG_INT_DESCR="re1"
      [...]
      SetEnv[10.10.10.5_3]: MRTG_INT_IP="195.243.1.xxx" MRTG_INT_DESCR="re2"
      

      Weitere 5 Sekunden später funktioniert es wieder nicht. Das Interface wird dann wieder mit 0.0.0.0 erkannt. Es scheint komplett vom Zufallsprinzip abzuhängen, ob die Daten geliefert werden oder nicht.

      Das Problem betrifft nur die erste WAN-Schnittstelle (re0 auf einem APU-Board).

      Woran liegt das?

      Gruß,
      Jörg

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Products

      • Platform Overview
      • TNSR
      • pfSense Plus
      • Appliances

      Services

      • Training
      • Professional Services

      Support

      • Subscription Plans
      • Contact Support
      • Product Lifecycle
      • Documentation

      News

      • Media Coverage
      • Press
      • Events

      Resources

      • Blog
      • FAQ
      • Find a Partner
      • Resource Library
      • Security Information

      Company

      • About Us
      • Careers
      • Partners
      • Contact Us
      • Legal
      Our Mission

      We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

      Subscribe to our Newsletter

      Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

      © 2021 Rubicon Communications, LLC | Privacy Policy