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

    Traffic Graph with page : "graph.php"

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 480 Views
    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.
    • T
      theo.fleury0175
      last edited by

      Hello,  :)

      During an update and actions on our PfSense system with a new IT,

      We are more likely to collect data on our chart. : '(:' (

      Explanations of the previous operation:

      • We practice the page "graph.php" (available on the server here: /usr/local/www) embedded in another php page

      • This page, with the variables "ifnum"; "ifname" and "timeint", allows us to display the traffic of our network cards:

      • Example: https://ip-serveur/graph.php?ifnum=wan&ifname=WAN&timeint=10

      Currently we have the error : "Cannot get data about interface em1", can you help us?

      Information about our PfSense system:

      PfSense Community Edition
          Version : 2.4.0
          FreeBSD 11.1-RELEASE-p1

      Sincerally

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        The page you mentioned does exist - but I guess it isn't really part of the GUI anymore.

        From what I make of your question, you are using a tool that parses the html of that page to feed your own stats.
        That's ok, but understand that pfSense can change format, data, etc all the time.

        It's up to you to change your parsing tools.

        I guess that after changing the kernel version, from 9 to 10 to 11 (FreeBSD) interface internal naming, numbering, details, data, whatever, changed, so these pages are useless right now. Consider them as left overs from an old GUI version.  They have to be updated first if you want to see any data. Because you wrote - or at least: set up - de parser, you might as well 'repair' the pages graph.php (and ifstats.php). It's PHP, not a hassle for a "IT" guy.

        Btw : never ever keep old version 2.4.0 have been replaced by two newer version already, when asking questions you should use the latest, because now you are asking a question about a version that no one uses anymore … (not a problem of course, but your question becomes non-answerable).

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.