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

    Auto update check, checks for updates to base system + packages and sends email alerts

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    102 Posts 24 Posters 39.4k Views 39 Watching
    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.
    • luckman212L Offline
      luckman212 LAYER 8
      last edited by

      To anyone following this thread: I'm on pfSense+ 25.07 now and testing a new version of the Auto update check script. Once 25.07 is released (in a few days I expect...) I will push this update, should work on current pfSense 2.8.x / 25.07.

      luckman212L 1 Reply Last reply Reply Quote 8
      • luckman212L Offline
        luckman212 LAYER 8 @luckman212
        last edited by

        I updated the script and the top post. Please report any issues!

        M C MarinSNBM 3 Replies Last reply Reply Quote 5
        • M Offline
          mind12 @luckman212
          last edited by

          @luckman212 Ty for your time. Works great on previous stable 2.7.2.

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrcoluk @luckman212
            last edited by chrcoluk

            @luckman212 I think mine still works from before on 2.8.0, but I have noticed the first post has no link to the github page, do you mind providing it in there?

            Output below from the old version, seems good still. (wgstarks)

            # /usr/local/bin/php -q /root/pkg_check.php
            System_Patches: 2.2.20_2 ==> 2.2.22
            

            I will hold of updating the package for now, so if you post the link, I will test the new code.

            pfSense CE 2.8.0

            luckman212L 1 Reply Last reply Reply Quote 0
            • luckman212L Offline
              luckman212 LAYER 8 @chrcoluk
              last edited by

              @chrcoluk It's not a full Git repo, just a Gist as of now. The link should be there but it's https://gist.github.com/luckman212/5e69ecf04e000ace47eb8f760b71e160 in case you need. The revisions are visible if you need to refer to the previous version.

              C 1 Reply Last reply Reply Quote 1
              • C Offline
                chrcoluk @luckman212
                last edited by

                @luckman212 Thanks, I also see now the link in first post, sorry its obscure as text was same colour.

                I confirm it works fine on 2.8.0, both email and cli output work also.

                pfSense CE 2.8.0

                1 Reply Last reply Reply Quote 1
                • MarinSNBM Offline
                  MarinSNB @luckman212
                  last edited by

                  @luckman212

                  It works great! Thanks so much for all your work on this!

                  Netgate 6100 Max pfSense+
                  —>Unifi Aggregation/24 Pro PoE/24 PoE Enterprise switches
                  —> UCK2+
                  —> 3x U6E APs

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    mikethiessen
                    last edited by

                    I'm still on 24.11 and I tried this script to see if it would show me that 25.07 is available, but it didn't catch that. I got some other things though.

                    luckman212L 1 Reply Last reply Reply Quote 0
                    • luckman212L Offline
                      luckman212 LAYER 8 @mikethiessen
                      last edited by

                      @mikethiessen Confirmed the behavior you're seeing. I've got a working fix I am testing now, hopefully will push an update tomorrow or Sundat with a more robust check method that properly handles this.

                      1 Reply Last reply Reply Quote 1
                      • D Offline
                        DominikHoffmann
                        last edited by

                        Just wanted to reiterate that I put it into a note under Status → Notes, so that the code stays with the gateway, even, if I have to reinstall from a backup. It’s not my idea, but I thought, it’s worth disseminating.

                        luckman212L 1 Reply Last reply Reply Quote 1
                        • luckman212L Offline
                          luckman212 LAYER 8 @DominikHoffmann
                          last edited by

                          @DominikHoffmann If you're going to install a package, you might as well try the Filer package which can store the code and restore it to the correct location as part of the XML backup.

                          provelsP 1 Reply Last reply Reply Quote 1
                          • provelsP Offline
                            provels @luckman212
                            last edited by

                            @luckman212 Hey, that Filer works great, thanks for the tip. And your Package Check, too! Thanks for all your work.

                            Peder

                            MAIN - pfSense+ 25.07.1-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                            BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                            luckman212L 1 Reply Last reply Reply Quote 0
                            • luckman212L Offline
                              luckman212 LAYER 8 @provels
                              last edited by

                              Yeah sorry about the delay on getting the new update script out. That's why e.g. the current script isn't detecting 25.07.1 etc.

                              I have it almost ready, just had a busy few days here. Should be out real soon now.

                              provelsP GertjanG 2 Replies Last reply Reply Quote 0
                              • provelsP Offline
                                provels @luckman212
                                last edited by provels

                                @luckman212 said in Auto update check, checks for updates to base system + packages and sends email alerts:

                                That's why e.g. the current script isn't detecting 25.07.1 etc.

                                Quite sure the current script notified me on 25.07.1.

                                Peder

                                MAIN - pfSense+ 25.07.1-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                                BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

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

                                  @luckman212 said in Auto update check, checks for updates to base system + packages and sends email alerts:

                                  That's why e.g. the current script isn't detecting 25.07.1 etc.

                                  Check that you've selected :

                                  103cf890-ded4-4473-8a21-21333f615049-image.png

                                  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.