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

    Restart apinger

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 3.9k 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.
    • H Offline
      hanoveel
      last edited by

      How can I restart apinger in 1.2.3.

      I want to reset its status.

      1 Reply Last reply Reply Quote 0
      • G Offline
        gergero
        last edited by

        Hi,

        using pfSense 1.2.3 embedded on Alix:

        Is it correct to use "apinger -c /var/etc/apinger.conf" from the terminal-shell to restart apinger?
        How could this be executed/automated when apinger exits?

        Regards,
        gergero

        1 Reply Last reply Reply Quote 0
        • P Offline
          Perry
          last edited by

          Is it correct to use "apinger -c /var/etc/apinger.conf" from the terminal-shell to restart apinger?

          Correct though I would guess that you should kill it first pkill apinger or killall -9 apinger

          How could this be executed/automated when apinger exits?

          How do you know it's not working, are your connection marked down or from log?

          /Perry
          doc.pfsense.org

          1 Reply Last reply Reply Quote 0
          • G Offline
            gergero
            last edited by

            see this post for a patched apinger, version 1.2.3

            apinger not working: exit in log, no apinger process with "ps -A", and status for load-balancer without any change (marked down) but connection (both wan and vpn) working.

            My question now would be: How can I check for apinger periodicallly and have it restart if necessary, or even force kill and restart ? (any shellcmd or similar to insert in the configuration?)

            pfSense is going to be used in branch office for double wan, and double openvpn between main and branch office (16M ADSL on main office, 2 x 6M ADSL on branch office).

            Present setup is using 2 NAT routers to split my poor and only 1M ADSL in order to have 2 WANs for pfSense. During testing apinger exits from time to time, one example:

            Dec 23 09:39:46 	kernel: pid 2031 (apinger), uid 65534: exited on signal 6
            Dec 23 09:39:46 	apinger: Target "10.2.1.2": Received packets buffer: ########################.......................### ####################
            Dec 23 09:39:46 	apinger: Target "10.2.1.2": Lost packet count mismatch (6(recently_lost) != 23(really_lost))!
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.