Announcement

Collapse
No announcement yet.

Jon00 Disk Monitor for Homeseer 3 & Homeseer 4

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Jon00 Disk Monitor for Homeseer 3 & Homeseer 4

    **** Compatible with both Windows & Linux ***

    This script enables you to monitor the disk capacity for all hard drives on your Homeseer PC or server. Virtual devices are automatically created displaying a horizontal bar chart with the free, used and total capacity displayed in Gigabytes. The chart will change from cyan to red if there is less than 10% space remaining on the drive. The remaining free space, free space % or used space (configurable) is also stored in the device value which can be used for triggering events for low disk space etc. It can also be optionally logged to individual log files each time the script is run.

    If you use my Remote Computer Control and Network Monitor Package, it can also display remote drive capacity wherever you have remote clients installed (Windows only).

    As always, it is available on my site. Click on my banner below.

    Any issues, please let me know.

    Click image for larger version  Name:	Capture.PNG Views:	68 Size:	148.0 KB ID:	1431056
    Attached Files
    Jon


    #2
    Hi Jon,

    I was trying your script but with i get a error.


    Aug 14 15:04:29 Error Compiling script C: \ HomeSeer3 \ scripts \ Jon00DiskMonHS3.vben: The Management Object type is not defined.
    Aug 14 15:04:29 Error Compiling script C: \ HomeSeer3 \ scripts \ Jon00DiskMonHS3.vben: The namespace or type in the System.Management Imports statement does not contain any public member or can not be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name does not use aliases ...




    Ed

    Comment


      #3
      Oops, something I forgot to put in the docs:

      Open up Settings.ini and add this to the end of your ScriptingReferences entry:

      ,System.Management;System.Management.dll

      Edit: The docs have now been updated!
      Last edited by jon00; August 14, 2014, 01:07 PM.
      Jon

      Comment


        #4
        Hi Jon,



        Originally posted by ESSCHENK View Post


        Aug 14 15:04:29 Error Compiling script C: \ HomeSeer3 \ scripts \ Jon00DiskMonHS3.vben: The Management Object type is not defined.
        Aug 14 15:04:29 Error Compiling script C: \ HomeSeer3 \ scripts \ Jon00DiskMonHS3.vben: The namespace or type in the System.Management Imports statement does not contain any public member or can not be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name does not use aliases ...




        Ed

        Like ESSCHENK I too am receiving the error above.
        I have added the ;System.Management;System.Management.dll
        to the settings.ini and restarted HS but still no joy.

        ScriptingReferences=System.Web;System.web.dll;System.Managem ent;System.Management.dll

        Any help appreciated.

        FWIW my HS is running on the D Drive.


        Peter

        Comment


          #5
          My mistake with the semicolon, try:

          PHP Code:
          ScriptingReferences=System.Web;System.web.dll,System.Management;System.Management.dll 
          Jon

          Comment


            #6
            Hello Jon,

            Now all is working Fine

            Thanks for this handy script


            Ed

            Comment


              #7
              Brilliant - working great.

              Thanks Jon,

              Working great, green backs on there way.

              Peter

              Comment


                #8
                Thanks very much guys!
                Jon

                Comment


                  #9
                  Originally posted by Pervez2602 View Post
                  Thanks Jon,

                  Working great, green backs on there way.

                  Peter

                  Paypal's going to make some money on FX commission if one guy in the UK sends greenbacks to another guy in the UK.
                  cheeryfool

                  Comment


                    #10
                    Jon

                    Can this script have any capability to detect a HD problem? I have a RAID1 setup in my HS server and I was wondering if this could be possible or maybe a future feature option to detect this type of situation.
                    Hector
                    ____________________________________
                    Win.2003 OS, HS3
                    BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                    BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                    MyTrigger,ACRF2,W800,Zwave
                    AP800,Honeywell Stat

                    Comment


                      #11
                      Bump.
                      Hector
                      ____________________________________
                      Win.2003 OS, HS3
                      BLDSC,BLstat,BLRadar,BLRamdom,BLOccupied
                      BLups,BLrain8,HSTouch,Ultrajones Weatherbug,
                      MyTrigger,ACRF2,W800,Zwave
                      AP800,Honeywell Stat

                      Comment


                        #12
                        Sorry missed this - No it is not designed for that.

                        You could look at http://winraidmonitor.sourceforge.net/ or http://www.acronis.com/en-us/persona...-drive-health/ if you are worried about Raid failure.
                        Jon

                        Comment


                          #13
                          Hi Jon,

                          Just trying Drive Monitor tonight and getting the error below.

                          Code:
                          Aug-29 9:53:38 PM	 	Error 3	Running script C:\Program Files\HomeSeer HS3\scripts\Jon00DiskMonHS3.vben :Object reference not set to an instance of an object.->Does entry point Network exist in script? at A.c17b105f989efe61e5979e67bec1ef734.cffd66cb0782c50126727e3fa75582d7a()
                          My settings.ini file contains the lines below and I've restarted HS after I added that line.

                          Code:
                          [settings]
                          ScriptingReferences=System.Management;System.Management.dll
                          I'm running HS3 on XP. Any ideas what could be wrong?

                          Thanks
                          Al
                          HS 4.2.8.0: 2134 Devices 1252 Events
                          Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                          Comment


                            #14
                            I reckon you used an existing event.

                            Go back to the event and check the 'sub or function' and 'parameters' fields for the script are empty.
                            Jon

                            Comment


                              #15
                              Originally posted by jon00 View Post
                              I reckon you used an existing event.

                              Go back to the event and check the 'sub or function' and 'parameters' fields for the script are empty.
                              Click image for larger version

Name:	doh.jpg
Views:	1
Size:	4.2 KB
ID:	1174751

                              Yes, that' what it was. I actually created a copy of the event to run your network monitoring script, and then changed the script, but forgot to empty the sub field. Kind of funny, by trying to save a few seconds of time, I probably spent 30 minutes on troubleshooting. I had assumed it had something to do with the scripting references, so during my troubleshooting did not look at the event. In hind sight the error seems kind of obvious.

                              Script works great and thanks for the quick response.

                              Cheers
                              Al
                              HS 4.2.8.0: 2134 Devices 1252 Events
                              Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                              Comment

                              Working...
                              X