Reboot or Power Failure - Email Notification

Can OS X Server 10.4 be setup to send me an email when it restarts, reboots, or has any other issues?
Message was edited by: James Rothschild

Yeah, I have a setup that works fairly well.
It's done using launchd
I have a folder called EmailForPrint (you could call it anything, this notifies me to restart the print service after a restart)
That folder contains two files:
StartupParameters.plist and
EmailForPrint (this is a script)
I then drop that folder in the server's /System/Library/StartupItems/ folder
This is my StartupParameters.plist file:
Description = "Sends an Email";
Provides = ("Sends an Email");
OrderPreference = "Late";
This is the script that is executed by launchd:
#!/bin/sh
. /etc/rc.common
echo `hostname` rebooted on `date`. | mail -s 'Server Restart Notification' [email protected];
Just set the permissions as the other items in the System/Library/StartupItems folders.

Similar Messages

  • Failure Email Notification

    Original post by William Culley
    8:29am, May 17 
    Hello,
    I am trying to setup an email notification when a task that uses an agent fails, but choosing the Failure Email option for the task does not appear to work.  I've tested the email template on other task events like start and it works.  So I know the email template is correct. 
    I read through the documentation and it states the Failure Email notifies when an external task fails.  Does this mean a task that invokes an agent does not have the option to send a failure notification?
    Thanks,
     Bill
    Ed Contini
    9:34am, May 17 
    Hi Bill,
    The email should fire in the even of failure of an outbound message. Is your failure for an outbound or an inbound message?- Ed
    William Culley 
    10:16am, May 17 
    Hey Ed,
    I believe we've figured this one out.  We had the failure email being set at the task level and not the agent level.  So the agent failure did not equate to a task failure and we were not receiving the failure email.Thanks for you assistance,Bill 
    Anthony Erickson 
    2:51pm, May 18 
    Hi Bill,
    We have a related issue to this which might provide some useful information.  By turning it on at the Agent level, it will also fire when an inbound update fails.  Where you are integrating tickets to external systems, we've found it's possible for updates to be made to an already-closed ticket in the remote system which tries to send an update after the Requisition has already closed.This triggers a failure notification for us, and the 3 failures we experienced were outnumbered by about the 300 false errors we received daily.  We tried configuring it at the task level, but that is not apparently what the function is for and we have an open case for it.Thanks,

    Ed Contini
    9:34am, May 17 
    Hi Bill,
    The email should fire in the even of failure of an outbound message. Is your failure for an outbound or an inbound message?
    - Ed
    William Culley 
    10:16am, May 17  
    Hey Ed,
    I believe we've figured this one out.  We had the failure email being set at the task level and not the agent level.  So the agent failure did not equate to a task failure and we were not receiving the failure email.
    Thanks for you assistance,
    Bill
    Anthony Erickson 
    2:51pm, May 18 
    We have a related issue to this which might provide some useful information.  By turning it on at the Agent level, it will also fire when an inbound update fails.  Where you are integrating tickets to external systems, we've found it's possible for updates to be made to an already-closed ticket in the remote system which tries to send an update after the Requisition has already closed.
    This triggers a failure notification for us, and the 3 failures we experienced were outnumbered by about the 300 false errors we received daily.  We tried configuring it at the task level, but that is not apparently what the function is for and we have an open case for it.
    Thanks,
    Ant
    We have a related issue to this which might provide some useful information.  By turning it on at the Agent level, it will also fire when an inbound update fails.  Where you are integrating tickets to external systems, we've found it's possible for updates to be made to an already-closed ticket in the remote system which tries to send an update after the Requisition has already closed.This triggers a failure notification for us, and the 3 failures we experienced were outnumbered by about the 300 false errors we received daily.  We tried configuring it at the task level, but that is not apparently what the function is for and we have an open case for it.
    Thanks,
    Ant

  • Send a Failure Email Notification After Load Plan execution in ODI 11g

    Hi Experts,
    Greetings!
    I am trying to send an email if any of the step fails during Load Plan execution. Irrespective of the failed object, only 1 email should be sent to the Administrator. I unable to do this. Mails are getting sent for the no of times the no of object fails. For eg if 10 out of 100 steps fails, 10 emails are getting sent. I need to send only 1 email.
    I am using ODISendMail.
    I have tried various combinations however, all in Vain.
    For instance:
    root step --> Exeception Step (Send Failure Email) and Execption behaviour (Run Exception and Ignore). Using this because, I dont want to stop the load plan on the step failure.
    Interface1: Exeception Step (Blank) and Execption behaviour (Run Exception and Ignore).
    Interface2: Exeception Step (Blank) and Execption behaviour (Run Exception and Ignore).
    Exception not getting executed.
    Please help.
    Regards,
    Andy

    Thanks SH.
    I tried your suggestion as per below.
    1. Created global variable "v_cnt" with default value "0"
    2. Created package "pkg_v_cnt" to increment the variable by 1
    3. created package "pkg_sendError_Email" to check if v_cnt > 0 then Send Error Email.
    For Instance, the loan plan looks like this:
    root step --> Exeception Step (pkg_v_cnt) and Execption behaviour (Run Exception and Raise)
    Interface1: Exeception Step (pkg_v_cnt) and Execption behaviour (Run Exception and Ignore).
    Interface2: Exeception Step (pkg_v_cnt) and Execption behaviour (Run Exception and Ignore).
    Send Error Email (pkg_sendError_Email)
    The issue here is that, the variables are not getting the incremented value and hence unable to send email . The variable value remains "0" even after execution of the exception steps when both interfaces fails.
    Pls help.
    Thanks,
    Andy

  • [SOLVED] How to cancel systemd-fsck during reboot after power failure.

    Hello
    If power fails (or if I, for any reason, force a physical shutdown ) on my computer, it will display during boot :
    systemd-fsck[171] : arch_data was not cleanly unmounted, check forced
    And then hangs for a long time (10 minutes ) while checking arch_home partition, wich is a 1T ext4 partition.
    then finish the boot.
    Sometimes i want this behavior, but i may need to have my computer up and running as fast as possible, and i don't seem to be able to cancel this fsck.
    Ctrl+C, or escape have no effect.
    How to allow cancelation of system-fsck for this boot, postponing it for the next boot ?
    my fstab :
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # UUID=cfdf8739-d512-4d99-9893-437a6a3c9bf4 LABEL=Arch root
    /dev/sda12 / ext4 rw,relatime,data=ordered 0 2
    # UUID=98b01aa3-0f7f-4777-a941-8e676a68adce LABEL=Arch boot
    /dev/sda11 /boot ext2 rw,relatime 0 2
    # UUID=8909c168-5f1e-4ae7-974c-3c681237af7a LABEL=Arch var
    /dev/sda13 /var ext4 rw,relatime,data=ordered 0 2
    # UUID=a13efc24-cf66-44d0-b26c-5bb5260627a0 LABEL=Arch tmp
    /dev/sda14 /tmp ext4 rw,relatime,data=ordered 0 2
    # UUID=779aeb69-9360-4df0-af84-da385b7117d1 LABEL=Arch home
    /dev/sdb4 /home ext4 rw,relatime,data=ordered 0 2
    /dev/sdb5 /home/glow/data ext4 rw,relatime,data=ordered 0 2
    Last edited by GloW_on_dub (2013-12-07 16:00:06)

    Maybe you can add a menu item to the grub boot menu so you can pick it from the menu instead of editing the grub line by hand?
    I'm using syslinux, but I can have menu items that only differ in e.g. 'quiet' parameter:
    APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd quiet
    APPEND root=/dev/sda3 rw init=/usr/lib/systemd/systemd
    Everything else is the same.

  • I had a power failure 2 days ago, have power now, but cannot send email from my iPad. Everything was fine before that. The box says cannot send mail, the user name or password for Gmail is incorrect. I haven't changed anything. I need help. Thanks

    Hi
    I had a power failure 2 days ago, my computer is running again, but now I cannot send email from my iPad using Cox or my gmail account. I am receiving mail in my Cox account but not my gmail account.It was working fine until the power failure. It keeps telling me, the user name or password for Gmail is incorrect. I have not changed anything. I don't know what is wrong. Can anyone help me? Thanks

    I agree, unplug and replug your router, then reset your iPad by holding down the sleep and home buttons, ignore the red power down slider, and wait til you see the silver apple. let it reboot and then try your connection.
    Chances are rebooting the router will help. You may also need to talk to cox. They may need to reset something on their end.

  • APC UPS: Xseve not rebooting after a power failure

    Xserve 2.26 GHZ OS X server 10.6.4
    Energy Saver-UPS connected USB to APC smart UPS set to shut down 5 min before UPS out of power.
    On a power failure (lots these days in the islands!), the Xserve does not reboot upn power restore.
    Any ideas?
    Thanks!

    Did you install software for the Less-Interruptable Power Supply (LIPS), or are you running with the integrated capabilities? (There is add-on software that can be installed used here, though the integrated LIPS support within Mac OS X Server works correctly with Mac OS X Server 10.5 and 10.6 and APC Smart-UPS devices on the Xserve boxes I deal with.)
    Was the key lock engaged on the server when you set this up?
    Definitely check the rack LIPS configuration settings too, as some of these LIPS boxes are seriously programmable.
    The settings are visible via the pmset and ipmitool tools; [here are pmset and ipmitool examples|http://labs.hoffmanlabs.com/node/1045], as well as some information on sending email and such.

  • Variable to get instance failure error message in Email Notification

    Hi All,
    I  send email notifications on insatnce failure of Scheduled reports by configuring notification option in CMC.
    I would like to send the Error message for insatnce failure in the message content.
    Is there any way to achieve this ?Any dynamic system variable like %SI_STARTTIME%  available for this  ?
    I am looking for error message as we see when click status in Instance History of a report.
    "Error Message: The date for the prompt 'Enter Issue Start Date:' is invalid. (WIS 10706)  "
    Thanks in Advance
    Bilahari

    Hi Bilahari,
    It is not possible at present with the product as it stands out of the XI3.1 or BI4.0 to email the error message with the schedule email notification.
    I would suggest that you log this requirement in the SAP Ideas Place:
    Idea Place (https://ideas.sap.com) allows customers to log Enhancement request themselves without the need to contact Support and work more closely with Product Management.
    Here your idea can be evaluated by other customers and voted upon, prior to our Product Group organization deciding on the idea as a possible enhancement.
    I hope this is a very helpful answer to you.
    Kind regards,
    John

  • How to log RSYNC succes/failure in my shell file & send email notification

    I have a shell file rsyncCommand.sh with code as below which generates RsyncLog.txt file. I want to add a column success/failure and check whether rsync was a success or a failure. In addition , want o send an email notification in case it was a failure.
    #!/bin/bash
    fileCreationPath="/u01/Oracle/SyncScriptFolder"
    destination="abc@boseastlnt4"
    destinationPath="/u01/Oracle/Middleware/user_projects/domains/base_domain/ucm/cs"
    sourcePath="/u01/Oracle/Middleware/user_projects/domains/base_domain/ucm/cs"
    startdate=$(date +"%m-%d-%Y %r")
    starttime=$(date +"%m-%d-%Y %r")
    touch $fileCreationPath/lock.file
    chmod 777 $fileCreationPath/lock.file
    eval "find $fileCreationPath/RsyncLog.txt"
    status=$?
    if [ "$status" == "0" ];
    then
    echo "RsyncLog.txt File Exists "
    else
    touch $fileCreationPath/RsyncLog.txt
              echo -e "StartDate \t\t FolderName     \t\t StartTime \t\t EndTime" >>/$fileCreationPath/RsyncLog.txt
    fi
    rsync -e ssh -avzr --delete $sourcePath/weblayout/ $destination:$destinationPath/weblayout/
    echo -e "$startdate\t\t weblayout\t\t\t$starttime\t\t$(date +"%m-%d-%Y %r")" >> $fileCreationPath/RsyncLog.txt
    starttime=$(date +"%m-%d-%Y %r")
    rsync -e ssh -avzr --delete $sourcePath/vault/ $destination:$destinationPath/vault/
    echo -e "$startdate\t\t vault \t\t\t$starttime\t\t$(date +"%m-%d-%Y %r")" >> $fileCreationPath/RsyncLog.txt
    starttime=$(date +"%m-%d-%Y %r")
    rsync -e ssh -avzr --delete $sourcePath/data/ $destination:$destinationPath/data/
    echo -e "$startdate\t\t data \t\t\t$starttime\t\t$(date +"%m-%d-%Y %r")" >> $fileCreationPath/RsyncLog.txt
    starttime=$(date +"%m-%d-%Y %r")
    rsync -e ssh -avzr --delete $sourcePath/custom/ $destination:$destinationPath/custom/
    echo -e "$startdate\t\t custom\t\t\t$starttime\t\t$(date +"%m-%d-%Y %r")" >> $fileCreationPath/RsyncLog.txt
    starttime=$(date +"%m-%d-%Y %r")
    rsync -e ssh -avzr --delete $sourcePath/classes $destination:$destinationPath/classes/
    echo -e "$startdate\t\t classes\t\t\t$starttime\t\t$(date +"%m-%d-%Y %r")" >> $fileCreationPath/RsyncLog.txt
    rm $fileCreationPath/lock.file
    "

    How can i get the status (Success/Failure?

  • Email notification on Cube load completion/failure

    Hi all,
    I'm trying to create a trigger that will send an email on the success/failure of a data load. It seems that I can only use cube members in the where and when clauses for triggers however. Is there an easy way to get email notification from the cube builds? Currently we are using AIS to schedule and build the cubes and it doesn't provide an obvious way to do this. Any advice would be appreciated.
    Thanks in advance!

    The TechRef has good examples for "almost" every command or statement.
    What you need to do is to write MaxL script file to load your data and execute Calculation/Aggregation and if it fails anywhere you can log that to an error file, then call that script from a batch file that sends an email at the end, you can use a command line email applications such as Clemail. You also can put a condition in your batch file to send an email only in case of failure file exists.
    here are few steps you may follow:
    -select your application and database
    -unlock all objects
    -disable connections and log out users
    -build your dimension, if you do build your outline before you load your data**not necessary**
    -load your data
    -execute Calculation/Aggregation
    - enable DB connection
    - define your label at the end of MaxL Script
    in your batch file:
    - define your parameters that you are going to pass to your MaxL script
    - call your MaxL script: essmsh "fileName"
    - call your email application
    if you are not familiar with batch scripting, Google for some examples.
    hope this helps.

  • Email notification not working from Server Monitor (for power outages etc.)

    I have my email address entered in the notifications fields for power on Server Monitor. I tried pulling the plug (it's on a UPS), which it did notice but it never sent any emails. How do I debug this? Where is the SMTP settings or whatever is needed? Have people gotten the email notifications from Server Monitor to work?
    Mike

    tobias Eichner wrote:
    Have you checked your mail filter, maybe the notification got mistakenly marked as spam ?
    thank you for your reply! Is this working for you - are you getting notifications? My spam folder doesn't have any of these. Where did you set up the SMTP info for this? I don't see this anywhere. On the web, at
    http://support.apple.com/kb/TA21298?viewlocale=en_US
    it looks like you have to tell it how to send the emails in Message.framework:
    The Message.framework looks in two places for a way to send email. The first
    is that it looks for an SMTP server configured in the Email tab of Internet
    preferences. The other way is to use an email account configured in Mail.
    the question is, which user's .plist file for internet preferences or for Mail - which user's info is it using to send the notifications?
    Mike

  • After upgrading to iOS7 I lost all sound for my 4S except for the ring when someone calls. I can't listen to music, I don't get text or email notifications. I have tried rebooting?

    Following upgrading to iOS7 I lost all sound for my 4s except for the ring when someone calls. I can't listen to music, I don't get text or email notifications. I have tried a wipe and reinstall, I've tried hard rebooting, I tried erasing all of my music and reinstalling it, I checked my Do Not Disturb, and I tried the AssistiveTouch mute button. Nothing. I can't even play music through bluetooth or headphones. Can anyone help please as its driving me mad!

    I experience this problem too. I am using iPhone4 and just upgrade it to iOS7. And now I can not make outgoing call. I checked all the setting, and nothing wrong. I even replaced my sim card with the new one, still can not help.
    I read this link
    https://discussions.apple.com/thread/5322252
    and I try dial *#31#, it help, but not permanent solution.

  • HT4623 After IOS 7 update, my email screen is blank white.  Although I hear my email notifications, I cannot access them.  I have done a hard reboot and reset settings with no success.  Any suggestions?

    After updating ipad2 to IOS7,  my email screen is blank white.  I can hear email notifications.  I have done hard reboot, powered on and off plus reset setting to default with no success.  Any suggestions?

    Hi redhuggybear84010,
    Welcome to the Support Communities!
    The first thing I would suggest is to close all of your open apps, restart, and reset your iPhone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    iPhone, iPad, iPod touch: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, Reset All Settings on the iPhone.  This information can be found in the iPhone User Guide:
    Reset iPhone settings - iPhone
    http://help.apple.com/iphone/7/#/iph7a2a9399b
    Reset iPhone settings. Go to Settings > General > Reset, then choose
    Reset All Settings: All your preferences and settings are reset.
    If the issue still persists, follow the troubleshooting steps below:
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Cheers,
    - Judy

  • Power failure. Can't get Adobe Digital Edition.

    How can I restore my Adobe Digital Edition? I had a power failure and now it's not responding.  Thank in advance for the help.

    Here is what computer (Windows Vista) says when I try to run the program.  "Adobe digital editions has stopped working. A problem caused the program to stop working correctly. windows will close the program and notify you if a solution is available"
    Date: Sat, 9 Feb 2013 20:59:06 -0800
    From: [email protected]
    To: [email protected]
    Subject: can't get adobe digital editions to run
        Re: can't get adobe digital editions to run
        created by Pat Willener in Adobe Reader - View the full discussion
    1daisy wrote: windows can't run itThat does not sound like an error message Windows would issue; please provide the exact error message you are getting. 
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5061535#5061535
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5061535#5061535
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5061535#5061535. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • A UPS model that works with Mac Native software to do a graceful shutdown and automatic restart during a power failure.

    I've tried 3 UPS's (2 APC and one TripLite) that state they are OSX compatible, however, they do not fully respond to the native osx setting in (system Preferences/ Energy Saver/ UPS/Start up automatically after a power failure). This is what happens:
    During a power outage, the OS does a graceful shutdown, but does not reboot when power is restored. 
    Apparently, the UPS is not notified to turn off during the shut down process. The power (on-Off-On) cycle is required by the mac to restart.
    Trip lite tech support says they have software that works with Windows and linux to do this, but not mac.
    I've tried two older APC UPS's, One Smart UPS1500 and a Back-UPS 1500 with the same result on two different servers and one iMac.
    At this point I'm looking for a make and model of a UPS that does work. If anyone can verify a make and model that actually does this, I'd greatly appreciate it.
    Its a simple test, just pull the plug on your UPS, wait for the system to shut down, and then plug the UPS back in. The system should reboot.

    Many of the CyberPower UPS units are compatible. Checkout the home solutions on this page: http://www.cyberpowersystems.com/products/ups-systems.html

  • Making checkbox selections/options visible on the request details and email notification details -FIM 2010 R2

    How do I make the checkbox selections made by users in FIM RCDC visible on the email notifications and on the request details on the request in the portal?
    Phina

    Congrats to Wim on a great article!
     Forefront Identity Manager Technical Guru - October 2014  
    Wim Beck
    Event Driven Scheduling of Forefront Identity Manager (FIM) using a Windows Service
    Ed Price: "Fantastic job on formatting, the code, and all the explanations! The TOC and References are a nice touch!"
    PG: "Nice innovative solution, that is a nice add-on to existing solutions. " 
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

Maybe you are looking for

  • RESET APPLE TV TO FACTORY SETTINGS

    My ATV 1 is asking for the resolution for the tv I am usng now. Ehat do I choose? This is an oldertv, but it is notletting ATV do anything. Should I reset the ATV1?

  • How to open a document out side the .war file

    Hi all, I have initially stored a document outside the WEB-INF in the .war file to retrieve it from a jsp file of the same war file. But now the file has been stored at a location on the same server and outside the .war file. how can I retrieve the f

  • Get rid of the carriage return

    Hello, I have a Note column, the column type is CLOB. My assignment is to get rid of the carriage returns in the record set. I tried to use Trim function, however, the carriage returns exist in the middle of the record set, they do not only exist in

  • Linking one captivate to another

    Using Captivate 3, I am trying to link 2 Captivate presentations. The theory is that the user should click on a transparent button in one presentation and be taken to another very short presentation. I can link .doc and .pdf documents with no problem

  • When starting up iPhone 4S, searching for service for 2 mins

    When I reboot or start up my iPhone 4S.  It says searching, for about 2 mins then AT&T 3G comes on after the LONG wait.  ANyone else experiencing this?