Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BubbaRaid -- APCUPSD /usr/bin/mail doesn't exist. How to get email alerts?

Featured Replies

Getting the error that /usr/bin/mail does not exist. 

 

How can I send these notifications to my gmail address?

 

I have a /root/.forward set up, but I dont see how this would be able to work out of the box.

I downloaded the nc-1.1 package, then use the mail script found here on the forum somewhere ( attached it) and do this in my go2 script.

 

installpkg /boot/packages/nc-1.10-i386-1.tgz

 

cp /boot/config/mail /usr/bin/mail

 

sed -i -e "s/SYSADMIN=root/[email protected]/" /etc/apcupsd/offbattery

sed -i -e "s/SYSADMIN=root/[email protected]/" /etc/apcupsd/onbattery

sed -i -e "s/SYSADMIN=root/[email protected]/" /etc/apcupsd/commok

sed -i -e "s/SYSADMIN=root/[email protected]/" /etc/apcupsd/commfailure

sed -i -e "s/SYSADMIN=root/[email protected]/" /etc/apcupsd/doshutdown

 

 

  • Author

gmail requires username & password + secure mail.

 

how can I do this without username & password?

  • Author

We have comcast though.  smtp.comcast.net on port 25 seems to respond.  Maybe it doesnt require auth for users on the network.

BubbaRaid uses the unraid_notify script.... NOT user/bin/mail.  The scripts for APCUPSD on BubbaRaid do the same.

Ok, I think we got the apcups emails working.  However, I got one email yesterday and one today, both said, "Tower Communications with UPS restored", and were sent about the same time of day.  I have not loss power nor did I get an email saying communication was ever lost.  I'm just not sure what these two emails I did get mean.  It is looking like I will get one each day.  Are they simply status emails that go out once a day?  The subject is a bit missleading being I never lost power or communication with my UPS.

 

I haven't tested pulling the power plug on my ups yet, but will do that soon to ensure it sends the email and does a safe powerdown.

 

Thanks

I still want to understand these emails......here is what I get a couple times a day...

 

Subject: Tower Communications with UPS restored

 

Tower Communications with UPS restored

 

APC : 001,038,0933

DATE : Tue Apr 14 18:43:01 GMT+8 2009

HOSTNAME : Tower

RELEASE : 3.14.4

VERSION : 3.14.4 (18 May 2008) slackware  UPSNAME : Tower  CABLE : USB Cable  MODEL : Back-UPS RS 1000  UPSMODE : Stand Alone

STARTTIME: Sat Apr 11 18:23:38 GMT+8 2009  STATUS : ONLINE  LINEV : 116.0 Volts  LOADPCT : 24.0 Percent Load Capacity  BCHARGE : 100.0 Percent  TIMELEFT : 37.0 Minutes  MBATTCHG : 10 Percent  MINTIMEL : 5 Minutes  MAXTIME : 60 Seconds  SENSE : Medium  LOTRANS : 097.0 Volts  HITRANS : 132.0 Volts  ALARMDEL : Always  BATTV : 26.8 Volts  LASTXFER : Low line voltage  NUMXFERS : 0  TONBATT : 0 seconds

CUMONBATT: 0 seconds

XOFFBATT : N/A

SELFTEST : NO

STATFLAG : 0x07000008 Status Flag

MANDATE : 2003-05-19

SERIALNO : JB0321001085

BATTDATE : 2001-09-25

NOMINV : 120 Volts

NOMBATTV : 24.0 Volts

NOMPOWER : 600 Watts

FIRMWARE : 7.g7 .D USB FW:g7

APCMODEL : Back-UPS RS 1000

END APC : Tue Apr 14 18:43:02 GMT+8 2009

 

I never get a lost connection, so is this working or not?

 

 

Sounds like the communications to the UPS is intermittent to me.  I do not get similar messages.

 

Joe L.

hum, not sure how to troubleshoot that.  I had this same cable/ups plugged into my xp box, with no issues.

 

here is the log output from the tower,

 

APC UPS monitoring daemon log file (/var/log/apcupsd.events)

 

Sun Apr 12 13:09:58 GMT+8 2009  Communications with UPS restored.

Mon Apr 13 17:55:33 GMT+8 2009  Communications with UPS restored.

Mon Apr 13 21:47:28 GMT+8 2009  Communications with UPS restored.

Tue Apr 14 18:43:01 GMT+8 2009  Communications with UPS restored.

Wed Apr 15 10:59:14 GMT+8 2009  Communications with UPS restored.

Wed Apr 15 19:18:48 GMT+8 2009  Communications with UPS restored.

 

 

what can I check?  Could it be a config file setting?

 

Thanks

 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.