Displaying 17 results from an estimated 17 matches for "notifym".
Did you mean:
notify
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
...o this, so it could be a stupid thing that I'm missing...
My configurations files are like this:
*ups.conf:*
[ups0]
driver = mge-shut
port = /dev/ttyS0 #It's serial, not USB
*upsmon.conf:*
# NOTIFYCMD <command>
NOTIFYCMD /usr/local/ups/bin/notifyme
# POWERDOWNFLAG - Flag file for forcing UPS shutdown on the master system
POWERDOWNFLAG /etc/killpower
# This file is supposed to be created by NUT when a disconnection
occurs, but I didn't see it. Am I right?
*upssched.conf:*
# CMDSCRIPT <scriptname>
CMDSCRIPT /usr/local/ups/bin...
2006 Aug 17
2
powercom UPS shoutdown discussion
...for your response.
The point is that I have configured my system to shut down at the event "upsc Inform@localhost ups.status"!="OL", not at "LB". So there will be no /etc/killpower file created. At an ups.status != "OL" event, the following script named "notifyme" is run:
echo `date` >> /root/upsLog
echo " No power, shutting down the system!" >> /root/upsLog
sleep 30
control=`/usr/local/ups/bin/upsc Inform@localhost ups.status`
if [ $control != OL ]
then
/sbin/telinit 0
fi
I tried adding the line: "touch /etc/powerdown&qu...
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 terminal when I
pull the UPS power...
2006 Aug 16
5
Master privileges unavailable on UPS, no access :(
Hello!
After I type "upsmon", in syslog the following message appears:
Aug 16 14:11:09 marto upsmon[7731]: Master privileges unavailable on UPS [Inform@localhost]
Aug 16 14:11:09 marto upsmon[7731]: Reason: Access denied
Can you tell me where my error is, my configuration files are:
ups.conf:
[Inform]
driver = powercom
port = /dev/ttyS0
desc = "inform guard"
linevoltage = 220
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 sure and this gets me into upssched.conf
where is CMDSCRIPT sample script upssched-cmd?
any help would be appreciated.
2006 Aug 17
0
(no subject)
...wer falures one exactly 30 sec after the other, my PC will shutdown. Ok, having in mind the possibility for such a thing to happen, I do not find it quite annoying really :). Of course if you do not see some significant potential problem in all that.
And concerning the UPS shutdown,
I remind you my notifyme script:
echo `date` >> /root/upsLog
echo " No power, shutting down the system!" >> /root/upsLog
sleep 30
control=`/usr/local/ups/bin/upsc Inform@localhost ups.status`
if [ $control != OL ]
then
/sbin/telinit 0
fi
I tried adding the line: "touch /etc/powerdown" to...
2006 Aug 17
1
powercom issues
And something else, that previously eluded from my thoughts:my "notifyme" script,i.e the script that is executed at an ups.status="OB" event, is:
echo `date` >> /root/upsLog
echo " No power, shutting down the system!" >> /root/upsLog
sleep 30
control=`/usr/local/ups/bin/upsc Inform@localhost ups.status`
if [ $control != OL ]
then
/...
2006 Feb 14
3
Master privileges unavailable on UPS
...sers
[monmaster]
password = *
allowfrom = localhost
actions = SET
instcmds = ALL
# Network UPS Tools: example upsmon configuration
RUN_AS_USER nutmon
MONITOR lupin1500AVR@localhost 1 monmaster * master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/local/ups/bin/notifyme
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
NOTIFYFLAG FSD SYSLOG+WALL+EXEC
NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC
NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC
NOTIFYFLA...
2006 Aug 08
1
2.0.1 upsmon memory leak
...1]:
connect failed: Connection failure: Connection refused
Using the configuration file of:
MONITOR sm700_0@192.168.1.21 1 monitoruser password slave
MONITOR rm3000_0@192.168.1.22 0 monitoruser password slave
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
# NOTIFYCMD /usr/local/ups/bin/notifyme
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
Upsmon is:
companyfs1:/var/log# /sbin/upsmon -V
Network UPS Tools upsmon 2.0.1
Rehupping the process
companyfs1:/tmp# ps aux | grep [n]ut
nut 30369 0.0 0.1 17...
2006 Aug 17
1
powercom upstype identify problem
...ST". Now my upsd.users is:
[root]
password = password
allowfrom = localhost
upsmon master
actions = SET
instcmds = ALL
and upsmon.conf is:
RUN_AS_USER root
MONITOR Inform@localhost 1 root password master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h now"
NOTIFYCMD /usr/local/ups/bin/notifyme
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 0
DEADTIME 15
POWERDOWNFLAG /etc/killpower
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY
I had to run as user root, because otherwise the command "telinit 0" from the notifyme script does not have the permission to...
2017 Jun 09
2
Apple Mac slave
...from the NAS and connecting it (if possible) to the Mac. After setting to
80 and a power off-on cycle is the value 80 or 10?
> 3. Users from the NAS are warned, not yet the Mac user.? Only when
> executing automatic power-fail shutdown.?
In upsmon.conf on the Mac, what are the values of NOTIFYMSG ONBATT and
NOTIFYFLAG ONBATT? Does program wall work on the Mac? It fails on a lot
of Linux boxes with graphical interfaces - to get a message to the user,
you have to use notify-send, which means setting up upssched.
> 7. No they didn?t restart. I know there is a setting on the NAS to
&...
2015 Sep 22
2
NOTIFYCMD shell script problem driving me NUTS
Either I am missing something or I am really STUPID.
1. I have added a user, named nutmon, to the nut group.
2. In upsmon.conf I have set RUN_AS_USER nutmon .
3. I have NOTIFYCMD /etc/nut/notifyme.sh and it is set as 755, so should be
executable by everyone.
4. I have the NOTIFYFLAG set as SYSLOG+WALL+EXEC, so the shell should
execute.
This is the shell script :
#!/bin/bash
#
# NUT NOTIFYCMD script
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
notify-send --expire-ti...
2013 Apr 15
0
mounting engine in namespace
I am testing an engine which normally is mounted at /
NotifyMe::Application.routes.draw do
> mount_opro_oauth :controllers => {:oauth_client_apps =>
> ''oauth/client_apps''}
I am trying to mount it inside my existing backoffice namespace, is it
possible or not advisable
namespace :backoffice do
> match '...
2006 Jul 15
2
Shutdown Problem
...users contains
[username]
password = password
allowfrom = localhost
upsmon master
/etc/ups/upsmon.conf
# RUN_AS_USER nutmon
MONITOR Gamatronic_SmartCompact@localhost 1 username password master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h now"
# NOTIFYCMD /usr/local/ups/bin/notifyme
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
# NOTIFYMSG ONLINE "UPS %s is getting line power"
# NOTIFYMSG ONBATT "Someone pulled the plug on %s"
# NOTIFYFLAG ONLINE SYSLOG
# NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 3...
2011 Apr 28
1
Problem with blazer_ser/megatec when upgrading to 2.6.0 from 2.4
...v
LISTEN 127.0.0.1 3493
cat upsd.users | grep "#" -v
[monuser]
password = #######
cat upsmon.conf | grep "#" -v
MONITOR munja at localhost 1 monuser ###### slave
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
NOTIFYCMD /usr/local/ups/bin/notifyme
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
/lib64/nut/blazer_ser -DDDDD -a munja -i 10
Network UPS Tools - Megatec/Q1 protocol serial driver 1.51 (2.6.0)
0.000000 send_to_all: SETINFO driver.parameter.po...
2009 Dec 28
4
Megatec driver floods logs #2 & mail notifications
Hi there!
I'm a n00b NUT user trying to get it running on RHEL5 and actually do
something useful for me. Few questions:
1) I want it to notify me by email on power loss and power back events.
I can't find any sample scripts for this purpose... Where shall I look
for them?
2) So far, I've backported the package from Fedora and got my Ablerex
running (previously used with Upsilon /
2017 Jan 09
2
NUT Client shuts down when performing runtime calibration on APC UPS
...this is only called for NOTIFY events that have EXEC set with
# NOTIFYFLAG. See NOTIFYFLAG below for more details.
#
# Making this some sort of shell script might not be a bad idea. For more
# information and ideas, see pager.txt in the docs directory.
#
# Example:
# NOTIFYCMD /usr/local/ups/bin/notifyme
# --------------------------------------------------------------------------
# POLLFREQ <n>
#
# Polling frequency for normal activities, measured in seconds.
#
# Adjust this to keep upsmon from flooding your network, but don't make
# it too high or it may miss certain short-lived power...