Jump to content

UPS not shutting down unRAID


Recommended Posts

I trying to configure the following UPS CP1500PFCLCD to cleanly shutdown the server after 30 seconds on battery. unRAID recognizes the UPS and prompts me with notifications when I trip the UPS. Please see screens. But unfortunately the server remains on. I keep the UPS unplugged for a couple of minutes to see if it would shutdown the server, alas it does not. I then plugged it back in as you can see.

 

Aug 24 18:58:52 petunia apcupsd[9359]: Power failure.
Aug 24 18:58:58 petunia apcupsd[9359]: Running on UPS batteries.
Aug 24 18:59:29 petunia apcupsd[9359]: Reached run time limit on batteries.
Aug 24 18:59:29 petunia apcupsd[9359]: Initiating system shutdown!
Aug 24 18:59:29 petunia apcupsd[9359]: User logins prohibited
...
Aug 24 19:01:23 petunia apcupsd[9359]: Communications with UPS restored.
Aug 24 19:01:23 petunia apcupsd[9359]: Mains returned. No longer on UPS batteries.
Aug 24 19:01:23 petunia apcupsd[9359]: Power is back. UPS running on mains.
Aug 24 19:01:23 petunia apcupsd[9359]: Allowing logins
Aug 24 19:03:23 petunia emhttp: /usr/local/emhttp/webGui/scripts/tail_log syslog 2>&1

 

Screenshot of settings page:

http://i.imgur.com/nMTwcw6.png

 

When I look at /etc/apcupsd/apccontrol, it appears to do the timeout block but not the doshutdown block

 

    timeout)
echo "Battery time limit exceeded on UPS ${2}. Doing shutdown." | ${WALL}
    ;;
    doshutdown)
echo "UPS ${2} initiated Shutdown Sequence" | ${WALL}
${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
    ;;

 

Plugins installed besides default:

Dynamix S3 Sleep, Nerd Tools

 

unRAID: 6.1-rc5

 

cat  /var/log/apcupsd.events
2015-08-24 18:51:46 -0400  apcupsd 3.14.13 (02 February 2015) slackware startup succeeded
2015-08-24 18:52:16 -0400  apcupsd exiting, signal 15
2015-08-24 18:52:16 -0400  apcupsd shutdown succeeded
2015-08-24 18:52:16 -0400  apcupsd 3.14.13 (02 February 2015) slackware startup succeeded
2015-08-24 18:58:52 -0400  Power failure.
2015-08-24 18:58:58 -0400  Running on UPS batteries.
2015-08-24 18:59:29 -0400  Reached run time limit on batteries.
2015-08-24 18:59:29 -0400  Initiating system shutdown!
2015-08-24 18:59:29 -0400  User logins prohibited
2015-08-24 19:01:23 -0400  Communications with UPS restored.
2015-08-24 19:01:23 -0400  Mains returned. No longer on UPS batteries.
2015-08-24 19:01:23 -0400  Power is back. UPS running on mains.
2015-08-24 19:01:23 -0400  Allowing logins
2015-08-24 19:37:41 -0400  apcupsd exiting, signal 15
2015-08-24 19:37:41 -0400  apcupsd shutdown succeeded
2015-08-24 19:37:41 -0400  apcupsd 3.14.13 (02 February 2015) slackware startup succeeded
2015-08-24 19:38:26 -0400  apcupsd exiting, signal 15
2015-08-24 19:38:26 -0400  apcupsd shutdown succeeded
2015-08-24 19:38:26 -0400  apcupsd 3.14.13 (02 February 2015) slackware startup succeeded

Missing something here... Thoughts?

Link to comment
  • 2 weeks later...
  • 1 month later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...