[Nut-upsdev] upsmon issue: user monuser not found
David Mathog
mathog at caltech.edu
Fri Jul 11 19:53:45 UTC 2008
Short description: when upsmon starts it logs this to /var/log/messages:
Jul 11 12:35:55 sorcerer upsmon[23902]: Startup successful
Jul 11 12:35:55 sorcerer upsmon[23902]: user monuser not found
Near as I can tell upsd is running properly.
Long description:
Centos 5 system (x86_64), built nut 2.2.2 from stable source with
./configure --with-usb --with-user=nut --with-group-nut
make
make install
This is a 64 bit system and there were some warnings about "expects type
int but ...", where the other part is a type which may be a different
size on this system. For instance like this:
libusb.c:289: warning: format %d expects type int, but argument 4
has type long unsigned int
Also libusb-devel was the 64 bit version.
The ups is an APC Back-UPS RS 1500 attached by one of APC's odd RJ45 to
USB cables. upsmon has an issue, but upsc doesn't, it shows the status
of the UPS fine:
% /usr/local/ups/bin/upsc apcups at localhost
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
etc.
Here are my config files - presumably something is bogus but I do not
see what:
ups.conf:
[apcups]
driver = usbhid-ups
port = auto
desc = "APC Back-UPS RS 1500 on 12334567890"
upsd.conf:
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL privatenet 192.168.1.0/24
ACCEPT localhost
ACCEPT privatenet
REJECT all
LISTEN 127.0.0.1 3493
upsd.users:
[monuser]
password = sfdiw3vc
allowfrom = localhost
upsmon master
upsmon.conf:
RUN_AS_USER monuser
MONITOR apcups at localhost 1 monuser sfdiw3vc master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/sbin/logger
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /var/run/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
Here is the start up sequence from the terminal window:
% /usr/local/ups/bin/upsdrvctl start
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)
Using subdriver: APC HID 0.92
% /usr/local/ups/sbin/upsd
Network UPS Tools upsd 2.2.2
listening on 127.0.0.1 port 3493
Connected to UPS [apcups]: usbhid-ups-apcups
%/usr/local/ups/sbin/upsmon -DDDDDDDDDDDDDDDDDD
Network UPS Tools upsmon 2.2.2
UPS: apcups at localhost (master) (power value 1)
Using power down flag file /var/run/killpower
user monuser not found
At which point upsmon exits, but does not say that it is going to do so.
and here are the corresponding entries in /var/log/messages:
Jul 11 12:39:56 sorcerer upsd[25433]: listening on 127.0.0.1 port 3493
Jul 11 12:39:56 sorcerer upsd[25433]: Connected to UPS [apcups]:
usbhid-ups-apcups
Jul 11 12:39:56 sorcerer upsd[25434]: Startup successful
Jul 11 12:40:02 sorcerer upsmon[25482]: Startup successful
Jul 11 12:40:02 sorcerer upsmon[25482]: user monuser not found
The upsd port is open, as advertised:
% nmap -p 3493 localhost
PORT STATE SERVICE
3493/tcp open unknown
also
% grep localhost /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
I'm at a loss. Can anybody see the problem?
David Mathog
mathog at caltech.edu
Manager, Sequence Analysis Facility, Biology Division, Caltech
More information about the Nut-upsdev
mailing list