Bonjour Sabine,<br><br>long time no see (the last time, it was iirc indirectly through Bernard Thomas, from Eaton support team)<br><br><div class="gmail_quote">2010/11/29 sabine GOUDARD<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
hello,<br>
<br>
I installed with NUT UPS MGE Pulsar Evolution 2200<br>
all orders of arrest, interrogation etc etc ... UPS<br>
work well<br>
<br>
However, I have a problem with the order in NOTIFYCMD upsmon.conf that<br>
not run ...<br>
<br>
I created a script that generates a simply log<br>
<br>
I indicated in upsmon.conf NOTIFYCMD / home / nut / alert_ups.sh<br>
<br>
below my upsmon.conf<br>
<br>
RUN_AS_USER nut<br>
MONITOR pulsar@localhost 1 admin1 lahdnets master<br>
MINSUPPLIES 1<br>
FINALDELAY 5<br>
HOSTSYNC 15<br>
NOTIFYCMD /home/nut/alert_ups.sh<br>
# NOTIFYCMD /sbin/upssched<br>
SHUTDOWNCMD &quot;/sbin/shutdown -h +0&quot;<br>
POLLFREQ 5<br>
POLLFREQALERT 5<br>
DEADTIME 15<br>
NOCOMMWARNTIME 300<br>
RBWARNTIME 43200<br>
# POWERDOWNFLAG /etc/killpower<br>
NOTIFYMSG ONLINE &quot;UPS %s on line power&quot;<br>
NOTIFYMSG ONBATT &quot;UPS %s on battery&quot;<br>
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC<br>
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC<br>
<br>
when the server stops, the log is not generated<br>
and Same with upssched ...<br>
<br>
where can I seach ?<br>
<br>
Thank you for your help<br></blockquote></div><br>well, upssched is not called because you don&#39;t reference it as NOTIFYCMD.<br>Now, you should however get syslog + wall notification whenever you switch to battery or get back to power.<br>
<br>is your .sh script executable?<br>has upsmon been (re)started since you&#39;ve made these configuration changes?<br>can you please also forward us this script for verification?<br><br>For more information on scheduling, refer to the new documentation:<br>
<a href="http://new.networkupstools.org/docs/user-manual.chunked/ar01s07.html">http://new.networkupstools.org/docs/user-manual.chunked/ar01s07.html</a><br><br>cheers,<br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://powerquality.eaton.com" target="_blank">http://powerquality.eaton.com</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br><br>