Author Topic: diskspacemonitor.sh  (Read 751 times)

skeptic

  • Addicted
  • *
  • Posts: 615
    • View Profile
diskspacemonitor.sh
« 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?

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5496
  • DOES work for LinuxMCE.
    • View Profile
Re: diskspacemonitor.sh
« 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

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: diskspacemonitor.sh
« 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.
"Change is inevitable. Progress is optional."
-- Anonymous


skeptic

  • Addicted
  • *
  • Posts: 615
    • View Profile
Re: diskspacemonitor.sh
« 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


skeptic

  • Addicted
  • *
  • Posts: 615
    • View Profile
Re: diskspacemonitor.sh
« 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.