Anton Martchukov
2008-Jul-03 21:57 UTC
[Nut-upsuser] megatec driver floods syslog with "UPS lost/re-established" messages
Hello, I have bought Powerman Optima 500 Plus UPS. While this product might be unknown outside Russia, it is shipped with megatec software and obviously works with megatec driver in NUT. besides the following problems (I think they are caused by one reason): 1) megatac driver is able to load and detect UPS only on second or third run. On the first run it typically fails. Later if daemon is being stoped and started again it's more likely to fail after restart too, but on the second restart it will mostly work ok. When it fails to start it outputs this to syslog: Jul 2 22:58:53 alcor upsd[5353]: Can't connect to UPS [powerman] (megatec-powerman): No such file or directory 2) When it starts properly it works nice, e.g. output UPS parameters, deteact low baterry etc. besides the fact that it floods syslog with the following message each polling cycle of the driver Jul 3 23:07:16 alcor megatec[7070]: Communications with UPS re-established Jul 3 23:07:24 alcor megatec[7070]: Communications with UPS lost: No status from UPS. Jul 3 23:07:31 alcor megatec[7070]: Communications with UPS re-established Jul 3 23:07:39 alcor megatec[7070]: Communications with UPS lost: No status from UPS. Jul 3 23:07:46 alcor megatec[7070]: Communications with UPS re-established Jul 3 23:07:54 alcor megatec[7070]: Communications with UPS lost: No status from UPS. Jul 3 23:08:01 alcor megatec[7070]: Communications with UPS re-established Jul 3 23:08:07 alcor megatec[7070]: Communications with UPS lost: No status from UPS. Jul 3 23:08:14 alcor megatec[7070]: Communications with UPS re-established Jul 3 23:08:29 alcor megatec[7070]: Communications with UPS lost: No status from UPS. I have tried different settings of polling cycle for the dirver and believe that it does not affect the presence of this message at all. Any help/directions will be highly appreciated. I know a bit of C and willing to try to solve this problem. -- Anton Martchukov http://www.martchukov.com 0xFC4FBF28 96BC 3DAB 231A 7FCC 4F49 D783 9A69 65C1 FC4F BF28
Carlos Rodrigues
2008-Jul-03 22:19 UTC
[Nut-upsuser] megatec driver floods syslog with "UPS lost/re-established" messages
On Thu, Jul 3, 2008 at 10:57 PM, Anton Martchukov <anton at martchukov.com> wrote:> 1) megatac driver is able to load and detect UPS only on > second or third run. On the first run it typically fails. > Later if daemon is being stoped and started again it's more > likely to fail after restart too, but on the second restart > it will mostly work ok. > > When it fails to start it outputs this to syslog: > > Jul 2 22:58:53 alcor upsd[5353]: Can't connect to UPS > [powerman] (megatec-powerman): No such file or directory > > 2) When it starts properly it works nice, e.g. output UPS > parameters, deteact low baterry etc. besides the fact that > it floods syslog with the following message each polling > cycle of the driver > > Jul 3 23:07:16 alcor megatec[7070]: Communications with UPS re-established > Jul 3 23:07:24 alcor megatec[7070]: Communications with UPS lost: No status from UPS. > Jul 3 23:07:31 alcor megatec[7070]: Communications with UPS re-established > Jul 3 23:07:39 alcor megatec[7070]: Communications with UPS lost: No status from UPS. > Jul 3 23:07:46 alcor megatec[7070]: Communications with UPS re-established > Jul 3 23:07:54 alcor megatec[7070]: Communications with UPS lost: No status from UPS. > Jul 3 23:08:01 alcor megatec[7070]: Communications with UPS re-established > Jul 3 23:08:07 alcor megatec[7070]: Communications with UPS lost: No status from UPS. > Jul 3 23:08:14 alcor megatec[7070]: Communications with UPS re-established > Jul 3 23:08:29 alcor megatec[7070]: Communications with UPS lost: No status from UPS. > > I have tried different settings of polling cycle for the > dirver and believe that it does not affect the presence of > this message at all. > > Any help/directions will be highly appreciated. I know a bit > of C and willing to try to solve this problem.Which version of NUT are you using? -- Carlos Rodrigues
Anton Martchukov
2008-Jul-04 07:27 UTC
[Nut-upsuser] megatec driver floods syslog with "UPS lost/re-established" messages
On 7/4/08, Carlos Rodrigues <cefrodrigues at gmail.com> wrote:> Which version of NUT are you using?Version of NUT is 2.2.2 -- Anton Martchukov http://www.martchukov.com
Arjen de Korte
2008-Jul-04 08:05 UTC
[Nut-upsuser] megatec driver floods syslog with "UPS lost/re-established" messages
> Jul 2 22:58:53 alcor upsd[5353]: Can't connect to UPS > [powerman] (megatec-powerman): No such file or directoryThe driver couldn't detect the UPS. The above message is due to a broken startup script, since the upsd should not be started if drivers failed to start.> 2) When it starts properly it works nice, e.g. output UPS > parameters, deteact low baterry etc. besides the fact that > it floods syslog with the following message each polling > cycle of the driver > > Jul 3 23:07:16 alcor megatec[7070]: Communications with UPS > re-established > Jul 3 23:07:24 alcor megatec[7070]: Communications with UPS lost: No > status from UPS. > Jul 3 23:07:31 alcor megatec[7070]: Communications with UPS > re-established > Jul 3 23:07:39 alcor megatec[7070]: Communications with UPS lost: No > status from UPS. > Jul 3 23:07:46 alcor megatec[7070]: Communications with UPS > re-established > Jul 3 23:07:54 alcor megatec[7070]: Communications with UPS lost: No > status from UPS. > Jul 3 23:08:01 alcor megatec[7070]: Communications with UPS > re-established > Jul 3 23:08:07 alcor megatec[7070]: Communications with UPS lost: No > status from UPS. > Jul 3 23:08:14 alcor megatec[7070]: Communications with UPS > re-established > Jul 3 23:08:29 alcor megatec[7070]: Communications with UPS lost: No > status from UPS. > > I have tried different settings of polling cycle for the > dirver and believe that it does not affect the presence of > this message at all.Same here. The connection to the UPS is unreliable and the driver is informing you about this.> Any help/directions will be highly appreciated. I know a bit > of C and willing to try to solve this problem.Well, the only thing I can say is that you should try to find out why the communication with the UPS is so unreliable. Fixing that would solve both the startup problems and the flooding of the logs. Running the driver in debug mode with 'megatec -DDD -a powerman' might help diagnose. Regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57