You can download the script here..
http://www.linuxdynasty.org/check-esx-datastores-using-python-and-cim.html

Code:
        example below...
        python check_datastore.py -u "http://esxhost"; -a "login passwd" --d 
"Esxtestvol2" -w 60 -c 73 -m GB
        Warning Esxtestvol2 189GB Avail 62% used |avail=189

        python check_datastore.py -u "http://esxhost"; -a "login passwd" --d 
"Esxtestvol2" -w 70 -c 85 -m MB
        OK Esxtestvol2 194558MB Avail 61% used |avail=194558

        python check_datastore.py -u "http://esxhost"; -a "login passwd" --d 
"ISO" -w 10 -c 21 -m KB
        Critical ISO 41867542528KB Avail 21% used |avail=41867542528

        python check_datastore.py -u "http://esxhost"; -a "login passwd" --d 
"Esxtestvol2" -w 70 -c 85
        OK Esxtestvol2 204008849408bytes Avail 61% used |avail=204008849408

        -u, --url       This is the URL you will use to connect to the ESX 
server, "http://esxhost";
        -a, --auth      This is the Login and Passwd you will use, "login 
passwd"
        -d, --dstore    This is the DataStore aka VMFS to check, "Esxtestvol2"
        -w, --warn      This is the warning threshold that you will set, 70
        -c, --crit      This is the critical threshold that you will set, 85
        -m, --metric    This is the metric that you will use, "KB", "MB", "GB", 
The default is Bytes







-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=32647#32647

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to