Displaying 20 results from an estimated 1000 matches similar to: "NOTIFYCMD shell script problem driving me NUTS"
2015 Sep 23
4
NOTIFYCMD shell script problem driving me NUTS
On Sep 22, 2015, at 11:27 AM, Thomas Charron <twaffle at gmail.com> wrote:
>
> On Tue, Sep 22, 2015 at 9:56 AM, John Hart <jsamcr at gmail.com> wrote:
>> notify-send
>
> notify-send needs a DBUS_SESSION_BUS_ADRESS to work right. Look around for code snippets to get this.
Ah, that notify-send. Another option is to launch the PyNUT app in your xsession (or
2015 Sep 22
0
NOTIFYCMD shell script problem driving me NUTS
On Tue, Sep 22, 2015 at 9:56 AM, John Hart <jsamcr at gmail.com> wrote:
> notify-send
notify-send needs a DBUS_SESSION_BUS_ADRESS to work right. Look around
for code snippets to get this.
--
-- Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 14
3
Master privileges unavailable on UPS
Hello all,
I'm having problems with what I'm told should be a straightforward
issue.
The message in /var/log/daemon is:
<quote>
Feb 13 10:37:57 lupin upsmon[31324]: Master privileges unavailable on
UPS [lupin1500AVR@localhost]
2015 Sep 21
0
problem with NOTIFYCMD
I have been racking my brains on this and just can't figure it out.
In upsmon.conf I defined NOTIFYCMD as /etc/nut/notifyme.sh
I did CHMOD 755 /etc/nut/notifyme.sh
I put a line in /etc/nut/notifyme.sh to echo a simple message when it is
called and the message never shows on an open terminal whenever I pull the
plug to the UPS.
I do, however get a WALL broadcast message to that open
2007 Jan 17
1
NOTIFYCMD not running
I have the nut package installed and running - everything perfect (or so I
thought). My syslog shows everything looks great, and pulling the UPS plug
for a few seconds triggers a WALL event, but not my notifycmd (which should
write a test message to syslog).
Can someone offer insight/ideas as to why my NOTIFYCMD is not running?
Thanks,
Michelle
-----------------------
Extract from messages
2015 Sep 21
1
problem with NOTIFYCMD
After some testing, I notice that my NOTIFYCMD script seems to work if I
call it as user 'john' (that's me) but if I call it as 'root' it does not
work. So is there a permissions issue ? I have permission on the file set
to 755. I see there is a variable in upsmon.conf called RUN_AS_USER. I do
not have this defined. Does this variable need to be defined ? I presume
that if
2006 Jul 15
2
Shutdown Problem
Hi
I'm hoping someone can help.
I'm running fc5 with nut 2.0.3. I just recently acquired 2 Gamatronic
SmartCompact ups for my Linux boxes. As you can see from the info below,
everything looks ok. When I unplug the ups from the wall, after a while, the
computer shutdowns very rudely. That it is just turns off. No scrolling down
of processes shutting down It does not seem shutdown
2011 Oct 07
1
Dynamic HID driver mappings, Tripplite-hid.c
I think I'm going to have the slightly rejigger the tripplite-hid.c
driver to 'properly' support all of the data I know about it's
outlets.
A given UPS may have 'n' output loads. I could have 5, I could have
10, I won't know until I actually ask the UPS. But in order to use
the hid to nut struct, I'm actually going to have to modify that
struct dynamically, or
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-----
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
2020 Jan 28
1
Timer doesn't appear to start
The time and upssched-cmd are now working.
Here are the issues I had:
1) Did not define NOTIFYCMD in upsmon.conf Added NOTIFYCMD /sbin/upssched
2) Added +EXEC to NOTIFYMSG rules I am using
3) Change ownership of upssched.conf to my nut user nutmom. I had added
nutmon to the group nut but it didn't work.
Thanks again for all your guidance
On Tue, Jan 28, 2020 at 7:00 AM
2020 Jan 27
0
Timer doesn't appear to start
I only pasted a subset of my upsmon.conf. NOTIFYCMD is in my upsmon.conf
AFA nutmon user. I was trying different things I had the directory as
nutmon nut but changed it to nutmon nutmon to see if that worked. It didn't
make a difference.
Sorry about the digest this. I needed to hit a line in gmail web client to
see the subject line. Know I know. Thanks for the heads up..
[root at donner
2017 Oct 10
5
Tripplite Smart Int 1000 - wrong numbers
Charles, maybe we are getting closer :-)
> The tripplite_serial_protocol branch has some debug statements that will show up if you run "sudo drivers/tripplite -D -a name-of-ups" from the nut directory.
Network UPS Tools - Tripp-Lite SmartUPS driver 0.91 (2.7.4-432-gafd90f5a)
?? 0.000000??? [D1] debug level is '1'
?? 0.177766??? [D1] W value = 0x86
?? 0.177782??? [D1] L
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
Hi, I'm having problems to configure upssched in order to notify me only
when the disconnection exceeds the 30 seconds.
Now, I'm getting a mail if it is disconnected just for a second, or even
worse, when I got low tension.
So, mail notifications are well configured, I guess...
I think the problem is in upssched.
I'm new to this, so it could be a stupid thing that I'm missing...
2020 Jan 28
0
Timer doesn't appear to start
If you look closer at:
> pi at nutpi:~ $ sudo ls -alt /home/nutmon
> total 32
> -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history
> drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched
there is a d in the first position of the upssched permissions showing this
is a directory. This is the directory location for PIPEFN and LOCKFN as
defined in
2020 Jan 28
0
Timer doesn't appear to start
One last update. I needed to log out and in to get the group add of my user
nutmon to be recognized. My permissions are now root:nut on upssched.conf
and it works.
On Tue, Jan 28, 2020 at 7:00 AM <nut-upsuser-request at alioth-lists.debian.net>
wrote:
> Send Nut-upsuser mailing list submissions to
> nut-upsuser at alioth-lists.debian.net
>
> To subscribe or unsubscribe
2015 Jul 15
3
No messages
Charles,
This is how I have the upsmon.conf set up. ?The only time I get a message is if the?NUT Monitor gui is running. ?I open LXterminal, pull the wall plug, and I get no messagesin the terminal.
?MONITOR Asium_p700 at localhost 1 upsmon jsamcr master?MINSUPPLIES 1?SHUTDOWNCMD "/sbin/shutdown -h +0"?NOTIFYCMD /sbin/upssched?POLLFREQ 5?POLLFREQALERT 5?HOSTSYNC 15?DEADTIME
2012 Aug 27
1
nut setup on ubuntu 10.04
using latest stable version, 2.4.3
I've think i've got my configurations mostly working.
I followed the following site.
http://www.blasterspike.it/2011/03/28/how-to-install-nut-on-ubuntu-10-10-maverick-meerkat/
one issue i have is the upsmon.conf setting
NOTIFYCMD /usr/local/ups/bin/notifyme
in web searches it seems like this should be set to
NOTIFYCMD /sbin/upssched
but still not
2017 Jan 09
2
NUT Client shuts down when performing runtime calibration on APC UPS
Here are the results from the output of upsc under different conditions from my Debian Test system with NUT 2.7.2 :
Normal: ups.status: OL
No wall power: ups.status: OB
Runtime calibration (started from AP9630 web interface): ups.status: OB CAL
So at this stage there is a difference!
I then connected to my QNAP and set the UPS settings on the web interface to "Shutdown server if power
2015 Nov 21
2
lost communication with UPS
Greetings.? I have been using NUT for some time now and have not had any issues until yesterday.? I was trying to get my NOTIFYCMD script working and was making modifications to upsmon.conf .? After making the mod to upsmon.conf I invoked upsmon -c reload and a few minutes later the system shut down.? There was a loss of communications with the UPS.? I have an Asium P700 UPS and use the blazer_usb