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

    Apcupsd: Battery age 23 Years 9 Months 8 Days?

    Scheduled Pinned Locked Moved UPS Tools
    4 Posts 3 Posters 765 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.
    • D
      DominikHoffmann
      last edited by

      Screenshot 2024-10-09 at 12.03.03 AM.png

      What’s wrong here? The battery in this basically brand-new UPS does not date back to the first day of this millennium.

      In case it helps, this is the configuration:

      	<apcupsd>
      		<config>
      			<apcupsdenabled>on</apcupsdenabled>
      			<upsname>APC Back-UPS BE1050G3</upsname>
      			<upscable>usb</upscable>
      			<upstype>usb</upstype>
      			<device></device>
      			<polltime>60</polltime>
      			<killonpowerfail></killonpowerfail>
      			<lockfile></lockfile>
      			<onbatterydelay>6</onbatterydelay>
      			<batterylevel>5</batterylevel>
      			<minutes>3</minutes>
      			<timeout>0</timeout>
      			<annoy>300</annoy>
      			<annoydelay>60</annoydelay>
      			<killdelay>0</killdelay>
      			<shutdownbehavior>halt</shutdownbehavior>
      			<netserver>on</netserver>
      			<nisip>0.0.0.0</nisip>
      			<nisport>3551</nisport>
      			<upsclass>standalone</upsclass>
      			<upsmode>disable</upsmode>
      			<emailnotification><![CDATA[phpmailer]]></emailnotification>
      			<smtphost></smtphost>
      			<smtpport></smtpport>
      			<smtpfrom></smtpfrom>
      			<smtpto></smtpto>
      			<smtpcc></smtpcc>
      		</config>
      	</apcupsd>
      
      dennypageD J 2 Replies Last reply Reply Quote 0
      • dennypageD
        dennypage @DominikHoffmann
        last edited by

        @DominikHoffmann This means that either the battery install date has not been set in the UPS (likely, it is a manual process) or the UPS does not accurately report the install date (unlikely).

        1 Reply Last reply Reply Quote 1
        • J
          jrey @DominikHoffmann
          last edited by

          @DominikHoffmann

          ssh into the system - set the battery date

          stop the apcupsd daemon by running

          /usr/local/etc/rc.d/apcupsd.sh stop
          

          run

          apctest
          

          select View/Change battery date
          system will display current battery date and prompt to enter a new one
          system will write the new date and display the current battery date
          select q to exit the apctest application
          restart the daemon by running

          /usr/local/etc/rc.d/apcupsd.sh start
          
          D 1 Reply Last reply Reply Quote 2
          • D
            DominikHoffmann @jrey
            last edited by

            @jrey: Very helpful! Thank you very much!

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