[Nut-upsuser] battery not installed, but battery still 100% and NUT 2.7.2-4 does not catch this and report a error

Gene Heskett gheskett at shentel.net
Mon Apr 3 23:03:52 UTC 2017


On Monday 03 April 2017 16:39:30 Stuart D. Gathman wrote:

> On Mon, 3 Apr 2017, Gene Heskett wrote:
> >>> Nut, IIRC, can do a periodic battery test by putting it offline,
> >>> using the battery, for a predetermined length of time, weekly,
> >>> monthly etc,
> >>
> >> We definitely don't want that in this instance either!
> >
> > Why not? If the battery has a holdup time of 5 minutes when its
> > fresh,
>
> Because in this instance it crashes your system, corrupts filesystems,
> etc, etc.
>
But it does that because you have tried to get 12  years out of a gell 
cell battery that is doing really really well if you get 4 years out of 
it. I am not saying you should do that _now_, without first replacing 
that thoroughly boiled dry battery, but as something you should set it 
up to do once you have a serviceable battery set installed in it.  That 
way, you would be getting warnings before this replacement battery is 
deep into its failure.  THIS is how you best prevent these surprise 
failures that are probably causing recovery nightmares and lost profit 
opportunities because of the downtime.

A good manager isn't the one who spends less money, thinking it improves 
the P&L report.  He is the one who spends the money wisely to maintain 
as close to 100% uptime as he can.  Do that, and the P&L report will 
take care of itself.

> >> We want the ALARM that the nut driver is
> >> generating, and upsd is passing on - to be acted on in some way by
> >> upsmon.  Which NOTIFYCMD is run when there is an ALARM?

Have you specified that in your upsmon.conf?  And have you verified that 
the resources it needs to send that warning message are available on 
your systems? See man wall and test the default. You will have to 
compose a one line file, and name that file in order to send the 
contents of that file to users.

Create that file:
echo "I need a fresh battery" >rplbat.

Then do wall rplbat
and get this on every screen on the system:
gene at coyote:~$ sudo wall rplbat
                                                                               
Broadcast Message from gene at coyo                                               
        (/dev/pts/2) at 18:56 ...                                              
                                                                               
I need a fresh battery                                                         

Which can be embellished by naming the ups that needs the battery I 
believe.

Now, I'll bow out and let the nut maintainers advise from here. I am just 
a happy nut user trying to help.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>



More information about the Nut-upsuser mailing list