search for: upsclient

Displaying 20 results from an estimated 47 matches for "upsclient".

2015 Feb 13
1
Error installing Nut 2.7.2 on RedHat 6.6
...creating data/html/Makefile config.status: creating data/Makefile config.status: creating data/driver.list config.status: creating docs/Makefile config.status: creating docs/man/Makefile config.status: creating drivers/Makefile config.status: creating include/Makefile config.status: creating lib/libupsclient-config config.status: creating lib/libupsclient.pc config.status: creating lib/libnutclient.pc config.status: creating lib/libnutscan.pc config.status: creating lib/Makefile config.status: creating scripts/augeas/Makefile config.status: creating scripts/augeas/nutnutconf.aug config.status: creating...
2007 Jan 12
2
Makefiles driving me NUTs
I want to use upsdebugx, upslogx in 'clients/upsclient.c', however this fails with the following error messages (I trimmed the path to the build directory to <path> in order to prevent line wrapping): <path>/clients/upsclient.c:941: undefined reference to `upsdebugx' <path>/clients/upsclient.c:910: undefined reference to `ups...
2007 Jan 19
1
Re: [nut-commits] svn commit r755 - in trunk: . clients
...doesn't seem like a good idea to me. Wouldn't it be more consistent to extend upscli_errlist[] ? -- Peter Arjen de Korte wrote: > > Author: adkorte-guest > Date: Thu Jan 18 22:07:08 2007 > New Revision: 755 > > Modified: > trunk/ChangeLog > trunk/clients/upsclient.c > trunk/clients/upsclient.h > Log: > This one is for you, Peter... :-) > > * clients/upsclient.c: > - hostname is now optional in upscli_splitname(), defaults to "localhost" > - added upscli_splitaddr() to split a hostname[:port] into separate > c...
2007 Jan 06
3
Re: [nut-commits] svn commit r708 - in trunk: . clients server
With the Ipv6 patch (r708), I get: upsclient.c: In function `upscli_connect': upsclient.c:469: `AI_ADDRCONFIG' undeclared (first use in this function) upsclient.c:469: (Each undeclared identifier is reported only once upsclient.c:469: for each function it appears in.) Even if it doesn't break IPv4 support, it may break portabilit...
2011 Jul 06
4
upsclient high level API and Java wrapping
...on proposal by Arnaud Quette and sponsored by Eaton, I will work on a port on Java of client, discovery and config API. As I have already suggested (mail of 2011-06-14 of this ml), instead of developping another port of nut protocol, I suggest to develop a higher level API in C/C++ uppon existing upsclient, inspirated by existing C-based tools and python and perl rewrites. The second goal is to release a convergent high-level API which can be easily wrapped (via SWIG ?) in Java and other languages, and perhaps make an uniform API for all wrappers (including perl and python). I will precise my ideas...
2015 Jul 08
1
[Nut-upsuser] Nut-2.7.3 & gcc-3.3.6
Hi Charles, Yes, it looks like my g++ does contain STL library which might be just my specific case... However, as a temporary solution I disabled nutclient in Makefile (please find the file attached). And nut-2.7.3 can be compiled now. Thanks, Sergey On Wed, Jul 8, 2015 at 4:13 AM, Charles Lepple <clepple at gmail.com> wrote: > On Jul 6, 2015, at 10:32 AM, Sergey Talchuk
2007 Mar 12
1
infinite loop in clients/upsclient.c connect
...psd running, upsc went into an infinite loop on OS X (IPv6 enabled). The error code returned by connect is EINVAL, which apparently isn't one of the errors documented in connect(2) here. http://boxster.ghz.cc/projects/nut/changeset/731 http://boxster.ghz.cc/projects/nut/browser/trunk/clients/upsclient.c?rev=731#L540 I'm not sure about the logic inside the switch statement in general, actually. If the error is EAFNOSUPPORT, I would think we would need more than just to break out of the switch statement. Also, EINTR is most likely going to be generated by a signal, and the only unmasked signa...
2007 Jan 06
1
Re: [nut-commits] svn commit r710 - in trunk: . clients server
...ctionality needs to be tested; the test can be refined as problems arise later. -- Peter Arjen de Korte wrote: > > Author: adkorte-guest > Date: Sat Jan 6 19:39:08 2007 > New Revision: 710 > > Modified: > trunk/ChangeLog > trunk/clients/upsc.c > trunk/clients/upsclient.c > trunk/clients/upsclient.h > trunk/server/access.c > trunk/server/access.h > trunk/server/ctype.h > trunk/server/upsd.c > trunk/server/user.c > trunk/server/user.h > Log: > - #ifdef'ed the new code that (presumably) adds IPv6 support (compile w...
2008 Jan 26
1
Memory leak in upsmon
Hello, I was running upsmon some time without UPS connected and noticed significant memory leak. After some debugging I found the leak source. It is in file clients/upsclient.c. Function upscli_connect() allocates memory for ups->pc_ctx and in case of any error, just returns -1 without freeing it. My NUT version is 2.2.0, but I quickly looked through 2.2.1 sources and it seems this bug was not fixed. So I include here simple patch. It uses goto to skip to free() all...
2007 Jan 23
2
Re: [nut-commits] svn commit r731
...ot how it was intended; perhaps even a potential security problem. -- Peter Arjen de Korte wrote: > > Author: adkorte-guest > Date: Sat Jan 13 21:22:28 2007 > New Revision: 731 > > Added: > trunk/server/stype.h > Modified: > trunk/ChangeLog > trunk/clients/upsclient.c > trunk/clients/upsclient.h > trunk/conf/upsd.conf.sample > trunk/m4/nut_check_ipv6.m4 > trunk/server/conf.c > trunk/server/upsd.c > trunk/server/upsd.h > trunk/server/upstype.h > Log: > * clients/upsclient.ch: > - hostname can now be specif...
2018 Jul 12
0
2.7.4 uses deprecated back level of TLS
2.7.4 explicitly calls for use of a deprecated back level of TLS. On Debian stretch, after ./configure --with-openssl, make produces the following warning: upsclient.c: In function 'upscli_init': upsclient.c:322:2: warning: 'TLSv1_client_method' is deprecated [-Wdeprecated-declarations] ssl_method = TLSv1_client_method(); ^~~~~~~~~~ A similar warning about TLSv1_server_method appears at n...
2008 Aug 15
2
Problem with APC and Fedora 8 I86_64
.../upssched.conf.sample config.status: creating data/html/header.html config.status: creating data/html/Makefile config.status: creating data/Makefile config.status: creating docs/Makefile config.status: creating drivers/Makefile config.status: creating include/Makefile config.status: creating lib/libupsclient-config config.status: creating lib/libupsclient.pc config.status: creating lib/Makefile config.status: creating man/Makefile config.status: creating packaging/Makefile config.status: creating packaging/debian/Makefile config.status: creating packaging/mandriva/Makefile config.status: creating packa...
2008 Feb 24
1
nut-subversion Tripp Lite 750AVR
...b info in the attach)? , i retrieve the current development tree from the subvervsion repo, and trying to compile NUT on Fedora8 to test the usb driver. the configure is ok: Configuration summary: enable SSL development code: yes enable IPv6 support: yes build CGI programs: no build upsclient library: no build serial drivers: yes build SNMP drivers: no build USB drivers: hiddev-based drivers only enable HAL support: no enable MGE XML/HTTP support: yes build neon based XML driver: no but got compilation errors ?/bin/sh ../libtool --tag=CC?? --mode=link gcc -I../include??...
2008 Feb 08
1
Building NUT 2.2.1 under Solaris 10 (SPARC)
...ork UPS Tools version 2.2.1 checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking target system type... sparc-sun-solaris2.10 . . . Configuration summary: enable SSL development code: yes enable IPv6 support: yes build CGI programs: no build upsclient library: no build serial drivers: yes build SNMP drivers: yes build USB drivers: libusb-based drivers only enable HAL support: no [huge at anubis ~/Prog/nut/nut-2.2.1]: make Making all in include test -f nut_version.h || cp _nut_version.h nut_version.h cmp -s _nut_version.h nut_version.h || cp _nut...
2008 Jul 17
0
r1515 - branches/trunk-make-package: anybody interested in taking over?
...> Log: > make-package and packaging related branch > > > Added: > branches/trunk-make-package/ > - copied from r1505, /trunk/ > branches/trunk-make-package/ChangeLog > - copied, changed from r1511, /trunk/ChangeLog > branches/trunk-make-package/clients/upsclient.c > - copied unchanged from r1507, /trunk/clients/upsclient.c > branches/trunk-make-package/configure.in > - copied, changed from r1511, /trunk/configure.in > branches/trunk-make-package/data/driver.list > - copied, changed from r1506, /trunk/data/driver.list >...
2007 Jan 13
3
Default NUT PORT
In my latest patch, I hardcoded the port NUT uses for TCP communication (3493). The reason is, that I can't figure out a way how to change the numeric value of the #define'd PORT into a character string. Using snprintf() and a temporary buffer just seems wrong, since this should be handled by the preprocessor, rather than at runtime. The following files are affected: - server/conf.c (line
2015 Jan 28
1
upds crash with 'Out of memory'
...t; exactly when upsd crashes with the 'Out of memory' error. > > > Does the driver keep going after that? > > Yes, the driver keeps running. It prints out "Read error : 109", which I am guessing is the value of errno that is set after calling select() on line 560 of upsclient.c. I could be wrong though. > This is a bit of a shot in the dark (especially because your ProductID of > 0002 is one of the less-broken ones) but do you still get the read error if > you add the "pollonly" option to the UPS-specific part of ups.conf (i.e. > after [xs1500])?...
2014 Jun 03
2
Tripp Lite SMART3000RM2U (protocol 3003) running time and charge?
...port = auto desc = "Main comm UPS" battery_min = 11 battery_max = 13.6 This is how the things need to be specified, right? In any event, I pulled the whole tree but its build fails as follows: make[2]: Entering directory `/home/bruda/nut-master/docs/man' Using existing upsclient.3 manual page, since 'asciidoc' was not found. Using existing upscli_add_host_cert.3 manual page, since 'asciidoc' was not found. Using existing upscli_cleanup.3 manual page, since 'asciidoc' was not found. Using existing upscli_connect.3 manual page, since 'asciidoc'...
2023 May 16
2
Synthesize low batt (LB) fron SNMP UPS which does not support this?
...s a try unless someone has a brilliant idea and could save my sanity. Cheers Carsten [1] https://github.com/networkupstools/nut/blob/e3bdc28476700c7396bdde912e5789ccb7ecb1d7/clients/upsmon.c#L925 [2] https://github.com/networkupstools/nut/blob/e3bdc28476700c7396bdde912e5789ccb7ecb1d7/clients/upsclient.h#LL105C1-L107C33 -- Dr. Carsten Aulbert, Max Planck Institute for Gravitational Physics, Callinstra?e 38, 30167 Hannover, Germany, Phone +49 511 762 17185 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4827 by...
2014 Jun 03
0
Tripp Lite SMART3000RM2U (protocol 3003) running time and charge?
...quot; > battery_min = 11 > battery_max = 13.6 > > This is how the things need to be specified, right? Yes. > In any event, I pulled the whole tree but its build fails as follows: > > make[2]: Entering directory `/home/bruda/nut-master/docs/man' > Using existing upsclient.3 manual page, since 'asciidoc' was not found. > Using existing upscli_add_host_cert.3 manual page, since 'asciidoc' was not found. > Using existing upscli_cleanup.3 manual page, since 'asciidoc' was not found. > Using existing upscli_connect.3 manual page, since ...