Can't Log Data

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Can't Log Data

Mike Alsop
Hi Guys

I have used apcupsd on many Linux versions and different UPS's. I am now
running Debian Wheezy 7.11 and apcupsd 3.14.14 manually compiled.

I normally run apcgraph so I can monitor the daily performances.

I have just replaced an older APC UPS with a new APC SMT-1000 Smart UPS
and after realising I had not complied apcupsd with modbus-usb, that
fixed the cgi problem.

My problem is that no matter what I do I cannot get it to log the data
so I can use apcgraph! I have tried everything in the hand book
modifying rsyslog, turning on logsats, etc, but I just cannot get it to
log the data anywhere.

Is there something different about modbus that won't let it log?

Any help sincerely appreciated.

Mike


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't Log Data

Ted Mittelstaedt-5
Log what data?   What data are you tracking?

Perhaps a cronjob with apcaccess followed by a script to massage the
data would work?

Ted

On 10/23/2016 12:12 AM, Mike Alsop wrote:

> Hi Guys
>
> I have used apcupsd on many Linux versions and different UPS's. I am now
> running Debian Wheezy 7.11 and apcupsd 3.14.14 manually compiled.
>
> I normally run apcgraph so I can monitor the daily performances.
>
> I have just replaced an older APC UPS with a new APC SMT-1000 Smart UPS
> and after realising I had not complied apcupsd with modbus-usb, that
> fixed the cgi problem.
>
> My problem is that no matter what I do I cannot get it to log the data
> so I can use apcgraph! I have tried everything in the hand book
> modifying rsyslog, turning on logsats, etc, but I just cannot get it to
> log the data anywhere.
>
> Is there something different about modbus that won't let it log?
>
> Any help sincerely appreciated.
>
> Mike
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Apcupsd-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
>
`

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't Log Data

Mike Alsop
Tanks Ted

All previous versions have logged the stream or data figures (temp, utility voltage, percentage load, etc, to apcupsd.data in /etc.log/apcups.data, if you modified sydlog to redirect it all. In Debian I am assuming you use rsylog.conf.

Mu attempts to modify the Rsylog.conf with:

# exclude all apcupsd info by default
*.info;local0.none                    /var/log/messages

# Everything for apcupsd goes here
local0.info;local0.!notice             /var/log/apcupsd.data
local0.notice;local0.!warn            |/var/log/apcupsd.status
local0.warn                            /var/log/apcupsd.events
local0.warn                            /var/log/messages

Show only the actual apc ups events going into the apcupd.data.

I cannot seem to find that stream of data at 30 second intervals anywhere??

Again any help appreciated. Am I setting something up wrong? I just want to get the regular stream of data and store it in a log??

Thanks

Mike

On Mon, 2016-10-24 at 00:04 -0700, Ted Mittelstaedt wrote:
Log what data?   What data are you tracking?

Perhaps a cronjob with apcaccess followed by a script to massage the
data would work?

Ted

On 10/23/2016 12:12 AM, Mike Alsop wrote:
> Hi Guys
> 
> I have used apcupsd on many Linux versions and different UPS's. I am now
> running Debian Wheezy 7.11 and apcupsd 3.14.14 manually compiled.
> 
> I normally run apcgraph so I can monitor the daily performances.
> 
> I have just replaced an older APC UPS with a new APC SMT-1000 Smart UPS
> and after realising I had not complied apcupsd with modbus-usb, that
> fixed the cgi problem.
> 
> My problem is that no matter what I do I cannot get it to log the data
> so I can use apcgraph! I have tried everything in the hand book
> modifying rsyslog, turning on logsats, etc, but I just cannot get it to
> log the data anywhere.
> 
> Is there something different about modbus that won't let it log?
> 
> Any help sincerely appreciated.
> 
> Mike
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Apcupsd-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
> 
`

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't Log Data

Ted Mittelstaedt-5
Try this:

/usr/local/sbin/apcupsd -d 10000 -b

Does it produce the data figures? (mixed with other debug data of course)

Ted

On 10/24/2016 12:46 AM, Mike Alsop wrote:

> Tanks Ted
>
> All previous versions have logged the stream or data figures (temp,
> utility voltage, percentage load, etc, to apcupsd.data in
> /etc.log/apcups.data, if you modified sydlog to redirect it all. In
> Debian I am assuming you use rsylog.conf.
>
> Mu attempts to modify the Rsylog.conf with:
>
> # exclude all apcupsd info by default
>
> *.info;local0.none                    /var/log/messages
>
> # Everything for apcupsd goes here
> local0.info;local0.!notice             /var/log/apcupsd.data
> local0.notice;local0.!warn            |/var/log/apcupsd.status
> local0.warn                            /var/log/apcupsd.events
> local0.warn                            /var/log/messages
>
> Show only the actual apc ups events going into the apcupd.data.
>
> I cannot seem to find that stream of data at 30 second intervals anywhere??
>
> Again any help appreciated. Am I setting something up wrong? I just want to get the regular stream of data and store it in a log??
>
> Thanks
>
> Mike
>
>
> On Mon, 2016-10-24 at 00:04 -0700, Ted Mittelstaedt wrote:
>> Log what data?   What data are you tracking?
>>
>> Perhaps a cronjob with apcaccess followed by a script to massage the
>> data would work?
>>
>> Ted
>>
>> On 10/23/2016 12:12 AM, Mike Alsop wrote:
>> > Hi Guys
>> >
>> > I have used apcupsd on many Linux versions and different UPS's. I am now
>> > running Debian Wheezy 7.11 and apcupsd 3.14.14 manually compiled.
>> >
>> > I normally run apcgraph so I can monitor the daily performances.
>> >
>> > I have just replaced an older APC UPS with a new APC SMT-1000 Smart UPS
>> > and after realising I had not complied apcupsd with modbus-usb, that
>> > fixed the cgi problem.
>> >
>> > My problem is that no matter what I do I cannot get it to log the data
>> > so I can use apcgraph! I have tried everything in the hand book
>> > modifying rsyslog, turning on logsats, etc, but I just cannot get it to
>> > log the data anywhere.
>> >
>> > Is there something different about modbus that won't let it log?
>> >
>> > Any help sincerely appreciated.
>> >
>> > Mike
>> >
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > Apcupsd-users mailing list
>> > [hidden email]
>> <mailto:[hidden email]>
>> > https://lists.sourceforge.net/lists/listinfo/apcupsd-users
>> >
>> `
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org!http://sdm.link/slashdot
>> _______________________________________________
>> Apcupsd-users mailing list
>> [hidden email]
>> <mailto:[hidden email]>
>> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Apcupsd-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
>


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Can't Log Data

Mike Alsop
Ted

Thanks for your reply and sorry for delay in reply. I travel extensivley away from home. If I pipe this off I get this. Otherwise it is a massive file.

[hidden email]:~# apcupsd -d 10000 -b > apcupsd.output
usb_set_debug: Setting debugging level to 100 (on)
usb_os_init: Found USB VFS at /dev/bus/usb
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 002 on 004
skipped 10 class/vendor specific interface descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 2 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 004
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 002 on 003
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 003
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 004 on 001
usb_os_find_devices: Found 001 on 001
USB error: could not detach kernel driver from interface 0: No data available

Mike

On Wed, 2016-10-26 at 02:22 -0700, Ted Mittelstaedt wrote:
Try this:

/usr/local/sbin/apcupsd -d 10000 -b

Does it produce the data figures? (mixed with other debug data of course)

Ted

On 10/24/2016 12:46 AM, Mike Alsop wrote:
> Tanks Ted
> 
> All previous versions have logged the stream or data figures (temp, 
> utility voltage, percentage load, etc, to apcupsd.data in 
> /etc.log/apcups.data, if you modified sydlog to redirect it all. In 
> Debian I am assuming you use rsylog.conf.
> 
> Mu attempts to modify the Rsylog.conf with:
> 
> # exclude all apcupsd info by default
> 
> *.info;local0.none                    /var/log/messages
> 
> # Everything for apcupsd goes here
> local0.info;local0.!notice             /var/log/apcupsd.data
> local0.notice;local0.!warn            |/var/log/apcupsd.status
> local0.warn                            /var/log/apcupsd.events
> local0.warn                            /var/log/messages
> 
> Show only the actual apc ups events going into the apcupd.data.
> 
> I cannot seem to find that stream of data at 30 second intervals anywhere??
> 
> Again any help appreciated. Am I setting something up wrong? I just want to get the regular stream of data and store it in a log??
> 
> Thanks
> 
> Mike
> 
> 
> On Mon, 2016-10-24 at 00:04 -0700, Ted Mittelstaedt wrote:
>> Log what data?   What data are you tracking?
>>
>> Perhaps a cronjob with apcaccess followed by a script to massage the
>> data would work?
>>
>> Ted
>>
>> On 10/23/2016 12:12 AM, Mike Alsop wrote:
>> > Hi Guys
>> >
>> > I have used apcupsd on many Linux versions and different UPS's. I am now
>> > running Debian Wheezy 7.11 and apcupsd 3.14.14 manually compiled.
>> >
>> > I normally run apcgraph so I can monitor the daily performances.
>> >
>> > I have just replaced an older APC UPS with a new APC SMT-1000 Smart UPS
>> > and after realising I had not complied apcupsd with modbus-usb, that
>> > fixed the cgi problem.
>> >
>> > My problem is that no matter what I do I cannot get it to log the data
>> > so I can use apcgraph! I have tried everything in the hand book
>> > modifying rsyslog, turning on logsats, etc, but I just cannot get it to
>> > log the data anywhere.
>> >
>> > Is there something different about modbus that won't let it log?
>> >
>> > Any help sincerely appreciated.
>> >
>> > Mike
>> >
>> >
>> > 
>> ------------------------------------------------------------------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > Apcupsd-users mailing list
>> > [hidden email] 
>> <[hidden email]>
>> > https://lists.sourceforge.net/lists/listinfo/apcupsd-users
>> >
>> `
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org!http://sdm.link/slashdot
>> _______________________________________________
>> Apcupsd-users mailing list
>> [hidden email] 
>> <[hidden email]>
>> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
> 
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> 
> 
> 
> _______________________________________________
> Apcupsd-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/apcupsd-users
> 


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive.
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
Apcupsd-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/apcupsd-users
Loading...