Re: [systemd-devel] How to get hardware watchdog status when using systemd

2019-05-28 Thread Wiktor Kwapisiewicz
Hi Lennart, On 28.05.2019 14:02, Lennart Poettering wrote: The kernel devices are currently single-use only. Most of these fields are exported via sysfs too however: grep . /sys/class/watchdog/watchdog0/* Oh, that's very useful and indeed, there is timeleft property there and it's chang

Re: [systemd-devel] How to get hardware watchdog status when using systemd

2019-05-28 Thread Wiktor Kwapisiewicz
On 28.05.2019 14:00, Zbigniew Jędrzejewski-Szmek wrote: This currently isn't exported by systemd, and there's even no log message at debug level. I guess this could be exposed, but I don't think it'd be very useful. If the watchdog ping works, most people don't need to look at it. If it doesn't,

Re: [systemd-devel] How to get hardware watchdog status when using systemd

2019-05-28 Thread Lennart Poettering
On Di, 28.05.19 13:50, Wiktor Kwapisiewicz ([email protected]) wrote: > Hi Zbyszek, > > On 28.05.2019 13:43, Zbigniew Jędrzejewski-Szmek wrote: > > What kind of information are you after? > > One interesting statistic I'd like to see changing is the time when the > watchdog was notified last. >

Re: [systemd-devel] How to get hardware watchdog status when using systemd

2019-05-28 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 28, 2019 at 01:50:53PM +0200, Wiktor Kwapisiewicz wrote: > Hi Zbyszek, > > On 28.05.2019 13:43, Zbigniew Jędrzejewski-Szmek wrote: > >What kind of information are you after? > > One interesting statistic I'd like to see changing is the time when > the watchdog was notified last. > >

Re: [systemd-devel] How to get hardware watchdog status when using systemd

2019-05-28 Thread Wiktor Kwapisiewicz
Hi Zbyszek, On 28.05.2019 13:43, Zbigniew Jędrzejewski-Szmek wrote: What kind of information are you after? One interesting statistic I'd like to see changing is the time when the watchdog was notified last. For example, there is Timeleft in this wdctl output [0]: # wdctl Identity:

Re: [systemd-devel] How to get hardware watchdog status when using systemd

2019-05-28 Thread Zbigniew Jędrzejewski-Szmek
On Tue, May 28, 2019 at 12:59:27PM +0200, Wiktor Kwapisiewicz wrote: > Hello, > > I've enabled "RuntimeWatchdogSec=30" in /etc/systemd/system.conf > (after reading excellent "systemd for Administrators" series [0]). > > Before enabling that "wdctl" printed nice statistics but now it only > inform

[systemd-devel] How to get hardware watchdog status when using systemd

2019-05-28 Thread Wiktor Kwapisiewicz
Hello, I've enabled "RuntimeWatchdogSec=30" in /etc/systemd/system.conf (after reading excellent "systemd for Administrators" series [0]). Before enabling that "wdctl" printed nice statistics but now it only informs that the "watchdog already in use, terminating." I guess this is obvious as