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

    NUT: Data Stale!

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    13 Posts 3 Posters 17.0k 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.
    • E
      ericab
      last edited by

      ups.conf, or upsmon.conf ?

      upsmon.conf already contains "POLLFREQ 3"

      1 Reply Last reply Reply Quote 0
      • E
        ericab
        last edited by

        bump  ???

        1 Reply Last reply Reply Quote 0
        • B
          bardelot
          last edited by

          In the ups.conf file you define how frequently the local UPS status is refreshed. The default pollinterval is 2 seconds, however that might be too often in some cases, thus you can try to increase the interval e.g. 5 seconds.

          The upsmon.conf configures the monitoring part, that decides when it has to shutdown the system. The polling frequency (POLLFREQ) is by default 5 seconds, and should be larger than the configured pollinterval. You may even use a larger POLLFREQ and additionally configure POLLFREQALERT (default 5 seconds), that is the polling frequency if the UPS is detected to run on battery. The POLLFREQALERT should always be equal or lower than the POLLFREQ.

          1 Reply Last reply Reply Quote 0
          • E
            ericab
            last edited by

            ive done this and there is no change.

            1 Reply Last reply Reply Quote 0
            • B
              bardelot
              last edited by

              The configured POLLFREQ in upsmon.conf might be too small. Try to use the default values:

              ups.conf: "pollinterval=2"
              upsmon.conf: "POLLFREQ 5"

              1 Reply Last reply Reply Quote 0
              • E
                ericab
                last edited by

                id like to add that i have not changed these config files since i first set nut up…

                but alright i will give this a try, and get back to you.

                thanks for the help

                1 Reply Last reply Reply Quote 0
                • E
                  ericab
                  last edited by

                  overnight, my logs are just FULL of this again.

                  Mar 5 10:11:31 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                  Mar 5 10:11:31 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                  Mar 5 10:11:26 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                  Mar 5 10:11:26 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                  Mar 5 10:11:21 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale
                  Mar 5 10:11:21 upsmon[12387]: Poll UPS [Cyberpower@localhost] failed - Data stale

                  1 Reply Last reply Reply Quote 0
                  • C
                    ColdFusion
                    last edited by

                    This has been an issue for a very long time. If you search for "Stale data" you'll see. I just restart nut every 15 minutes in cron and that keeps it going. I've fiddled with all kinds of settings to no avail. Anyway, this seems to work for me.

                    1 Reply Last reply Reply Quote 0
                    • E
                      ericab
                      last edited by

                      thanks coldfusion;
                      thats a good idea.

                      what cron entry do you have in your setup to achieve this ?

                      1 Reply Last reply Reply Quote 0
                      • C
                        ColdFusion
                        last edited by

                        /usr/local/etc/rc.d/nut.sh start

                        minute hour mday month wday who  command

                        */15  *          *          *            *      root    /usr/local/etc/rc.d/nut.sh start

                        1 Reply Last reply Reply Quote 0
                        • E
                          ericab
                          last edited by

                          coldfusion,

                          this has worked perfectly, thanks.
                          hopefully the devs will work on a fix for this.

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