LinuxMCE Forums
May 20, 2013, 09:22:25 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: diskspacemonitor.sh  (Read 671 times)
skeptic
Addicted
*
Posts: 615


View Profile
« on: February 26, 2008, 06:48:07 pm »

Why is this running every 3 minutes, and other than creating an e-mail status of drives does it actually do anything?
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #1 on: February 26, 2008, 06:50:12 pm »

it is what updates the database with the disk space information for each disk currently under LinuxMCE control. It must be there so that LinuxMCE can dynamically decide which disk to store content to.

-Thom
Logged
Zaerc
Alumni
LinuxMCE God
*
Posts: 2256


Department of Redundancy Department.


View Profile
« Reply #2 on: February 26, 2008, 06:50:43 pm »

Just guessing here, but probably to keep an eye on how much space there is left on your drives.  The system will start complaining if there is only little available.
Logged

"Change is inevitable. Progress is optional."
-- Anonymous

skeptic
Addicted
*
Posts: 615


View Profile
« Reply #3 on: February 26, 2008, 07:27:18 pm »

Is it intended to actually send an e-mail every 3 minutes, or is it doing that because it found a problem?  In my case, it's detecting some device as being offline, and another drive with 202GB free:

SELECT PK_Device, Description FROM Device WHERE FK_DeviceTemplate IN (1790, 1769, 1768, 1854, 1851, 1849)
1       02/26/08 11:24:01       DiskSpaceMonitor.sh (server)     [1;00mFilesystem ( /mnt/device/29 ) is Offline [1;00m
1       02/26/08 11:24:01       DiskSpaceMonitor.sh (server)     [1;00mFilesystem ( /mnt/device/30 ) has 202841 MB free [1;00m

Logged
skeptic
Addicted
*
Posts: 615


View Profile
« Reply #4 on: February 26, 2008, 08:24:15 pm »

I can't win for losing.  I removed both of those devices from linuxMCE and formatted a drive that was in LVM format from pre-kubuntu install, and thigs are no better.  Now I'm getting:

SELECT PK_Device, Description FROM Device WHERE FK_DeviceTemplate IN (1790, 1769, 1768, 1854, 1851, 1849)

every 3 minutes with no clue where to start.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!