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

    send interface statistic daily as mail

    General pfSense Questions
    3
    4
    242
    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.
    • noplanN
      noplan
      last edited by

      out of the blue

      any idea how to send the interface statistic every day via eMail

      interfaceName | Bytes In | Bytes Out

      brNP

      noplanN 1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by NogBadTheBad

        install the Status Traffic Totals and run the following shell script, tweak the script to suit :-

        #!/bin/csh
        foreach int ( pppoe0 igb0.2 igb0.3 igb0.4 igb0.5 igb0.6 igb0.7 igb0.9 igb0.11 enc0 )
        echo
        /usr/local/bin/vnstat -i $int -d 1
        echo
        end
        foreach int ( pppoe0 igb0.2 igb0.3 igb0.4 igb0.5 igb0.6 igb0.7 igb0.9 igb0.11 enc0 )
        echo
        /usr/local/bin/vnstat -i $int -h
        echo
        end
        

        Screenshot 2020-04-14 at 20.51.32.png

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 1
        • Y
          YannTKO
          last edited by

          This is my setup for my WAN interface :
          Capture d’écran 2.jpg

          Regards

          Netgate SG-3100 23.09.1
          Unifi UAP: 1x FlexHD + 2x nanoHD + 1x AC-IW | Unifi USW: 1x16-PoE Gen2 + 4x US-8-60W | Cloudkey Gen2 Plus
          1 x NUC8i7BEH 32Go - ESXI 8 (Pfsense + many VM)

          1 Reply Last reply Reply Quote 0
          • noplanN
            noplan @noplan
            last edited by

            Awesome folks!!!!
            Yeahhh! Thx!

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