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

    Gateway polling interval/frequency not working?

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    9 Posts 6 Posters 2.8k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      So saw this thread.

      http://forum.pfsense.org/index.php/topic,56224.0.html

      And hey why not change it from 1 sec to 10, save a few bytes per day.  I did a capture at 78bytes each way send and recv x every second, for a day, for a week for a month.  Your looking at like 400MB a month.  I could live with /10 of that or only 40MB

      Anyway went to change it - and seems doesn't take.. I verified its not changing the polling time, still 1 second via capture and its not staying in the form.  All other values do, just not frequency.

      Now I do need to update to current snap, but just git sync'd before this test and not working.  So too screen shots, showing I set it to 10, then hit save, then apply - then go back in and the field is blank.

      2.1-BETA0 (i386)
      built on Sat Nov 17 15:45:28 EST 2012
      FreeBSD 8.3-RELEASE-p4
      setprobe.jpg
      setprobe.jpg_thumb
      notstored.jpg
      notstored.jpg_thumb

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      1 Reply Last reply Reply Quote 0
      • D
        dhatz
        last edited by

        Indeed, changing the interval and checking /var/etc/apinger.conf section target default it seems the ping interval is kept at 1.

        1 Reply Last reply Reply Quote 0
        • W
          wallabybob
          last edited by

          @dhatz:

          Indeed, changing the interval and checking /var/etc/apinger.conf section target default it seems the ping interval is kept at 1.

          There is no code in /etc/inc/gwlb.inc to set anything other than 1 second but my /var/etc/apinger.conf has a section```
          target "121.50.x.x" {
                  description "WAN"
                  srcip "203.144.x.x"
                  interval 10s
                  alarms override "loss","delay","down";
                  rrd file "/var/db/rrd/WAN-quality.rrd"
          }

          below the "target default" section.
          1 Reply Last reply Reply Quote 0
          • AhnHELA
            AhnHEL
            last edited by

            This is working properly on AMD64 11/26 0331 snapshot, i see you're using i386.

            AhnHEL (Angel)

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              so updated to latest snap

              2.1-BETA0 (i386)
              built on Wed Dec 5 19:47:57 EST 2012
              FreeBSD 8.3-RELEASE-p5

              Ran gitsync even after - and still not working.  Same thing takes all other entries other than the actual Frequency Probe.  Put in value, after save go back in and Frequency Probe is blank

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • P
                phil.davis
                last edited by

                I use these settings a lot and have had no problem - using nanobsd. I tried entering the various values on the screenshots above, and it all got saved in config.xml and ended up in apinger.conf
                My gwlb.inc has code that sets and uses all the values on the GUI.
                I had a look in the code and couldn't see any obvious code path that would mess up saving the setting.
                johnpoz: I wonder what is interesting/different from the usual about your interfaces and gateways?

                As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  So I do have 2 gateways.  One is the IPv6 one, since I have a HE tunnel.  Now what is weird is its working on the ipv6 gateway.   But seems on the ipv4 gateway I can not edit the description either.  There is info in there, but it wont let me remove it.

                  gateways.jpg
                  gateways.jpg_thumb

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    That can happen if your config.xml actually contains two gateway entries for the same gateway name.

                    Only way around that is to edit the duplicate out of the config… (either backup/edit/restore, or viconfig)

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      Thanks jimp - that was it, or atleast there was a problem in the config.xml.  There was a duplicated gateway_item with same name and interval section was  missing the opening tag

                      
                      		 <gateway_item><interface>wan</interface>
                      			<gateway>dynamic</gateway>
                      			<name>WAN_DHCP</name>
                      			<weight>1</weight>
                      			<ipprotocol>inet</ipprotocol>
                      			 <interval><defaultgw></defaultgw></interval></gateway_item> 
                      			 <gateway_item><interface>wan</interface>
                      			<gateway>dynamic</gateway>
                      			<name>WAN_DHCP</name>
                      			<weight>1</weight>
                      			<ipprotocol>inet</ipprotocol>
                      			 <interval><defaultgw></defaultgw></interval></gateway_item> 
                      
                      

                      Now it looks to be working, I opened up the gateway and shows the 10 I put in there on edit.  I am also able to edit it now, and changes stick.  Odd wonder how long that has been messed up.  Thanks!!!

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

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