search for: do_notify

Displaying 20 results from an estimated 23 matches for "do_notify".

2012 Sep 11
1
Back UPS ES and data stale with disconnected device
...iled - got [ERR ACCESS-DENIED] 0.031200 Current power value: 1 0.046800 Minimum power value: 1 5.054409 pollups: upsa at 192.168.10.200 5.054409 get_var: upsa at 192.168.10.200 / status 5.054409 Poll UPS [upsa at 192.168.10.200] failed - Data stale 5.070009 do_notify: ntype 0x0005 (COMMBAD) 5.070009 Communications with UPS upsa at 192.168.10.200 lost 5.085609 Current power value: 1 5.085609 Minimum power value: 1 10.097895 pollups: upsa at 192.168.10.200 10.097895 get_var: upsa at 192.168.10.200 / status 10.097895 Poll UPS...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index f6f1f28..b955a5e 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -60,8 +60,13 @@ typedef struct VirtIONet VirtQueue *tx_vq; VLANClientState *vc; int can_receive; + int tap_fd; + struct VirtIONet *next; + int do_notify; } VirtIONet; +static VirtIONet *VirtIONetHead = NULL; + static VirtIONet *to_virtio_net(VirtIODevice *vdev) { return (VirtIONet *)vdev; @@ -96,42 +101,81 @@ static int virtio_net_can_receive(void *opaque) return (n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK) && n->ca...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index f6f1f28..b955a5e 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -60,8 +60,13 @@ typedef struct VirtIONet VirtQueue *tx_vq; VLANClientState *vc; int can_receive; + int tap_fd; + struct VirtIONet *next; + int do_notify; } VirtIONet; +static VirtIONet *VirtIONetHead = NULL; + static VirtIONet *to_virtio_net(VirtIODevice *vdev) { return (VirtIONet *)vdev; @@ -96,42 +101,81 @@ static int virtio_net_can_receive(void *opaque) return (n->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK) && n->ca...
2020 Jan 26
1
Timer doesn't appear to start
...i upscode2[453]: Communications with UPS re-established I stopped the upsmon service and started manually with upsmon -DDD. Here is the output : 55.140869 parse_status: [OB] 55.141018 parsing: [OB] 55.141105 ups_on_batt: deltec-PRA1500 at localhost (first time) 55.141193 do_notify: ntype 0x0001 (ONBATT) 90.160602 Poll UPS [deltec-PRA1500 at localhost] failed - Data stale 90.160764 do_notify: ntype 0x0005 (COMMBAD) 90.160889 Communications with UPS deltec-PRA1500 at localhost lost 90.160889 Communications with UPS deltec-PRA1500 at localhost lost 9...
2011 Apr 28
1
Problem with blazer_ser/megatec when upgrading to 2.6.0 from 2.4
...0.001301 Trying to connect to UPS [munja at localhost] 0.002166 Logged into UPS munja at localhost 0.002184 pollups: munja at localhost 0.002197 get_var: munja at localhost / status 0.002279 Poll UPS [munja at localhost] failed - Driver not connected 0.002290 do_notify: ntype 0x0005 (COMMBAD) 0.002297 Communications with UPS munja at localhost lost 5.002588 pollups: munja at localhost 5.002617 get_var: munja at localhost / status 5.002758 Poll UPS [munja at localhost] failed - Driver not connected 5.002771 do_notify: ntype 0x000...
2012 Sep 19
1
New intermediate Windows binaries release - 2.6.5-3
?Hello, There is a new intermediate Windows binaries release available at : http://www.networkupstools.org/package/windows/NUT-Installer-2.6.5-3.msi This fixes a regression about stopping the NUT service. Feedback is highly appreciated. Regards, Fred -- Eaton Opensource Team - http://opensource.eaton.com ----------------------------- -----------------------------
2016 Aug 05
1
NUT UPS Slave Not Shutting Down
...e: 1 10.231707 pollups: ups_genric at 192.168.16.116 10.231831 get_var: ups_genric at 192.168.16.116 / status 10.232861 parse_status: [OB DISCHRG] 10.232975 parsing: [OB] 10.233051 ups_on_batt: ups_genric at 192.168.16.116 (first time) 10.233124 do_notify: ntype 0x0001 (ONBATT) 10.233190 UPS ups_genric at 192.168.16.116 on battery 10.233659 get_var: ups_genric at 192.168.16.116 / battery 10.234684 parsing: [DISCHRG] 10.234801 Current power value: 1 10.234866 Minimum power value: 1 sh: wall: not found...
2005 Dec 19
1
Upsmon problem
...y problem. Here is the message I receive from the Debug: rounoff:/var/run/nut# upsmon -D Network UPS Tools upsmon 2.0.2 UPS: bup@localhost (master) (power value 1) Using power down flag file /etc/killpower Trying to connect to UPS [bup@localhost] UPS [bup@localhost]: connect failed: No such host do_notify: ntype 0x0005 (COMMBAD) Communications with UPS bup@localhost lost I found that if I put the -p it work but i'm not sure of what that's implying. Any clues of how to fix that problem ? Where to look? Thanks in advance -- Mathieu Bruneau aka ROunofF === GPG keys available @ http://rouno...
2014 Oct 01
2
Socomec ITYS 3000 + Netvision upsmon output
...ct to UPS [myups at 127.0.0.1] 0.004279 Can not connect to 127.0.0.1 in SSL, continue uncrypted 0.004588 Logged into UPS myups at 127.0.0.1 0.004826 pollups: myups at 127.0.0.1 0.004847 get_var: myups at 127.0.0.1 / status 0.005017 parse_status: [] 0.005032 do_notify: ntype 0x0005 (COMMBAD) 0.005039 commbad 0.005212 Current power value: 1 0.005226 Minimum power value: 1 5.005315 pollups: myups at 127.0.0.1 5.005340 get_var: myups at 127.0.0.1 / status 5.005504 parse_status: [] 5.005515 do_notify: ntype 0x0008 (NO...
2011 Jan 13
1
SSL certificate verification with OpenSSL in NUT trunk
Hi all, After client's certificate verifications discussion in the mailing-list, I have done some tests with nut trunk and - if my config is not too bad - I think ther is a bug with server certificate verification. With a clean trunk checkout, compile and installation; and with the following config : upsmon.conf: CERTPATH /usr/local/ups/etc/cert/ CERTVERIFY 1 FORCESSL 1 Upsd.conf: CERTFILE
2011 Jun 28
3
Changes to upscli_connect
Hello, I am currently working on the nut scanner. For detecting available upsd on the network, I rely on upscli_connect. The problem with this function is that it calls a blocking "connect" function. So the nut-scanner is blocked while waiting for the TCP timeout when trying to connect to an IP without upsd available . Since this timeout may be rather long (3 minutes on my host), I
2006 Jan 04
1
Nut 2.0.1, net-snmp-5.1.2p2, APC SUA1000 with AP9606: repeated comm lost/established messages
...ost) (no change) polling ups: ap9606-srv@localhost get_var: ap9606-srv@localhost / status status: [OL] parsing: [OL]: ups_on_line(ap9606-srv@localhost) (no change) polling ups: ap9606-srv@localhost get_var: ap9606-srv@localhost / status Poll UPS [ap9606-srv@localhost] failed - Data stale do_notify: ntype 0x0005 (COMMBAD) Communications with UPS ap9606-srv@localhost lost Broadcast Message from root@z9.z9.com (/dev/ttyp0) at 10:39 ... Communications with UPS ap9606-srv@localhost lost polling ups: ap9606-srv@localhost get_var: ap9606-srv@localhost / status status: [OL]...
2012 Aug 30
1
Data stale and Back UPS ES
...iled - got [ERR ACCESS-DENIED] 0.044002 Current power value: 1 0.047002 Minimum power value: 1 5.049289 pollups: upsa at 192.168.10.200 5.055289 get_var: upsa at 192.168.10.200 / status 5.064289 Poll UPS [upsa at 192.168.10.200] failed - Data stale 5.075290 do_notify: ntype 0x0005 (COMMBAD) 5.083290 Communications with UPS upsa at 192.168.10.200 lost ... What should I check to fix ACCESS-DENIED error? 2. UPSHID-UPS fails with output: Network UPS Tools - Generic HID driver 0.37 (2.6.5-3691:3709M) USB communication driver 0.31 0.000000 debug l...
2024 Mar 08
1
NUT 2.8.1 (source build) Pi OS bookworm 32 bit - nut-monitor trying to connect to UPS - Connection Refused
...onitor[6542]: 0.011311 [D1] Trying to connect to UPS [ups at localhost] Mar 08 07:49:09 WiringCloset nut-monitor[6542]: 0.319633 UPS [ups at localhost]: connect failed: Connection failure: Connection refused Mar 08 07:49:09 WiringCloset nut-monitor[6542]: 0.319693 [D2] do_notify: ntype 0x0005 (COMMBAD) Mar 08 07:49:09 WiringCloset nut-monitor[6542]: 0.319707 commbad Mar 08 07:49:09 WiringCloset nut-monitor[6542]: 0.320094 [D1] Trying to connect to UPS [heartbeat at localhost] Mar 08 07:49:09 WiringCloset nut-monitor[6542]: 0.328471 UPS [heartb...
2019 Jul 18
2
Another New User Question - Notify Script Not Running
2015 Sep 22
2
FreeBSD backed with a PR1500LCDRT2U
I need some help here with getting this thing running. Every time I enable NUT on the server, I get a "on battery" status when I know that it is running on house power. This only occurs when I am monitoring it with FreeBSD(NAS4Free) When i plug the same UPS into CentOS 6.7, It works as expected. I am not sure what the difference between the NUT versions other than the base OS would be.
2015 Sep 23
2
FreeBSD backed with a PR1500LCDRT2U
...0 UPS: server at localhost (master) (power value 1) 0.000051 Using power down flag file /var/etc/killpower 0.000138 debug level is '3' 0.004778 Trying to connect to UPS [Blob at localhost] 0.005103 UPS [Blob at localhost]: connect failed: Connection failure: Connection refused 0.005116 do_notify: ntype 0x0005 (COMMBAD) 0.005121 Communications with UPS Blob at localhost lost 0.005326 Current power value: 1 0.005341 Minimum power value: 1 Broadcast Message from root at blob.frentzgzesh.info (/dev/pts/0) at 9:09 EDT... Communications with UPS Blob at localhost lost Executing command...
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
..., status); - return; + /* All is well, continue to poll SIGUSR1 RP */ + set_alarm(); + if (get_var(ups, "SIGUSR1", status, sizeof(status)) == 0) { + clear_alarm(); + if ( ! (strcmp(status,"0") == 0)) { /* See K&R p.53 */ + /* We have a SIGUSR1 */ + do_notify(ups, NOTIFY_SIGUSR1); + } + /* All is well, continue to poll SIGUSR2 RP */ + set_alarm(); + if (get_var(ups, "SIGUSR2", status, sizeof(status)) == 0) { + clear_alarm(); + if ( ! (strcmp(status,"0") == 0)) { + /* We have a SIGUSR2 */ + do_notify(ups, NOTIFY_...
2012 Apr 16
2
Snmp-ups/netvision driver for Socomec UPS
...debug level is '3' 0.000705 Trying to connect to UPS [socomec at localhost] 0.001065 Logged into UPS socomec at localhost 0.001127 pollups: socomec at localhost 0.001137 get_var: socomec at localhost / status 0.001186 parse_status: [] 0.001209 do_notify: ntype 0x0005 (COMMBAD) 0.001220 Communication with the UPS is lost In netvision-mib.c I see that ups.status field is constructed from NETVISION_OID_BATTERYSTATUS (.1.3.6.1.4.1.4555.1.1.1.1.2.1.0) and NETVISION_OID_OUTPUT_SOURCE (.1.3.6.1.4.1.4555.1.1.1.1.4.1.0). Battery status is norma...
2006 Jan 26
1
newhidups (2.03-pre2) not working with APC Back-UPS 500
...s upsmon 2.0.3-pre2 UPS: UPS@localhost (slave) (power value 1) Using power down flag file /etc/killpower Trying to connect to UPS [UPS@localhost] Logged into UPS UPS@localhost polling ups: UPS@localhost get_var: UPS@localhost / status Poll UPS [UPS@localhost] failed - Variable not supported by UPS do_notify: ntype 0x0005 (COMMBAD) Communications with UPS UPS@localhost lost ... At this point, upsd reports an error: ... Pinging UPS [UPS] Got PONG from UPS [UPS] acl_check: localhost: match 1 ACL [localhost] matches, action=1 Connection from 127.0.0.1 acl_check: localhost: match 1 ACL [localhost] match...