<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> , but when in battery test I have OL CAL status: it would be good to have the result.<br>
<br>
</span>"OL CAL" or "OB CAL"? If the UPS is powering the load from the battery during calibration, it should report "OB CAL". The ONBATT handler in NOTIFYCMD can check for CAL at that point.<br>
<br>
I don't think we considered the case where CAL is paired with OL.<br>
<span class=""><br>
</span></blockquote><div><div class="gmail_default" style="font-family:verdana,sans-serif">​I confirm it, during battery testing I have OL CAL​</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Anyway I still not receive any email on any test (power cord disconnected and/or reconnected for example)<br>
<br>
</span>Oh, I misinterpreted "working script" as a script that was sending email, rather than work-in-progress. Does that same command work from the command line? Can you add something like "logger" before the mailx line to be sure that the script is executing properly? Be sure to "chmod a+x" the script.<br></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">​Yep, the script works flawlessy with a command line. It is a "modified" script from other jobs, and I receive daily all the emails from them​</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I forget if I mentioned this earlier, but for testing notifications, you can use the dummy-ups driver:<br>
<br>
   <a href="http://networkupstools.org/docs/man/dummy-ups.html" rel="noreferrer" target="_blank">http://networkupstools.org/<wbr>docs/man/dummy-ups.html</a><br>
<br>
The timer example will simulate the OL-OB-LB transition.<br></blockquote><div><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">​Maybe I have missing someting. I have exported my configuration to a .dev file, and then used for dummy ups, configured as dummy. Do i need to make circular tests (timer configuration) or may I do them manually? Just beacuse the only command allowed in dummy mode (upscmd -l dummy@artu) is load.off</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class=""><br>
> Does the runtime calibration test alter the values of ups.conf? Or do I have to change it manually? Which would be the right procedure for changing the battery for calibrating NUT (over the manufacturer's suggestions)?<br>
<br>
</span>The automatic calibration/battery test invoked by upscmd (or the UPS front panel button, if any) is for the UPS low battery warning.<br>
<br>
The manual calibration ups.conf parameters are necessary (and need to be maintained separately) because Qx-based protocols do not all report the state-of-charge as calculated by the UPS.<br>
<br>
I would recommend both forms of calibration after replacing the battery.<br>
<br></blockquote><div><div class="gmail_default" style="font-family:verdana,sans-serif;display:inline">​Ok, thanks. I will replace the battery and test it​</div> </div></div></div></div>