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

send interface statistic daily as mail

Scheduled Pinned Locked Moved General pfSense Questions
4 Posts 3 Posters 243 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.
  • N
    noplan
    last edited by Apr 14, 2020, 7:10 PM

    out of the blue

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

    interfaceName | Bytes In | Bytes Out

    brNP

    N 1 Reply Last reply Apr 14, 2020, 8:10 PM Reply Quote 0
    • N
      NogBadTheBad
      last edited by NogBadTheBad Apr 15, 2020, 6:25 AM Apr 14, 2020, 7:53 PM

      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 Apr 14, 2020, 7:59 PM

        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
        • N
          noplan @noplan
          last edited by Apr 14, 2020, 8:10 PM

          Awesome folks!!!!
          Yeahhh! Thx!

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received