<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I use the NUT RPM package for CentOS 6.7, which is version 2.6.5-2.<div><br></div><div>I am testing implementation of NUT features with APC and Tripp-Lite USB UPS interfaces.  Things are going reasonably well.  However, I'm seeing many more messages than I would like in /var/log/messages when I boot the system without the UPS connected.  I have configured NOCOMMWARNTIME 3600, which takes care to only broadcast to logged in terminals and send me emails once an hour.  However, /var/log/messages is being filled with "upsmon[2391]: Poll UPS [tripplite@localhost] failed - Driver not connected" messages every five seconds.  I cannot seem to find a way to reduce that chatter.<div><br></div><div>These messages originate in pollups() in clients/upsmon.c.  It looks to me like pollups() sees the utype_t->status flag ST_CONNECTED set, yet the UPSCONN_t->fd is -1, which means there is no valid connection (upscli_sendline() in clients/upsclient.c sets UPSCONN_t->upserror = UPSCLI_ERR_DRVNOTCONN).  If ST_CONNECTED was clear, the connection would be retried.  It appears to me that because ST_CONNECTED is set, pollups() thinks it should have a good connection and is surprised to find out it does not.  Thus, it always writes the "Driver not connected" message to /var/log/messages.  This looks like an incorrect ST_CONNECTED state in the utype_t->status flag.</div><div><br></div><div>I know I can slow down the polling interval.  But, I really don't want to do that.  That reduces, but does not really eliminate filling /var/log/messages with all these messages.</div><div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Helvetica Neue'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Larry Baker<br>US Geological Survey<br>650-329-5608<br><a href="mailto:baker@usgs.gov">baker@usgs.gov</a><br><br><br></span>
</div>
<br></div></div></div></body></html>