| View previous topic :: View next topic |
| Author |
Message |
mvera
Joined: 25 Feb 2008 Posts: 6 Location: Florida!
|
Posted: Tue Mar 04, 2008 9:05 am Post subject: SentryII on Linux Cant Find UPS |
|
|
I have a MinuteMan Enterprise E1100. I have connected the UPS to my linux server using a Null Modem cable. SentryII is trying all the port speeds but is unable to find the UPS. Here is the error output:
T1:Error:Unknown ErrorT3:Search for UPS Devices with these Dlls:
/usr/local/sbin/libParaSysUPS.so
/usr/local/sbin/libMegaTechUPS.so
T3:Trying CommPort=/dev/ttyS0 at BaudRate=300
T1:Error:Unknown ErrorT1:Error:Unknown ErrorT3:Search for UPS Devices with these Dlls:
/usr/local/sbin/libParaSysUPS.so
/usr/local/sbin/libMegaTechUPS.so
T3:Trying CommPort=/dev/ttyS0 at BaudRate=9600
T1:Error:Unknown ErrorT3:Search for UPS Devices with these Dlls:
/usr/local/sbin/libParaSysUPS.so
/usr/local/sbin/libMegaTechUPS.so
T3:Trying CommPort=/dev/ttyS0 at BaudRate=2400
T1:Error:Unknown ErrorT3:Search for UPS Devices with these Dlls:
/usr/local/sbin/libParaSysUPS.so
/usr/local/sbin/libMegaTechUPS.so
T3:Trying CommPort=/dev/ttyS0 at BaudRate=1200
T1:Error:Unknown ErrorT3:Search for UPS Devices with these Dlls:
/usr/local/sbin/libParaSysUPS.so
/usr/local/sbin/libMegaTechUPS.so
T3:Trying CommPort=/dev/ttyS0 at BaudRate=19200
The serial port appears to be running:
root@pbx:/usr/local/sbin# dmesg|grep tty
[ 71.085685] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 71.086408] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
root@pbx:/usr/local/sbin# statserial -d /dev/ttyS0
16390
Its Ubuntu 7.10
Linux pbx 2.6.22-14-server #1 SMP Tue Feb 12 08:27:05 UTC 2008 i686 GNU/Linux
Thanks!
Mike |
|
| Back to top |
|
 |
jeff
Joined: 19 Jan 2006 Posts: 187
|
Posted: Tue Mar 04, 2008 10:07 am Post subject: Old post... |
|
|
Hello mvera,
We had someone else have some issues in an older post. Read this and see if makes any since.
Todd is our linux guy and he is out until 10:30 AM.
http://minutemanups.com/phpBB2/viewtopic.php?t=534
Jeff |
|
| Back to top |
|
 |
mvera
Joined: 25 Feb 2008 Posts: 6 Location: Florida!
|
Posted: Tue Mar 04, 2008 10:27 am Post subject: |
|
|
| Thanks Jeff, this is a different issue. I have the daemon running just fine, its just not communicating with the UPS. |
|
| Back to top |
|
 |
jeff
Joined: 19 Jan 2006 Posts: 187
|
Posted: Tue Mar 04, 2008 10:49 am Post subject: It must be the cable |
|
|
Mike,
Give me an address and I'll send you a cable.
The baud rate is 9600 for the enterprise series. I show you have that speed listed in your file.
The web port is 80 or anything you have open.
I do not see that file.
Jeff |
|
| Back to top |
|
 |
mvera
Joined: 25 Feb 2008 Posts: 6 Location: Florida!
|
Posted: Tue Mar 04, 2008 11:01 am Post subject: |
|
|
| I have a null modem cable. I think I am going to abandon the idea of monitoring the UPS via the software. For some reason the UPS keeps getting shut down randomly. Previously it was due to a standard serial cable. But now it happens randomly with the null modem cable too. It also shuts down my linux server. I just lost my voice mail and all long distance because i didnt notice the cable shut down the UPS. Grrr! |
|
| Back to top |
|
 |
jeff
Joined: 19 Jan 2006 Posts: 187
|
Posted: Tue Mar 04, 2008 11:10 am Post subject: null modem cable |
|
|
MIke,
Pin one is a instant shut down pin. So, if that pin is connected then the unit thinks it is a direct short to turn off the output.
Pin 2 TXD
Pin 3 RXD
Pin 5 GND
What is the serial number of the UPS?
I just want to see the age from the serial #.
Jeff |
|
| Back to top |
|
 |
mvera
Joined: 25 Feb 2008 Posts: 6 Location: Florida!
|
Posted: Tue Mar 04, 2008 11:15 am Post subject: |
|
|
S/N EC60040750319
Thats why I bought a null modem cable so it wouldnt insta-kill the UPS. So why is it still being shut down??
I dont have a spare E1100 to test with, but I really want to monitor the UPS. But I cant have it randomly shut down. grrrrrrrrrrrrrrr |
|
| Back to top |
|
 |
jeff
Joined: 19 Jan 2006 Posts: 187
|
Posted: Tue Mar 04, 2008 11:31 am Post subject: Serial # check |
|
|
Mike,
I checked what I needed.
Send me the address and i'll send you a cable.
I do not know why the unit shut you down.
The batteries are a little over 3 year old. |
|
| Back to top |
|
 |
tvancil Site Admin
Joined: 30 Mar 2000 Posts: 231 Location: Carrollton, TX 75007
|
Posted: Tue Mar 04, 2008 11:40 am Post subject: |
|
|
Hello Mike-
It does sound as though either some other daemon is taking over the /dev/tty/S0 port, or there's a problem with the cable.
As a side question: You don't happen to be running Network UPS Tools (NUT) daemon at the same time do you? If you're not sure, you could do a $ ps aux | grep upsd to check and see. That daemon would take over the serial port and could cause problems. Is there any other process running on the machine that might be trying to lock the port?
Please post and let us know.
Todd |
|
| Back to top |
|
 |
mvera
Joined: 25 Feb 2008 Posts: 6 Location: Florida!
|
Posted: Wed Mar 05, 2008 9:14 am Post subject: |
|
|
I dont see any processes that might want to control the serial port.
Thank you for offering to send a cable. My address is:
(copied and sent to Jeff))
Here is the full ps list:
root@pbx:~# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Mar04 ? 00:00:01 /sbin/init
root 2 0 0 Mar04 ? 00:00:00 [kthreadd]
root 3 2 0 Mar04 ? 00:00:00 [migration/0]
root 4 2 0 Mar04 ? 00:00:00 [ksoftirqd/0]
root 5 2 0 Mar04 ? 00:00:00 [watchdog/0]
root 6 2 0 Mar04 ? 00:00:00 [migration/1]
root 7 2 0 Mar04 ? 00:00:00 [ksoftirqd/1]
root 8 2 0 Mar04 ? 00:00:00 [watchdog/1]
root 9 2 0 Mar04 ? 00:00:00 [migration/2]
root 10 2 0 Mar04 ? 00:00:00 [ksoftirqd/2]
root 11 2 0 Mar04 ? 00:00:00 [watchdog/2]
root 12 2 0 Mar04 ? 00:00:00 [migration/3]
root 13 2 0 Mar04 ? 00:00:00 [ksoftirqd/3]
root 14 2 0 Mar04 ? 00:00:00 [watchdog/3]
root 15 2 0 Mar04 ? 00:00:00 [events/0]
root 16 2 0 Mar04 ? 00:00:00 [events/1]
root 17 2 0 Mar04 ? 00:00:00 [events/2]
root 18 2 0 Mar04 ? 00:00:00 [events/3]
root 19 2 0 Mar04 ? 00:00:00 [khelper]
root 41 2 0 Mar04 ? 00:00:00 [kblockd/0]
root 42 2 0 Mar04 ? 00:00:00 [kblockd/1]
root 43 2 0 Mar04 ? 00:00:00 [kblockd/2]
root 44 2 0 Mar04 ? 00:00:00 [kblockd/3]
root 45 2 0 Mar04 ? 00:00:00 [kacpid]
root 46 2 0 Mar04 ? 00:00:00 [kacpi_notify]
root 127 2 0 Mar04 ? 00:00:00 [kseriod]
root 161 2 0 Mar04 ? 00:00:00 [pdflush]
root 162 2 0 Mar04 ? 00:00:00 [pdflush]
root 163 2 0 Mar04 ? 00:00:00 [kswapd0]
root 215 2 0 Mar04 ? 00:00:00 [aio/0]
root 216 2 0 Mar04 ? 00:00:00 [aio/1]
root 217 2 0 Mar04 ? 00:00:00 [aio/2]
root 218 2 0 Mar04 ? 00:00:00 [aio/3]
root 1942 2 0 Mar04 ? 00:00:00 [ksuspend_usbd]
root 1948 2 0 Mar04 ? 00:00:00 [khubd]
root 1963 2 0 Mar04 ? 00:00:00 [ata/0]
root 1964 2 0 Mar04 ? 00:00:00 [ata/1]
root 1965 2 0 Mar04 ? 00:00:00 [ata/2]
root 1966 2 0 Mar04 ? 00:00:00 [ata/3]
root 1967 2 0 Mar04 ? 00:00:00 [ata_aux]
root 1980 2 0 Mar04 ? 00:00:00 [scsi_eh_0]
root 1981 2 0 Mar04 ? 00:00:00 [scsi_eh_1]
root 2118 2 0 Mar04 ? 00:00:00 [scsi_eh_2]
root 2119 2 0 Mar04 ? 00:00:00 [scsi_eh_3]
root 2242 2 0 Mar04 ? 00:00:00 [scsi_eh_4]
root 2320 2 0 Mar04 ? 00:00:00 [scsi_eh_5]
root 2485 2 0 Mar04 ? 00:00:00 [kjournald]
root 2643 1 0 Mar04 ? 00:00:00 /sbin/udevd --daemon
root 3505 2 0 Mar04 ? 00:00:00 [kedac]
root 3540 2 0 Mar04 ? 00:00:00 [kpsmoused]
dhcp 3861 1 0 Mar04 ? 00:00:00 dhclient3 -e IF_METRIC=100 -pf /
root 4223 1 0 Mar04 tty4 00:00:00 /sbin/getty 38400 tty4
root 4224 1 0 Mar04 tty5 00:00:00 /sbin/getty 38400 tty5
root 4229 1 0 Mar04 tty2 00:00:00 /sbin/getty 38400 tty2
root 4231 1 0 Mar04 tty3 00:00:00 /sbin/getty 38400 tty3
root 4234 1 0 Mar04 tty1 00:00:00 /sbin/getty 38400 tty1
root 4236 1 0 Mar04 tty6 00:00:00 /sbin/getty 38400 tty6
syslog 4273 1 0 Mar04 ? 00:00:00 /sbin/syslogd -u syslog
root 4292 1 0 Mar04 ? 00:00:00 /bin/dd bs 1 if /proc/kmsg of /v
klog 4294 1 0 Mar04 ? 00:00:00 /sbin/klogd -P /var/run/klogd/km
root 4313 1 0 Mar04 ? 00:00:00 /usr/sbin/sshd
root 4367 1 0 Mar04 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe
mysql 4407 4367 0 Mar04 ? 00:00:00 /usr/sbin/mysqld --basedir=/usr
root 4408 4367 0 Mar04 ? 00:00:00 logger -p daemon.err -t mysqld_s
root 4468 1 0 Mar04 ? 00:00:00 /usr/sbin/inetd
root 4494 1 0 Mar04 ? 00:00:16 /usr/sbin/nmbd -D
root 4496 1 0 Mar04 ? 00:00:00 /usr/sbin/smbd -D
daemon 4519 1 0 Mar04 ? 00:00:00 /usr/sbin/atd
root 4530 1 0 Mar04 ? 00:00:00 /usr/sbin/cron
root 4552 4496 0 Mar04 ? 00:00:00 /usr/sbin/smbd -D
root 4553 1 0 Mar04 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4572 4553 0 Mar04 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4573 4553 0 Mar04 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4574 4553 0 Mar04 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4575 4553 0 Mar04 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 4576 4553 0 Mar04 ? 00:00:00 /usr/sbin/apache2 -k start
root 4995 4313 0 04:57 ? 00:00:00 sshd: root@pts/0
root 4997 4995 0 04:58 pts/0 00:00:00 -bash
root 5011 4997 0 04:58 pts/0 00:00:00 ps -ef
Mike |
|
| Back to top |
|
 |
|