Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zerassar

macrumors newbie
Original poster
Aug 25, 2009
12
0
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
 

theinstructor

macrumors regular
Jul 13, 2007
190
143
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.
 

belvdr

macrumors 603
Aug 15, 2005
5,945
1,372
My guess is it is one of the periodic scripts, similar to cron. Check /etc/periodic.
 

zerassar

macrumors newbie
Original poster
Aug 25, 2009
12
0
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.
 

belvdr

macrumors 603
Aug 15, 2005
5,945
1,372
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' {} \;
 

icrew

macrumors member
Feb 18, 2003
75
28
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!
 

belvdr

macrumors 603
Aug 15, 2005
5,945
1,372
icrew,

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

yamabushi

macrumors 65816
Oct 6, 2003
1,009
1
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
 

mcprobie

macrumors member
Nov 16, 2009
45
0
Paradise Corrupt
Are you guys talking about this ?

diskspacemonitor. This command lets you automate the process of monitoring disk space usage.

When the amount of free disk space drops below the level you specify, diskspacemonitor executes shell scripts that send you a notifcation. This command defnes two action levels:

Alert—Sends you a warning message when disk space usage reaches 75%.

Recover—Archives rarely used fles and deletes unneeded fles when disk space
usage reaches 85%. *

This can be altered in the Workgroup Manager.

*From the Advanced Server Admin guide provided by Apple.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.