Displaying 20 results from an estimated 1000 matches similar to: "Tiny suggestion for upslog.c"
2014 Dec 10
0
Tiny suggestion for upslog.c
Hi Andy,
On Dec 8, 2014, at 7:07 PM, Andy Juniper <ajuniper at freeuk.com> wrote:
> It adds a signal handler for the USR1 signal, which simply triggers it to abort the current sleep and log the requested now.
I will admit that I'm not an expert on how signals interrupt system calls on all systems, but for what it's worth, the code looks good to me. Is it correct to assume that
2014 Dec 10
1
Tiny suggestion for upslog.c
Hi Charles,
On 10/12/14 14:27, Charles Lepple wrote:
> Hi Andy,
>
> On Dec 8, 2014, at 7:07 PM, Andy Juniper <ajuniper at freeuk.com> wrote:
>
>> It adds a signal handler for the USR1 signal, which simply triggers it to abort the current sleep and log the requested now.
> I will admit that I'm not an expert on how signals interrupt system calls on all systems, but
2008 Sep 17
1
UPSLog rotating
Hi,
Trying to rotate the ups.log on a FreeBSD 7.0 system
and its not being nice about it.
I tried the "quick and dirty" way by doing :
mv /var/log/ups.log ${DATEDDIRECTORY}/ups.log
kill -1 `cat /var/db/nut/upslog.pid`
I get :
Sep 17 10:57:20 valhalla upslog[81972]: could not reopen logfile /var/log/ups.log: Permission denied
So I stop upslog, remove the file, and start it
2009 Jan 30
1
Logging using upslog problem
I upgraded from V2.2 to V2.4. I use the "upslog" command to log the
values of my belkin ups (belkinunv via serial port). It would
occasionally start to record garbage, but it would always go back to
normal in V2.2 if I restarted. In V2.4 it would not record the values,
and the process would fail after the next interval had passed. I had
set if for 300 seconds.
I walked through the
2015 Aug 14
2
occassional problem wtih upslog and apc ups units via snmp ... [NA] status
I see this in syslog:
Aug 12 03:57:22 orion upsd[18274]: Data for UPS [a102-apc-10] is stale - check driver
(one for each UPS).
Then I see a bunch of messages like this:
Aug 12 03:58:02 orion upsd[18274]: write() failed for ::1: Broken pipe
Aug 12 03:58:02 orion snmpd[2872]: Connection from UDP: [127.0.0.1]:50940
And then it returns to normal like this:
Aug 12 03:58:04 orion upsd[18274]: UPS
2015 Aug 13
2
occassional problem wtih upslog and apc ups units via snmp ... [NA] status
Os is redhat enterprise, kernel 2.6.18-164.2.1.e15
NUT is apparently 2.4.1
It was installed by tar.
Monitoring a lot of apc UPS units-mostly Smart-UPS of various flavors, also a Silcon DP380E.
Normally works just fine... "upslog" writes status log every 30 seconds with various parameters..
Every so often, one of the UPS units has a log entry of:
2009 Apr 20
0
upslog patch
Hi,
I have a system which monitors 2 UPSs, and it runs upslog twice. I had a
problem with newsyslog rotating the log file because upslog keeps it
open (arguably a bug IMO), but it also has no way of changing the PID
file so newsyslog can't HUP it when log rotating.
Attached is a patch which allows you to specify the argument for
writepid() so you can differentiate them easily.
--
Daniel
2015 Aug 14
0
occassional problem wtih upslog and apc ups units via snmp ... [NA] status
On Aug 13, 2015, at 12:45 PM, Bob Brown <bbrown at harpercollege.edu> wrote:
>
> Os is redhat enterprise, kernel 2.6.18-164.2.1.e15
> NUT is apparently 2.4.1
> It was installed by tar.
>
> Monitoring a lot of apc UPS units?mostly Smart-UPS of various flavors, also a Silcon DP380E.
>
> Normally works just fine? ?upslog? writes status log every 30 seconds with
2008 Oct 01
1
Tripplite SMX1500XLRT2U through serial (upslog/CGI problem)
On Wed, Oct 1, 2008 at 7:30 AM, Roman Serbski <mefystofel at gmail.com> wrote:
>> Definitely seems like a permissions problem.
>>
>> It's been a while since I messed with USB on FreeBSD. What do the
>> permissions look like on /dev/ugen*? What modifications did you make
>> to /etc/devfs.rules?
>
> Thanks a lot Charles! I think I managed to get NUT
2009 May 05
3
[nut-commits] svn commit r1837 - trunk/clients
oops, this wasn't supposed to make it into the trunk yet. I can revert
it until further testing, but has anyone else tried running with this
patch?
http://lists.alioth.debian.org/pipermail/nut-upsdev/2009-April/003821.html
On Mon, May 4, 2009 at 10:05 PM, Charles Lepple
<clepple-guest at alioth.debian.org> wrote:
> Author: clepple-guest
> Date: Tue May 5 02:05:09 2009
> New
2015 Aug 14
0
occassional problem wtih upslog and apc ups units via snmp ... [NA] status
[please keep the list CC'd, thanks]
> On Aug 14, 2015, at 10:27 AM, Bob Brown <bbrown at harpercollege.edu> wrote:
>
> Would it put NA in the log files if maxage was too short?
I think so. I haven't tried it, but if snmp-ups polls every 30 seconds, and MAXAGE is 15, then with a random polling interval, 50% of the time the data would be more than 15 seconds old. In
2014 Nov 08
0
RFC: new variable battery.status
Dear Ted,
Am 07.11.2014 um 17:47 schrieb Ted Mittelstaedt:
> On 11/3/2014 9:25 PM, thomas schorpp wrote:
>> Hi Ted,
>>
>> Am 04.11.2014 um 04:12 schrieb Ted Mittelstaedt:
>>>
>>
>>> Note that since the UPS relies on the voltage from the battery pack to
>>> determine state of charge, it is quite useful to add in the battery pack
>>>
2014 Nov 04
0
RFC: new variable battery.status
Hi Ted,
Am 04.11.2014 um 04:12 schrieb Ted Mittelstaedt:
>
> Note that since the UPS relies on the voltage from the battery pack to
> determine state of charge, it is quite useful to add in the battery pack
> voltage to the logs as such:
>
> --- upslog.c.orig 2012-07-31 10:38:58.000000000 -0700
> +++ upslog.c 2014-02-20 09:23:14.000000000 -0800
> @@ -50,6 +50,7
2014 Nov 07
5
RFC: new variable battery.status
On 11/3/2014 9:25 PM, thomas schorpp wrote:
> Hi Ted,
>
> Am 04.11.2014 um 04:12 schrieb Ted Mittelstaedt:
>>
>
>> Note that since the UPS relies on the voltage from the battery pack to
>> determine state of charge, it is quite useful to add in the battery pack
>> voltage to the logs as such:
>>
>> --- upslog.c.orig 2012-07-31 10:38:58.000000000
2008 Dec 04
1
Battery Volts shown as 20+ on Cyber Power UPS CP1000AVRLCD [ DATA ]
Citeren "David C. Rankin" <drankinatty at suddenlinkmail.com>:
> Discharged battery.voltage:
>
> 17.4 Volts - (indicated on shutdown, discharging battery.charge 77%)
> 16.9 Volts - (indicated on shutdown, discharging battery.charge 51%%)
> 16.6 Volts - (indicated on shutdown, discharging battery.charge 33%)
>
> -- Shutdown Occurred at < 3% -- Battery
2014 Feb 20
1
Logic problem in NUT with upscode2 driver
On 2/20/2014 6:55 AM, Charles Lepple wrote:
> On Feb 19, 2014, at 12:50 PM, Ted Mittelstaedt wrote:
>
>> Worse, however, is if there's a power failure right near the end of
>> the 2-days-off cycle. That happened to me last week - it was a
>> short duration 15 second loss - and the upscode2 driver decided it
>> needed to issue a forced shutdown.
>>
>>
2014 Feb 05
0
Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
On Feb 4, 2014, at 9:05 AM, Chris Duffy wrote:
> ugen1.3: <USB UPS PPC> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
[...]
> idVendor = 0x06da
> idProduct = 0x0005
This VID:PID combination should be handled by blazer_usb. In NUT 2.7.1 and later, this would be covered by nutdrv_qx as well.
> I am running all the ups programs as root, i.e. "ps -aux" shows:
2005 Dec 16
1
Re: Bug#343530: nut: logging to rrd database
2005/12/15, Alexander V. Inyukhin <shurick@sectorb.msk.ru>:
>
> Package: nut
> Version: 2.0.2-2
> Severity: wishlist
>
> Hello.
Hi Alexander,
I think it is a good idea to log ups variables to rrd
> database instead of log file. So, I create standalone
> rrd logger dervied from upslog nut client.
> Of course, this could be easily implemented using
> upsc or
2014 Feb 05
3
Question on support for Upsonic Commercial UPS CXR 2000 - 2000VA/1200W - Rack/Tower on Freebsd 9.1.
Charles,
We run everything as "root" :)
However, we are using NUT 2.6.5.
Are we missing something by running 2.6.5 rather then
2.7.1? If so, I can build/install 2.7.1.
Thx
chris
Would On 2/4/14, 9:05 PM, Charles Lepple wrote:
> On Feb 4, 2014, at 9:05 AM, Chris Duffy wrote:
>
>> ugen1.3: <USB UPS PPC> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
> [...]
2008 Nov 16
1
Opening the 2.4 commit fest (RRD)
On Sun, Nov 16, 2008 at 11:08 AM, Arnaud Quette <aquette.dev at gmail.com> wrote:
>>> The remainder, until the -pre stage, will be:
>>> - the Powerman support (through the powerman driver) for more PDUs
>>> - the possible RRD integration into upslog
>>
>> It would be nice to have native RRD support in upslog, but we may also
>> want to point