Displaying 20 results from an estimated 10000 matches similar to: "script to check configuration"
2009 Dec 02
5
Timers fireing too early
Hi all, I've not been able to find the answer to my timer problem in the faq or the archives. (or google)
Basically, I can't get timers to fire. They fire ignoring the timer value, as if the timer was set to 0. I'm using the OpenFiler distribution, patched to the latest and greatest. upsmon 2.2.2
When I pull the power plug, I see the text "Im In Battery" instantly, instead
2009 Jun 19
1
UPS does not want to power off itself
Greetings!
I have successfully installed and configured nut package. All i want now
is to power off ups. If i run upsmon -c fsd as root - everything goes
fine, system and ups gracefully shutting down. If i unplug power cable
from an ups, then system is down, but ups still on load. Any help would
be appreciated.
Debian Lenny x86
ups.conf
[ippon]
driver = megatec
port = /dev/ttyS0
2017 Jun 10
1
Apple Mac slave
On Fri, 9 Jun 2017, Robbie van der Walle wrote:
> ... and also still open is the notification on the Mac.
If notify-send is available on the Mac, then perhaps this will work:
In upsmon.conf on the Mac you need
NOTIFYCMD /usr/sbin/upssched (or wherever this goes on a Mac)
NOTIFYFLAG ONBATT SYSLOG+EXEC
In upssched.conf you need
CMDSCRIPT /usr/sbin/upssched-cmd (or wherever this
2017 Jul 03
2
Help with Elite 800VA usb UPS
Ok, I am running NUT in dummy mode.
I have added a new ups in ups.conf
[dummy]
driver = dummy-ups
port = upsc.dev
desc = "dummy ups for testing purposes"
upsc.dev has been generated by exporting the Elit configuration.
I have added the monitor line in upsmon.conf and the "exec" flags (all the
events)
MONITOR dummy at artu 1 user pass master
SHUTDOWNCMD
2019 Apr 03
2
upssched Not Running
Was /etc/nut/upssched-cmd automatically installed?
I don't have it on my raspberry pi. :-(
On 2019-04-03 1:54 p.m., Mike wrote:
> I figured this out and it is working now. This fix seems strange to me
> and is possibly a bug. I'm sharing in case it might help others.
>
> I had to uncomment all of the NOTIFYFLAG statements whether I was
> changing them or not.
2023 Jun 11
1
Upssched 100% CPU after updating Debian 12
Hi,
I have been running nut successfully for a long time with my Debian 11 server. I upgraded my server to Debian 12 today, which upgraded nut also from 2.7.4-13 to 2.8.0-7. I noticed that after upgrade there was a upssched process running and taking 100% cpu time.
I checked if there were any changes to configuration file formats with nut upgrade and only differences I noticed were a terminology
2015 Apr 27
3
upssched setup
Hi Roger,
I get:
Apr 27 20:50:05 unifi upsmon[1022]: UPS ups on batteryApr 27 20:50:05 unifi upssched[2688]: Timer daemon startedApr 27 20:50:06 unifi upssched[2688]: New timer: onbatt (20 seconds)Apr 27 20:50:26 unifi upssched[2688]: Event: onbattApr 27 20:50:26 unifi upssched[2688]: exec_cmd(/sbin/upssched-cmd.sh onbatt) returned 126Apr 27 20:50:41 unifi upssched[2688]: Timer queue empty,
2006 May 09
4
upssched does not start the script when timer triggers
Hello,
I'm using nut with my MG Ellipse on serial port. No problem since one
year. Two days ago, I wanted to add a phone alert through my asterisk
box when power is down. Since then, upssched doesn't make his job
anymore. here is the "syslog" I get when the power cord is unplugged :
>
> May 9 11:39:34 serveur upsmon[6411]: UPS ellipse@localhost on battery
> May 9
2020 Jan 27
1
Timer doesn't appear to start
Here is the output
root at nutpi:/etc/nut# ps -elf | grep -E '[n]ut|ups[dms]'
4 S avahi 246 1 0 80 0 - 1472 poll_s Jan26 ? 00:00:31
avahi-daemon: running [nutpi.local]
1 S nut 451 1 0 80 0 - 678 poll_s Jan26 ? 00:03:41
/lib/nut/upscode2 -a deltec-PRA1500
1 S nut 454 1 0 80 0 - 1173 poll_s Jan26 ? 00:00:28
/lib/nut/upsd
1
2016 Jun 14
5
Besoin d’aide pour upssched
Bonjour
je n?arrive pas ? configurer convenablement NUT pour qu?il m?adresse
des SMS en cas de coupure de courant.
C?est important pour moi car dans ma maison les coupures sont tr?s fr?quentes.
Voici ma configuration :
******************************************************************
1/ dans /etc/nut/upsmon.conf
MONITOR eaton at localhost 1 admin motdepasse master
MINSUPPLIES 1
SHUTDOWNCMD
2023 Jan 12
1
NUT & UPS, how to shut down client after 2 min on battery?
Now I have this in /etc/nut/upsmon.conf (my QNAP NAS wants admin and 123456 or not working)
RUN_AS_USER root
MONITOR qnapups at localhost 1 admin 123456 master
MONITOR qnapups at 192.168.222.252 3493 admin 123456 slave
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG+EXEC
2012 Jun 25
1
upssched script doesn't start on event
Dear list,
Can't make upssched notify me on event occured.
OS: Debian, 2.6.26-1-amd64
Nut: 2.4.3-1.1squeeze1
UPS: Ippon Smart Winner 3000 connected via COM
On event ( plug out the cord from UPS ) upsmon detect's status change to
OB and gives WALL and syslog notify, but no script starting. In syslog
no errors and no upssched process occured, just upsmon. There're no
PIPE and LOCK
2023 May 27
2
unable to connect to APC UPS Connection Refused
I've not been able to connect to my ups using NUT 2.7.4 or NUT 2.8.0.
2.7.4 was installed as a package, 2.8.O was compiled from source.
I've messed with permissons, everything is root:root and has the approprate read/execute permissons. I've tried two differnt UPS(es) APC & CyperPower. I'm running PI OS (Raspbian) on a Raspberry Pi3 model B. The port 3493 is open (UFW). I can
2016 Aug 05
1
NUT UPS Slave Not Shutting Down
Hello All,
I'm trying to establish a MASTER SLAVE configuration of UPS using NUT
Driver.
I'm able to shutdown the master after UPS is on BATTERY ( POWER BLACKOUT)
.However I'm trying to shutdown the other SLAVE MACHINES BEFORE MASTER.
But at the remote side ( Slaves ) shutdown after UPS blackout does not
happen.
My configuration in Master are
/usr/etc/upsd.users
2020 Jan 11
1
System with MGE UPS shuts down too early
On January 11, 2020 3:42:15 PM GMT+02:00, Roger Price <roger at rogerprice.org> wrote:
>On Sat, 11 Jan 2020, Georgi D. Sotirov wrote:
>
>> Jan 11 11:49:15 sotirov-bg upsmon[2677]: UPS mgeups at localhost on
>battery
>> Jan 11 11:49:15 sotirov-bg upssched[29746]: Executing command:
>ups-on-battery
>> Jan 11 11:49:15 sotirov-bg upssched-cmd: Unrecognized command:
2013 Jan 04
2
UPSSCHED and FreeBSD 8.3?
Group:
The Background:
I maintain the network hardware for a county government building that is un-
occupied except for weekday dayshift. The building is located in an older
section of town and the electric service has components that are nearing
their 100 year lifetime. The building has UPS for all computer and network
hardware and an autostart generator that starts when utilitity service
2012 May 15
2
Timer Daemon doesn't start
Hey,
I have the problem that my timer daemon doesn't start. I checked my configuration more than two times and I don't find the failure. Maybe someone can help me and tell me where the failure could be.
--- syslog ---
May 13 21:50:34 s-monitor1 upsmon[1674]: UPS usv3 at localhost on battery
May 13 21:50:34 s-monitor1 upssched[855]: Executing command: ONBATT
May 13 21:50:34 s-monitor1
2020 Mar 10
2
Fwd: Windows upssched does not work
Hi,
I have problem with upssched on windows. Upssched is not executed. I
have 2 scripts, 1 for notification in upsmon and second for scheduling
in upssched. Monitoring is working fine, script write to log. I'm
using binary windows installer 2.6.5-6 from NUT.
Here are my configs:
--- nut.conf
MODE=netclient
--- upsmon.conf
MONITOR ups_1000 at 192.168.3.95 1 <user> <password> slave
2015 Apr 27
2
upssched setup
Roger,
I did and it didnt work.
Hence why I was trying to run just the shell script manually. I am not sure if this works though with the timer defined in it?
Cheers,
James
Date: Mon, 27 Apr 2015 15:03:44 +0200
From: roger at rogerprice.org
To: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] upssched setup
On Mon, 27 Apr 2015, James Hammond wrote:
> I am unable to get
2020 Jan 27
3
Nut-upsuser Digest, Vol 175, Issue 32
Here are my permissions and user info. Let me know if there is anything
else I should check
pi at nutpi:~ $ ls -alt /etc/nut
total 56
drwxr-xr-x 87 root root 4096 Jan 26 15:22 ..
drwxr-xr-x 2 root nut 4096 Jan 26 13:53 .
-rw-r----- 1 root nut 4719 Jan 26 13:15 upssched.conf
-rw-r----- 1 root nut 15347 Jan 26 11:25 upsmon.conf
-rw-r----- 1 root nut 1543 Jan 26 10:02 nut.conf
-rw-r-----