[root@NAS02]# rcnut stop
Stopping upsmon: OK.
[root@NAS02]# rcnut start; echo $?
Starting upsmon: Network UPS Tools upsmon 2.6.1
UPS: up...@192.168.10.50 (slave) (power value 1)
Using power down flag file /etc/killpower
OK.
0
[root@UOSRLC-NAS02]#
In my upsmon.conf I found the original shutdown command was:
SHUTDOWNCMD "/sbin/shutdown -h +0"
...Where (since /sbin/shutdown bin does not exist in Alt-F) I tried changing it to:
SHUTDOWNCMD "/usr/sbin/poweroff -f"
...But that still does not shut it down.
What am I missing here or how can I troubleshoot this further?
THANKS
OJ
Hello friends,I'm trying to troubleshoot why upsmon is not shutting down my DNS-323 w/ Alt-F and nut installed.I am connecting to the master (which is a Linux Open Media Vault distro):DNS-323 (slave):[root@NAS02]# rcnut stop
Stopping upsmon: OK.
[root@NAS02]# rcnut start; echo $?
Starting upsmon: Network UPS Tools upsmon 2.6.1
UPS: up...@192.168.10.50 (slave) (power value 1)
Using power down flag file /etc/killpower
OK.
0
[root@UOSRLC-NAS02]#
In my upsmon.conf I found the original shutdown command was:
SHUTDOWNCMD "/sbin/shutdown -h +0"
...Where (since /sbin/shutdown bin does not exist in Alt-F) I tried changing it to:
SHUTDOWNCMD "/usr/sbin/poweroff -f"
...But that still does not shut it down.
Joao,Thanks for replying my friend!Yeah, I tested /usr/bin/poweroff manually on CLI this afternoon and it does power it down.
Just now I tried the /etc/init.d/rcE from CLI, and it sat on a blinking cursor for a few moments, eventually closed the ssh connection, but it didn't power it off (is that because the SSH shell died before it finished)?
I'll have to try a test tomorrow with the /etc/init.d/rcE in the upsmon.conf and see if that one plays any different. Is there a log I can check to see if upsmon tried to do anything when it hit low battery trigger?
[root@UOSRLC-NAS02]# upsmon -u root -D start
Network UPS Tools upsmon 2.6.1
0.000000 UPS: up...@192.168.10.50 (slave) (power value 1)
0.008106 Using power down flag file /etc/killpower
0.013170 debug level is '1'
0.020803 Trying to connect to UPS [up...@192.168.10.50]
0.031793 Logged into UPS up...@192.168.10.50
4590.935203 UPS up...@192.168.10.50 on battery
sh: wall: not found
4595.937201 UPS up...@192.168.10.50 on line power
sh: wall: not found
5831.178932 UPS up...@192.168.10.50 on battery
sh: wall: not found
10337.058817 UPS up...@192.168.10.50: forced shutdown in progress
10337.059846 UPS up...@192.168.10.50 battery is low
10337.060791 Critical UPS: up...@192.168.10.50
10337.060985 Shutting down any UPSes in MASTER mode...
10337.061147 Executing automatic power-fail shutdown
shshsh: wall: not found
10337.089139 Auto logout and shutdown proceeding
: wall: not found
: wall: not found
sh: wall: not found
[root@UOSRLC-NAS02]# Connection to 192.168.10.51 closed by remote host.