beautypg.com

Logging test, Apcaccess test – APC UPS control system User Manual

Page 61

background image

Logging Test

Once you have established that the proper processes are running, do a tail
of the system log file, normally /var/log/messages:

tail /var/log/messages

You should see output that looks similar to the following:

Dec 5 17:01:05 matou apcupsd[5917]: apcupsd 3.7.2
startup succeeded

And if you have configured the network information server, you should also
see:

Dec 5 17:01:05 polymatou apcupsd[5975]: apcserver
startup succeeded

These

messages

should

also

appear

in

the

temporary

file

(/etc/apcupsd/apcupsd.events) if you are using the default configu-
ration file.

If you have installed the RPM, they will probably be in

/var/log/apcupsd.events.

apcaccess Test

This test consists of running apcaccess to see if apcupsd is properly updat-
ing its internal variables. Please note that if you are running a pthreaded
version of apcupsd, which you should be since the non-pthreaded version
is no longer supported, (installed from rpm or --enable-pthreads on
the ./configure line), you must enable the apcupsd Network Information
Server in your configuration file for apcaccess to work. This is done by
setting:

NETSERVER on
NISPORT 3551

60