[RESOLU] Apcusd Error contacting apcupsd @ localhost:3551

[RESOLU]
Bonsoir,
Sur une fraîche install wheezy (crunch) sur une machine toute neuve j 'ai un soucis avec apcusd:

/etc/init.d/apcupsd status

lsusb

vim /etc/network/interfaces

[code]# This file describes the network interfaces available on your system

and how to activate them. For more information, see interfaces(5).

The loopback network interface

auto lo
iface lo inet loopback

#pour le wakeonlan-4:
WOL=1[/code]

vim /etc/default/apcupsd

[code]# Defaults for apcupsd initscript

Apcupsd-devel internal configuration

APCACCESS=/sbin/apcaccess
ISCONFIGURED=yes[/code]

[quote]## apcupsd.conf v1.1 ##

for apcupsd release 3.14.6 (16 May 2009) - debian

“apcupsd” POSIX config file

========= General configuration parameters ============

UPSNAME xxx

Use this to give your UPS a name in log files and such. This

is particulary useful if you have multiple UPSes. This does not

set the EEPROM. It should be 8 characters or less.

UPSNAME Eaton-800

UPSCABLE

Defines the type of cable connecting the UPS to your computer.

Possible generic choices for are:

simple, smart, ether, usb

Or a specific cable model number may be used:

940-0119A, 940-0127A, 940-0128A, 940-0020B,

940-0020C, 940-0023A, 940-0024B, 940-0024C,

940-1524C, 940-0024G, 940-0095A, 940-0095B,

940-0095C, M-04-02-2000

UPSCABLE usb

To get apcupsd to work, in addition to defining the cable

above, you must also define a UPSTYPE, which corresponds to

the type of UPS you have (see the Description for more details).

You must also specify a DEVICE, sometimes referred to as a port.

For USB UPSes, please leave the DEVICE directive blank. For

other UPS types, you must specify an appropriate port or address.

UPSTYPE DEVICE Description

apcsmart /dev/tty** Newer serial character device,

appropriate for SmartUPS models using

a serial cable (not USB).

usb Most new UPSes are USB. A blank DEVICE

setting enables autodetection, which is

the best choice for most installations.

net hostname:port Network link to a master apcupsd

through apcupsd’s Network Information

Server. This is used if you don’t have

a UPS directly connected to your computer.

snmp hostname:port:vendor:community

SNMP Network link to an SNMP-enabled

UPS device. Vendor is the MIB used by

the UPS device: can be “APC”, “APC_NOTRAP”

or “RFC” where APC is the powernet MIB,

“APC_NOTRAP” is powernet with SNMP trap

catching disabled, and RFC is the IETF’s

rfc1628 UPS-MIB. You usually want “APC”.

Port is usually 161. Community is usually

“private”.

dumb /dev/tty** Old serial character device for use

with simple-signaling UPSes.

pcnet ipaddr:username:passphrase

PowerChute Network Shutdown protocol

which can be used as an alternative to SNMP

with AP9617 family of smart slot cards.

ipaddr is the IP address of the UPS mgmt

card. username and passphrase are the

credentials for which the card has been

configured.

UPSTYPE usb

DEVICE /dev/ttyS0

DEVICE

POLLTIME

Interval (in seconds) at which apcupsd polls the UPS for status. This

setting applies both to directly-attached UPSes (UPSTYPE apcsmart, usb,

dumb) and networked UPSes (UPSTYPE net, snmp). Lowering this setting

will improve apcupsd’s responsiveness to certain events at the cost of

higher CPU utilization. The default of 60 is appropriate for most

situations.

#POLLTIME 60

LOCKFILE

Path for device lock file. Not used on Win32.

LOCKFILE /var/lock

SCRIPTDIR

Directory in which apccontrol and event scripts are located.

SCRIPTDIR /etc/apcupsd

PWRFAILDIR

Directory in which to write the powerfail flag file. This file

is created when apcupsd initiates a system shutdown and is

checked in the OS halt scripts to determine if a killpower

(turning off UPS output power) is required.

PWRFAILDIR /etc/apcupsd

NOLOGINDIR

Directory in which to write the nologin file. The existence

of this flag file tells the OS to disallow new logins.

NOLOGINDIR /etc

======== Configuration parameters used during power failures ==========

The ONBATTERYDELAY is the time in seconds from when a power failure

is detected until we react to it with an onbattery event.

This means that, apccontrol will be called with the powerout argument

immediately when a power failure is detected. However, the

onbattery argument is passed to apccontrol only after the

ONBATTERYDELAY time. If you don’t want to be annoyed by short

powerfailures, make sure that apccontrol powerout does nothing

i.e. comment out the wall.

ONBATTERYDELAY 6

Note: BATTERYLEVEL, MINUTES, and TIMEOUT work in conjunction, so

the first that occurs will cause the initation of a shutdown.

If during a power failure, the remaining battery percentage

(as reported by the UPS) is below or equal to BATTERYLEVEL,

apcupsd will initiate a system shutdown.

BATTERYLEVEL 5

If during a power failure, the remaining runtime in minutes

(as calculated internally by the UPS) is below or equal to MINUTES,

apcupsd, will initiate a system shutdown.

MINUTES 3

If during a power failure, the UPS has run on batteries for TIMEOUT

many seconds or longer, apcupsd will initiate a system shutdown.

A value of 0 disables this timer.

Note, if you have a Smart UPS, you will most likely want to disable

this timer by setting it to zero. That way, you UPS will continue

on batteries until either the % charge remaing drops to or below BATTERYLEVEL,

or the remaining battery runtime drops to or below MINUTES. Of course,

if you are testing, setting this to 60 causes a quick system shutdown

if you pull the power plug.

If you have an older dumb UPS, you will want to set this to less than

the time you know you can run on batteries.

TIMEOUT 0

Time in seconds between annoying users to signoff prior to

system shutdown. 0 disables.

ANNOY 300

Initial delay after power failure before warning users to get

off the system.

ANNOYDELAY 60

The condition which determines when users are prevented from

logging in during a power failure.

NOLOGON [ disable | timeout | percent | minutes | always ]

NOLOGON disable

If KILLDELAY is non-zero, apcupsd will continue running after a

shutdown has been requested, and after the specified time in

seconds attempt to kill the power. This is for use on systems

where apcupsd cannot regain control after a shutdown.

KILLDELAY 0 disables

KILLDELAY 0

==== Configuration statements for Network Information Server ====

NETSERVER [ on | off ] on enables, off disables the network

information server. If netstatus is on, a network information

server process will be started for serving the STATUS and

EVENT data over the network (used by CGI programs).

NETSERVER on

NISIP

IP address on which NIS server will listen for incoming connections.

This is useful if your server is multi-homed (has more than one

network interface and IP address). Default value is 0.0.0.0 which

means any incoming request will be serviced. Alternatively, you can

configure this setting to any specific IP address of your server and

NIS will listen for connections only on that interface. Use the

loopback address (127.0.0.1) to accept connections only from the

local machine.

NISIP 127.0.0.1

NISPORT default is 3551 as registered with the IANA

port to use for sending STATUS and EVENTS data over the network.

It is not used unless NETSERVER is on. If you change this port,

you will need to change the corresponding value in the cgi directory

and rebuild the cgi programs.

NISPORT 3551

If you want the last few EVENTS to be available over the network

by the network information server, you must define an EVENTSFILE.

EVENTSFILE /var/log/apcupsd.events

EVENTSFILEMAX

By default, the size of the EVENTSFILE will be not be allowed to exceed

10 kilobytes. When the file grows beyond this limit, older EVENTS will

be removed from the beginning of the file (first in first out). The

parameter EVENTSFILEMAX can be set to a different kilobyte value, or set

to zero to allow the EVENTSFILE to grow without limit.

EVENTSFILEMAX 10

========== Configuration statements used if sharing =============

a UPS with more than one machine

Remaining items are for ShareUPS (APC expansion card) ONLY

UPSCLASS [ standalone | shareslave | sharemaster ]

Normally standalone unless you share an UPS using an APC ShareUPS

card.

UPSCLASS standalone

UPSMODE [ disable | share ]

Normally disable unless you share an UPS using an APC ShareUPS card.

UPSMODE disable

===== Configuration statements to control apcupsd system logging ========

Time interval in seconds between writing the STATUS file; 0 disables

STATTIME 0

Location of STATUS file (written to only if STATTIME is non-zero)

STATFILE /var/log/apcupsd.status

LOGSTATS [ on | off ] on enables, off disables

Note! This generates a lot of output, so if

you turn this on, be sure that the

file defined in syslog.conf for LOG_NOTICE is a named pipe.

You probably do not want this on.

LOGSTATS off

Time interval in seconds between writing the DATA records to

the log file. 0 disables.

DATATIME 0

FACILITY defines the logging facility (class) for logging to syslog.

If not specified, it defaults to “daemon”. This is useful

if you want to separate the data logged by apcupsd from other

programs.

#FACILITY DAEMON

========== Configuration statements used in updating the UPS EPROM =========

These statements are used only by apctest when choosing "Set EEPROM with conf

file values" from the EEPROM menu. THESE STATEMENTS HAVE NO EFFECT ON APCUPSD.

UPS name, max 8 characters

#UPSNAME UPS_IDEN

Battery date - 8 characters

#BATTDATE mm/dd/yy

Sensitivity to line voltage quality (H cause faster transfer to batteries)

SENSITIVITY H M L (default = H)

#SENSITIVITY H

UPS delay after power return (seconds)

WAKEUP 000 060 180 300 (default = 0)

#WAKEUP 60

UPS Grace period after request to power off (seconds)

SLEEP 020 180 300 600 (default = 20)

#SLEEP 180

Low line voltage causing transfer to batteries

The permitted values depend on your model as defined by last letter

of FIRMWARE or APCMODEL. Some representative values are:

D 106 103 100 097

M 177 172 168 182

A 092 090 088 086

I 208 204 200 196 (default = 0 => not valid)

#LOTRANSFER 208

High line voltage causing transfer to batteries

The permitted values depend on your model as defined by last letter

of FIRMWARE or APCMODEL. Some representative values are:

D 127 130 133 136

M 229 234 239 224

A 108 110 112 114

I 253 257 261 265 (default = 0 => not valid)

#HITRANSFER 253

Battery charge needed to restore power

RETURNCHARGE 00 15 50 90 (default = 15)

#RETURNCHARGE 15

Alarm delay

0 = zero delay after pwr fail, T = power fail + 30 sec, L = low battery, N = never

BEEPSTATE 0 T L N (default = 0)

#BEEPSTATE T

Low battery warning delay in minutes

LOWBATT 02 05 07 10 (default = 02)

#LOWBATT 2

UPS Output voltage when running on batteries

The permitted values depend on your model as defined by last letter

of FIRMWARE or APCMODEL. Some representative values are:

D 115

M 208

A 100

I 230 240 220 225 (default = 0 => not valid)

#OUTPUTVOLTS 230

Self test interval in hours 336=2 weeks, 168=1 week, ON=at power on

SELFTEST 336 168 ON OFF (default = 336)

#SELFTEST 336[/quote]

Je ne vois pas d’où cela peut provenir! Pouvez vous m 'aider?

Es tu certain que ce n’est qu’un probléme d’accés rèseau ? Le process tourne t il (top) ?

cat /var/log/apcupsd.events

2012-09-25 22:27:11 +0200 apcupsd 3.14.10 (13 September 2011) debian startup succeeded 2012-09-25 22:27:11 +0200 apcserver: cannot bind port 3551. ERR=Cannot assign requested address 2012-09-25 22:32:06 +0200 apcupsd exiting, signal 15 2012-09-25 22:32:06 +0200 apcupsd shutdown succeeded 2012-09-25 22:33:00 +0200 apcupsd 3.14.10 (13 September 2011) debian startup succeeded

/etc/init.d/apcupsd start Starting UPS power management: apcupsd.

/etc/init.d/apcupsd status Error contacting apcupsd @ localhost:3551: Connection timed out

Il est bien lancer!

On dirait qu’il s’arrete au bout de 5mn si il n’a pas de réponse.
Le port est bien ouvert dans le firewall ?
que te dis netstat

[quote=“piratebab”]On dirait qu’il s’arrete au bout de 5mn si il n’a pas de réponse.
Le port est bien ouvert dans le firewall ?
que te dis netstat[/quote]

Merci de suivre piratebab!
Je n’ai rien toucher (conf out of box) dans iptable!

netstat Connexions Internet actives (sans serveurs) Proto Recv-Q Send-Q Adresse locale Adresse distante Etat tcp 0 0 AsuServer.local:17500 ThinkPad.local:46971 ESTABLISHED tcp 0 0 AsuServer.local:35281 sjc-not6.sjc.dropb:http ESTABLISHED tcp 0 0 AsuServer.local:https freebox-server.lo:60660 ESTABLISHED tcp 0 0 AsuServer.local:34905 ThinkPad.local:17500 ESTABLISHED tcp 0 0 AsuServer.local:https freebox-server.lo:60790 ESTABLISHED tcp 0 0 AsuServer.local:55550 Presario.local:17500 ESTABLISHED tcp 38 0 AsuServer.local:37195 v-client-2a.sjc.d:https CLOSE_WAIT tcp 38 0 AsuServer.local:43799 ec2-23-21-235-158:https CLOSE_WAIT tcp 38 0 AsuServer.local:37851 v-client-1b.sjc.d:https CLOSE_WAIT udp 0 0 AsuServer.local:58482 localhost:ntp ESTABLISHED Sockets du domaine UNIX actives(sans serveurs) Proto RefCnt Flags Type State I-Node Chemin unix 16 [ ] DGRAM 7163 /dev/log unix 2 [ ] DGRAM 29193 unix 2 [ ] DGRAM 29190 unix 3 [ ] STREAM CONNECTE 30754 unix 3 [ ] STREAM CONNECTE 30753 unix 3 [ ] STREAM CONNECTE 27176 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 30037 unix 2 [ ] DGRAM 30036 unix 2 [ ] DGRAM 28433 unix 3 [ ] STREAM CONNECTE 25473 unix 3 [ ] STREAM CONNECTE 25472 unix 3 [ ] STREAM CONNECTE 28026 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 26842 unix 3 [ ] STREAM CONNECTE 26841 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 24550 unix 3 [ ] STREAM CONNECTE 28025 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 25470 unix 3 [ ] STREAM CONNECTE 24548 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 28023 unix 3 [ ] STREAM CONNECTE 24518 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 27991 unix 3 [ ] STREAM CONNECTE 24515 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 27988 unix 3 [ ] STREAM CONNECTE 26335 unix 3 [ ] STREAM CONNECTE 26334 unix 3 [ ] STREAM CONNECTE 24316 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 25224 unix 2 [ ] DGRAM 25223 unix 3 [ ] STREAM CONNECTE 24689 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 23826 unix 3 [ ] STREAM CONNECTE 24683 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 22345 unix 3 [ ] STREAM CONNECTE 24681 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 22344 unix 3 [ ] STREAM CONNECTE 18058 @/tmp/dbus-EHjmrbdYXm unix 3 [ ] STREAM CONNECTE 19761 unix 3 [ ] STREAM CONNECTE 18052 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 16796 unix 3 [ ] STREAM CONNECTE 19756 unix 3 [ ] STREAM CONNECTE 19755 unix 3 [ ] STREAM CONNECTE 19753 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 18792 unix 3 [ ] STREAM CONNECTE 17957 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 18702 unix 3 [ ] STREAM CONNECTE 19617 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 18699 unix 3 [ ] STREAM CONNECTE 16703 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 18695 unix 3 [ ] STREAM CONNECTE 19615 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 16702 unix 3 [ ] STREAM CONNECTE 19612 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 18688 unix 3 [ ] STREAM CONNECTE 19604 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 17952 unix 3 [ ] STREAM CONNECTE 16698 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 18685 unix 3 [ ] STREAM CONNECTE 8992 unix 3 [ ] STREAM CONNECTE 8991 unix 3 [ ] STREAM CONNECTE 10301 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8982 unix 3 [ ] STREAM CONNECTE 4085 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8980 unix 3 [ ] STREAM CONNECTE 4083 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 10293 unix 3 [ ] STREAM CONNECTE 4051 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8163 unix 3 [ ] STREAM CONNECTE 4050 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 9412 unix 3 [ ] STREAM CONNECTE 4049 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 8162 unix 3 [ ] STREAM CONNECTE 8941 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 9410 unix 3 [ ] STREAM CONNECTE 8940 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 8158 unix 3 [ ] STREAM CONNECTE 8154 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 8938 unix 3 [ ] STREAM CONNECTE 8153 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 9405 unix 3 [ ] STREAM CONNECTE 4045 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 9401 unix 3 [ ] STREAM CONNECTE 4044 /tmp/pulse-PKdhtXMmr18n/native unix 3 [ ] STREAM CONNECTE 8150 unix 3 [ ] STREAM CONNECTE 9397 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8934 unix 3 [ ] STREAM CONNECTE 8131 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 8931 unix 3 [ ] STREAM CONNECTE 9391 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8130 unix 3 [ ] STREAM CONNECTE 8916 unix 3 [ ] STREAM CONNECTE 8915 unix 3 [ ] STREAM CONNECTE 8041 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8903 unix 3 [ ] STREAM CONNECTE 3946 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 1964 unix 3 [ ] STREAM CONNECTE 1962 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 8859 unix 3 [ ] STREAM CONNECTE 1960 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 7991 unix 3 [ ] STREAM CONNECTE 7977 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8841 unix 2 [ ] DGRAM 8840 unix 3 [ ] STREAM CONNECTE 8795 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 1956 unix 3 [ ] STREAM CONNECTE 1949 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8768 unix 3 [ ] STREAM CONNECTE 1948 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8766 unix 3 [ ] STREAM CONNECTE 3930 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8765 unix 3 [ ] STREAM CONNECTE 1945 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8760 unix 3 [ ] STREAM CONNECTE 1942 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8759 unix 3 [ ] STREAM CONNECTE 1928 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8754 unix 3 [ ] STREAM CONNECTE 1924 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8751 unix 3 [ ] STREAM CONNECTE 7899 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 8750 unix 3 [ ] STREAM CONNECTE 1914 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8744 unix 3 [ ] STREAM CONNECTE 8739 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 3919 unix 3 [ ] STREAM CONNECTE 8738 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 3918 unix 3 [ ] STREAM CONNECTE 7883 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 8736 unix 3 [ ] STREAM CONNECTE 7882 @/tmp/dbus-rXuUu1QkXY unix 3 [ ] STREAM CONNECTE 1911 unix 3 [ ] STREAM CONNECTE 1905 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 1902 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 1899 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 1898 unix 3 [ ] STREAM CONNECTE 3917 unix 3 [ ] STREAM CONNECTE 8735 unix 3 [ ] STREAM CONNECTE 3912 /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 1893 unix 3 [ ] STREAM CONNECTE 1890 /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 3907 unix 3 [ ] STREAM CONNECTE 7830 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 8675 unix 3 [ ] STREAM CONNECTE 3898 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 7826 unix 3 [ ] STREAM CONNECTE 7825 unix 3 [ ] STREAM CONNECTE 7824 unix 3 [ ] STREAM CONNECTE 7821 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 8664 unix 2 [ ] DGRAM 8638 unix 3 [ ] STREAM CONNECTE 1821 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 7753 unix 3 [ ] STREAM CONNECTE 7734 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8623 unix 3 [ ] STREAM CONNECTE 7730 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8617 unix 3 [ ] STREAM CONNECTE 3874 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 1817 unix 2 [ ] DGRAM 8608 unix 2 [ ] DGRAM 8600 unix 3 [ ] STREAM CONNECTE 7723 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 8586 unix 3 [ ] STREAM CONNECTE 1757 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8374 unix 2 [ ] DGRAM 8373 unix 2 [ ] DGRAM 7636 unix 3 [ ] STREAM CONNECTE 3836 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 7620 unix 2 [ ] DGRAM 3832 unix 3 [ ] STREAM CONNECTE 1748 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8316 unix 2 [ ] DGRAM 8314 unix 3 [ ] STREAM CONNECTE 8577 @/tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTE 1739 unix 3 [ ] STREAM CONNECTE 1736 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 7610 unix 2 [ ] DGRAM 7607 unix 3 [ ] STREAM CONNECTE 1687 /var/run/dbus/system_bus_socket unix 3 [ ] STREAM CONNECTE 8257 unix 3 [ ] STREAM CONNECTE 1680 unix 3 [ ] STREAM CONNECTE 1679 unix 2 [ ] DGRAM 1676 unix 3 [ ] STREAM CONNECTE 1648 unix 3 [ ] STREAM CONNECTE 1647 unix 3 [ ] DGRAM 4350 unix 3 [ ] DGRAM 4349

[code] iptables -L -v -n
Chain INPUT (policy ACCEPT 22282 packets, 20M bytes)
pkts bytes target prot opt in out source destination
7083 537K fail2ban-ssh tcp – * * 0.0.0.0/0 0.0.0.0/0 multiport dports 22,115,443

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 13484 packets, 1937K bytes)
pkts bytes target prot opt in out source destination

Chain fail2ban-ssh (1 references)
pkts bytes target prot opt in out source destination
7083 537K RETURN all – * * 0.0.0.0/0 0.0.0.0/0 [/code]

J’avais penser que denyhost pouvais bloquer mais stopper c’est idem! les hosts.allow et hosts.deny
sont encore vierge! (le message serait sûrement différent)
La version apcupsd.conf v1.1 est la mème que sous squeeze je ne me souviens pas avoir créer de règle auparavant! (j’ ai trasher les rsync de la / de squeeze y a pas 2jours, arf!)

J’ai comme envie de poster:Propriétaire de Eaton 800 cherche apcusd.conf, #lol

Une question: comment j’ouvre proprement?

j’ai également un EATON (un Ellipse 600) et apcupsd ne l’a jamais reconnu.
j’ai utilisé Nut à la place et aucun soucis. Tu as même nut-cgi pour l’interface web.

[quote=“difix”]j’ai également un EATON (un Ellipse 600) et apcupsd ne l’a jamais reconnu.
j’ai utilisé Nut à la place et aucun soucis. Tu as même nut-cgi pour l’interface web.[/quote]

(il fonctionnait avec le shutdown sous squeeze)
Je vais tester sur une autre distrib d’une autre machine!

Pus tard…
Avant de commencer pour piratebab et pour m’éviter le trolisme #lol: Je préfère l’original a la copie !

Sous Xfce-12.04-64bits:
#Install de acpusd avec les paramètres ci dessus:

/etc/init.d/apcupsd status APC : 001,028,0715 DATE : 2012-09-26 11:16:34 +0200 HOSTNAME : ThinkPad VERSION : 3.14.10 (13 September 2011) debian UPSNAME : Eaton-800 CABLE : USB Cable DRIVER : USB UPS Driver UPSMODE : Stand Alone STARTTIME: 2012-09-26 11:16:31 +0200 MODEL : Protection Station STATUS : ONLINE LOADPCT : 2.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 31.2 Minutes MBATTCHG : 50 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds OUTPUTV : 230.0 Volts DWAKE : -01 Seconds LOTRANS : 184.0 Volts HITRANS : 264.0 Volts ALARMDEL : 30 seconds NUMXFERS : 0 TONBATT : 0 seconds CUMONBATT: 0 seconds XOFFBATT : N/A STATFLAG : 0x07000008 Status Flag SERIALNO : AN2E49008 END APC : 2012-09-26 11:16:35 +0200

Ayant éditer a la main sous 12.04, j’édite la copie apcupsd.conf dans wheezy pour m’assurer que les 2 conf sont identiques:

Sous Wheezy-Waldorf-64bits:
AsuServer:~$ /etc/init.d/apcupsd status
Error contacting apcupsd @ localhost:3551: Connection timed out

#lorsque je déplug le cable de wheezy:
Warning communications lost with UPS Eaton-800

#lorsque je le replug :
Communications restored with UPS Eaton-800

#Le shutdown fonctionne:
apcupsd UPS Eaton-800 initiated shutdown
The system is going down for system halt NOW!
Connection to IP-PUB… closed by remote host.
Connection to IP-PUB… closed.

#Il communique donc bien le problème est que je ne remonte pas les infos!
je les remontais dans le conky sous sqeeze, bien pratique!
${apcupsd localhost 3551}
:013

ça communique au moins dans un sens! As tu vérifié si tu n’as pas une diode dans le câble :wink:
Dans la sortie de netstat, as tu retrouvé quelque chose qui ressemble a ton UPS ?

[code]netstat -nlptu
Connexions Internet actives (seulement serveurs)
Proto Recv-Q Send-Q Adresse locale Adresse distante Etat PID/Program name
tcp 0 0 127.0.0.1:7634 0.0.0.0:* LISTEN 2439/hddtemp
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2559/sshd
tcp 0 0 0.0.0.0:17500 0.0.0.0:* LISTEN 2756/dropbox

tcp 0 0 127.0.0.1:3551 0.0.0.0:* LISTEN 1912/apcupsd

tcp 0 0 192.168.0.251:40742 0.0.0.0:* LISTEN 3280/rygel
tcp6 0 0 :::443 :::* LISTEN 2559/sshd
udp 0 0 0.0.0.0:68 0.0.0.0:* 2731/dhclient
udp 0 0 192.168.0.251:123 0.0.0.0:* 2153/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 2153/ntpd
udp 0 0 192.168.0.251:41352 0.0.0.0:* 3280/rygel
udp 0 0 0.0.0.0:17500 0.0.0.0:* 2756/dropbox
udp 0 0 239.255.255.250:1900 0.0.0.0:* 3280/rygel
udp 0 0 192.168.0.251:1900 0.0.0.0:* 3280/rygel
udp 0 0 0.0.0.0:1900 0.0.0.0:* 2580/minissdpd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2011/avahi-daemon:
udp 0 0 0.0.0.0:30349 0.0.0.0:* 2731/dhclient
udp 0 0 0.0.0.0:56135 0.0.0.0:* 2011/avahi-daemon:
udp6 0 0 fe80::ca60:ff:fec9::123 :::* 2153/ntpd
udp6 0 0 :::123 :::* 2153/ntpd
udp6 0 0 :::33015 :::* 2731/dhclient
udp6 0 0 :::58386 :::* 2011/avahi-daemon:
udp6 0 0 :::5353 :::* 2011/avahi-daemon:[/code]
il écoute bien le 3551, que faire? je pense que cela me dépasse!

Cela n’ a peut-être rien a voir mais j ‘ai un message:
gnome-keyring:: couldn’t connect to: /home/.cache/keyring
pour nm-applet et conky!
seahorse n’a pas de mdp pour les keys d’ accès réseau!
je n’ ai pas de diodes sur le cable!

Pour la diode, c’était une boutade. :041
Si on résume:

  • soit les trames ne sont pas reçues par ton ordi
  • soit elles ne sont pas décodées

Pour solder le premier point, je prendrai un analyseur réseau, genre wireshark, et je lancerai Apcusd en ligne de commande (avec option -v si elle existe)
Pour le 2eme point, chercher une version plus récente de logiciel.

[quote=“piratebab”]Pour la diode, c’était une boutade. :041
Si on résume:

  • soit les trames ne sont pas reçues par ton ordi
  • soit elles ne sont pas décodées

Pour solder le premier point, je prendrai un analyseur réseau, genre wireshark, et je lancerai Apcusd en ligne de commande (avec option -v si elle existe)
Pour le 2eme point, chercher une version plus récente de logiciel.[/quote]

#lol c’était pour voir si la noisette était vide, on dirait que oui!
Je vais voir…

Plus tard, je clos une réinstallation complète a réglé le problème, mystère…je clos

merci piratebab de t’être pencher dessus!