Displaying 18 results from an estimated 18 matches for "upsstatus".
Did you mean:
upsstats
2020 Aug 03
2
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...mmands? I’ve been
> looking at the manual and see that you have to escape the internal “ but am
> still a little confused on how to do this exactly.
This assumes that you use the Bash shell in your default environment. It will
need adaption if you use Dash.
In .bashrc define function getUPSstatus
# Update variable UPSstatus and export to environment
# Usage getUPSstatus <myups>
function getUPSstatus {
export UPSstatus="[$( upsc $1 ups.status 2>/dev/null )]:$( upsc $1 battery.charge 2>/dev/null )"
}
The SHUTDOWNCMD declaration now simplifies to
SHUTDOWN...
2007 Jan 16
1
[PATCH] upsstatus += HB, TEST
Arjen, Arnaud, All,
Here I propose 2 new status flags for inclusion into NUT:
HB - HighBattery
TEST - Battery test is running
rationale: Eltek AL175 alarm module provides this info, therefore
rationale: I dicide to add them.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Index: nut--trunk/docs/new-drivers.txt
===================================================================
2020 Aug 04
0
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...ooking at the manual and see that you have to escape the internal “ but am
> > still a little confused on how to do this exactly.
>
> This assumes that you use the Bash shell in your default environment. It will
> need adaption if you use Dash.
>
> In .bashrc define function getUPSstatus
>
> # Update variable UPSstatus and export to environment
> # Usage getUPSstatus <myups>
> function getUPSstatus {
> export UPSstatus="[$( upsc $1 ups.status 2>/dev/null )]:$( upsc $1 battery.charge 2>/dev/null )"
> }
>
> The SHUTDOWNCMD declaration now...
2020 Aug 04
2
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...; the IP address of the NUT Server/Synology? I’m assuming I would use this
> version for use in Dash with Ubuntu, correct?
Yes, you replace <myups> with the address of your UPS, for example
"ups at 192.168.x.y". Are you using Dash or Bash? If it's Dash, the function
getUPSstatus probably goes into .profile .
Test on the command line before modifying SHUTDOWNCMD by typing the commands
getUPSstatus <myups>
echo "UPS status is $UPSstatus"
You should see "UPS status is [OL]:100".
Roger
2012 Jun 10
3
SNMP agent for NUT
...as de Energia
NUT-MIB::deviceMfr.6 = STRING: EATON
NUT-MIB::deviceSerial.1 = STRING: A08823221
NUT-MIB::deviceSerial.2 = STRING: A08823221
NUT-MIB::deviceSerial.6 = STRING: ADKK22008
NUT-MIB::deviceType.1 = STRING: ups
NUT-MIB::deviceType.2 = STRING: ups
NUT-MIB::deviceType.6 = STRING: ups
NUT-MIB::upsStatus.1 = STRING: OL
NUT-MIB::upsStatus.2 = STRING: OL
NUT-MIB::upsStatus.6 = STRING: OL CHRG
NUT-MIB::upsModel.6 = STRING: Ellipse MAX 1100
NUT-MIB::upsMfr.6 = STRING: EATON
NUT-MIB::upsSerial.6 = STRING: ADKK22008
NUT-MIB::upsVendorid.6 = STRING: 0463
NUT-MIB::upsProductid.6 = STRING: ffff
NUT-MIB::ups...
2012 Jun 10
3
SNMP agent for NUT
...as de Energia
NUT-MIB::deviceMfr.6 = STRING: EATON
NUT-MIB::deviceSerial.1 = STRING: A08823221
NUT-MIB::deviceSerial.2 = STRING: A08823221
NUT-MIB::deviceSerial.6 = STRING: ADKK22008
NUT-MIB::deviceType.1 = STRING: ups
NUT-MIB::deviceType.2 = STRING: ups
NUT-MIB::deviceType.6 = STRING: ups
NUT-MIB::upsStatus.1 = STRING: OL
NUT-MIB::upsStatus.2 = STRING: OL
NUT-MIB::upsStatus.6 = STRING: OL CHRG
NUT-MIB::upsModel.6 = STRING: Ellipse MAX 1100
NUT-MIB::upsMfr.6 = STRING: EATON
NUT-MIB::upsSerial.6 = STRING: ADKK22008
NUT-MIB::upsVendorid.6 = STRING: 0463
NUT-MIB::upsProductid.6 = STRING: ffff
NUT-MIB::ups...
2023 Jul 07
0
Adding More Variables from the CyberPower MIB
As per https://github.com/networkupstools/nut/pull/1982 I'm looking to
add a few more variables from the CyberPower SNMP MIB. At question in
particular are the values added to the ups.status variable coming from
the CPS-MIB::upsStatus.0 OID. These values are, from the MIB:
upsStatus OBJECT-TYPE
SYNTAX INTEGER {
normal (1),
overheat (2),
hardwarefault (3)
}
ACCESS read-only...
2020 Aug 08
4
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...servers. In nut.conf I changed MODE to
> "MODE=netclient". I then added my MONITOR line in upsmon.conf. on all three.
> Looks something like this:
>
> MONITOR ups at 192.168.1.70 1 monuser secret slave
>
> My SHUTDOWNCMD looks like this:
> SHUTDOWNCMD "getUPSstatus ups at 192.168.1.70 ; logger -t upsmon.conf \"UPS status is $UPSstatus\" ; /sbin/shutdown -h +0"
>From your previous reports it looks as if getUPSstatus does not work in a
SHUTDOWNCMD declaration since the shell variable it creates gets lost. It
probably better to declare som...
2020 Aug 07
4
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...44 proton upsmon[1552]: Executing automatic power-fail shutdown
So proton is a slave, and is being made to shut down.
> Aug 6 19:19:45 proton upsmon[1552]: Auto logout and shutdown proceeding
> Aug 6 19:19:50 proton upsmon.conf: UPS status is
The variable USPstatus set by getUPSstatus was not in the environment for the
echo command. To get this to work, you'll have to put the upsc commands
directly in SHUTDOWNCMD, or create a short script and call the script in
SHUTDOWNCMD.
> Aug 6 19:19:59 proton upsmon[1545]: UPS: ups at 192.168.1.70 (slave) (power value 1)...
2020 Aug 04
0
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...the NUT Server/Synology? I’m assuming I would use this
> > version for use in Dash with Ubuntu, correct?
>
> Yes, you replace <myups> with the address of your UPS, for example
> "ups at 192.168.x.y". Are you using Dash or Bash? If it's Dash, the function
> getUPSstatus probably goes into .profile .
>
> Test on the command line before modifying SHUTDOWNCMD by typing the commands
>
> getUPSstatus <myups>
> echo "UPS status is $UPSstatus"
>
> You should see "UPS status is [OL]:100".
>
> Roger
> ________________...
2008 Aug 07
0
NUT in the press
....
There was a small article on Linux Devices about Opengear devices and ?Clinux:
http://linuxdevices.com/news/NS5231360488.html
Some live demo of the Opengear NUT integration:
* config: http://www.opengear.com/demo/index5403.html?form=ups
* status: http://www.opengear.com/demo/index6a80.html?form=upsstatus
* management: http://www.opengear.com/demo/index9027.html?form=power
enjoy,
Arnaud
--
Linux / Unix Expert R&D - MGE Office Protection Systems - http://www.mgeops.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/...
2020 Aug 04
2
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...the NUT Server/Synology? I’m assuming I would use this
> version for use in Dash with Ubuntu, correct?
>
>
> Yes, you replace <myups> with the address of your UPS, for example
> "ups at 192.168.x.y". Are you using Dash or Bash? If it's Dash, the function
> getUPSstatus probably goes into .profile .
>
> Test on the command line before modifying SHUTDOWNCMD by typing the
> commands
>
> getUPSstatus <myups>
> echo "UPS status is $UPSstatus"
>
> You should see "UPS status is [OL]:100".
>
> Roger
> ___________...
2020 Aug 08
0
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...ed MODE to
> > "MODE=netclient". I then added my MONITOR line in upsmon.conf. on all three.
> > Looks something like this:
> >
> > MONITOR ups at 192.168.1.70 1 monuser secret slave
> >
> > My SHUTDOWNCMD looks like this:
> > SHUTDOWNCMD "getUPSstatus ups at 192.168.1.70 ; logger -t upsmon.conf \"UPS status is $UPSstatus\" ; /sbin/shutdown -h +0"
>
> From your previous reports it looks as if getUPSstatus does not work in a
> SHUTDOWNCMD declaration since the shell variable it creates gets lost. It
> probably better to...
2020 Aug 07
0
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...;. I then installed NUT on all three servers. In nut.conf I changed
MODE to "MODE=netclient". I then added my MONITOR line in upsmon.conf. on
all three. Looks something like this:
MONITOR ups at 192.168.1.70 1 monuser secret slave
My SHUTDOWNCMD looks like this:
SHUTDOWNCMD "getUPSstatus ups at 192.168.1.70 ; logger -t upsmon.conf \"UPS
status is $UPSstatus\" ; /sbin/shutdown -h +0"
Would that not work? I believe that's what you told me to put there.
I think I've definitely made a mistake though, in that I have not
set RUN_AS_USER in upsmon.conf and set up...
2020 Aug 04
3
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
Right, but I don't know what NUT script is actually calling it. I don't
know how else I would check.
On Tue, Aug 4, 2020 at 10:21 AM Manuel Wolfshant <wolfy at nobugconsulting.ro>
wrote:
> On 8/4/20 4:16 PM, Todd Benivegna wrote:
> > Ok, so now that I think of it, that might not actually work when it is
> > not run by me. I guess that it all confirms that it works
2020 Aug 05
2
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...11:02 /bin/sh -> dash*
Also I did "echo $SHELL" in a terminal window and got "/bin/bash”. So what I found earlier is true; Bash is used in the Terminal app and Dash is used for scripts.
So anyway, I guess that means that it is using Dash then, correct?
Ok, so I copied the getUPSstatus function in .profile as well. So it has been added to both .bashrc and .profile and I have added...
SHUTDOWNCMD "getUPSstatus ups at 192.168.1.70 ; logger -t upsmon.conf \"UPS status is $UPSstatus\" ; /sbin/shutdown -h +0"
…to my upsmon.conf. So I think I should be go to go...
2020 Aug 08
1
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...E=netclient". I then added my MONITOR line in upsmon.conf. on all three.
> > > Looks something like this:
> > >
> > > MONITOR ups at 192.168.1.70 1 monuser secret slave
> > >
> > > My SHUTDOWNCMD looks like this:
> > > SHUTDOWNCMD "getUPSstatus ups at 192.168.1.70 ; logger -t upsmon.conf \"UPS status is $UPSstatus\" ; /sbin/shutdown -h +0"
> >
> > From your previous reports it looks as if getUPSstatus does not work in a
> > SHUTDOWNCMD declaration since the shell variable it creates gets lost. It
> >...
2020 Aug 08
3
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...all three servers. In nut.conf I changed MODE to "MODE=netclient". I then added my MONITOR line in upsmon.conf. on all three. Looks something like this:
>
> MONITOR ups at 192.168.1.70 1 monuser secret slave
>
> My SHUTDOWNCMD looks like this:
>
> SHUTDOWNCMD "getUPSstatus ups at 192.168.1.70 ; logger -t upsmon.conf \"UPS status is $UPSstatus\" ; /sbin/shutdown -h +0"
>
> Would that not work? I believe that's what you told me to put there.
>
> I think I've definitely made a mistake though, in that I have not set RUN_AS_USER in upsm...