Notification email from OSX Root

Discussion in 'Mac OS X Server, Xserve, and Networking' started by zerassar, Oct 29, 2009.

  1. zerassar macrumors newbie

    Joined:
    Aug 25, 2009
    #1
    Hey everyone.

    I get these notification emails from our OSX server regarding disk usage. I want to modify how these notifications are made and where they are sent but I have yet been unable to find the options.

    I have tried RAID admin, server admin, ical and disk util.

    It is addressed from root@servername.companydomain.com not system admin which most of the other email options i have found mention.

    Subject: Disk Full Notification for XServe RAID 1TB on sydneyosxsvr.local (7.91%XServe RAID 1TBfree)

    Body: The volume XServe RAID 1TB on sydneyosxsvr.local is running out of free space.
    It has only 73.66 GB (7.91%XServe RAID 1TB free.


    Google was not much help. How do i check to see if there is a crontab running these checks? They happen at the same time every day. 1:39 PM
     
  2. theinstructor macrumors regular

    theinstructor

    Joined:
    Jul 13, 2007
    #2
    Hmm this is interesting...what version of OS X server are you using? I will look around and see what I can find on my servers.
     
  3. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #3
    My guess is it is one of the periodic scripts, similar to cron. Check /etc/periodic.
     
  4. zerassar thread starter macrumors newbie

    Joined:
    Aug 25, 2009
    #4
    Thanks for the ideas.

    had checked the cron tabs. I am logged in as administrator and there are no crontabs configured. Should I be logged in as root? Like are there different crontabs based on the active logged in account?

    I had also checked out diskspacemonitor. While promising it was configure to send notifications to the address "admin" and the body of the message was not the same.

    I have checked /etc/periodic and came across the following scripts that did not appear to have anything useful:

    100.clean-logs
    110.clean-tmps
    130.clean-msgs
    500.daily
    600.daily.server
    601.daily.server.krb5kdc
    700.daily.server.cyrus

    This is really doing my head in. Have looked what feels like everywhere and have not found any help through google and forums thusfar. And everyday I still get the messages taunting me..... Could it be something hardcoded into the XRAID? As far as I know it is administered from the xserve but I do not have much experience with it.
     
  5. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #5
    It could be. I know some of the array controllers I have used in the past had some intelligence in them. It might be worth a look, but given it is putting in the hostname of the server, I doubt it.

    You can check your entire server for the script:

    Code:
    sudo find / -type f -exec grep -l -i -e 'Disk Full Notification' {} \;
    
     
  6. icrew macrumors member

    icrew

    Joined:
    Feb 18, 2003
    #6
    Found it, I think.

    I have the same thing happening, and did the search suggested above, and got the following results:

    Code:
    mvp-drm:bin mvpadmin$ sudo find / -xdev -type f -exec grep -l -i -e 'Disk Full Notification' {} \;
    Password:
    /private/etc/emond.d/rules/DiskStatus.plist
    /private/etc/emond.d/rules/DiskStatus.plist.previous
    /private/var/log/asl/2010.02.06.asl
    /private/var/log/asl/2010.02.07.asl
    /private/var/log/asl/2010.02.08.asl
    /private/var/log/system.log
    /usr/share/servermgrd/bundles/servermgr_info.bundle/Contents/Resources/DiskStatus.plist
    mvp-drm:bin mvpadmin$ 
    
    /usr/share/servermgrd/bundles/servermgr_info.bundle/Contents/Resources/DiskStatus.plist seems like a bunch of formatting info for the messages that I'm getting.

    The /private/etc/emond.d/rules/DiskStatus.plist and /private/etc/emond.d/rules/DiskStatus.plist.previous files contain the email addresses where the notifications are sent. Looking at this, it's clear that the contents of these two files are being set by the notifications in "Server Monitor." My guess is that it doesn't pick up changes to the configuration from Server Monitor until emond is restarted. (I just did that on my server, so I should be able to let you know tomorrow.)

    Hope this is helpful!
     
  7. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #7
    icrew,

    Thanks for the update. It will be interesting to hear if restarting emond fixed it.
     
  8. yamabushi macrumors 65816

    yamabushi

    Joined:
    Oct 6, 2003
    #8
    Dear Administrator,

    I writing to let you know that the system is all messed up and the users are just making things worse. Please fix me. Thank you.

    Sincerely,

    Root
     
  9. mcprobie macrumors member

    mcprobie

    Joined:
    Nov 16, 2009
    Location:
    Paradise Corrupt
    #9
    Are you guys talking about this ?

    This can be altered in the Workgroup Manager.

    *From the Advanced Server Admin guide provided by Apple.
     

Share This Page