TECHZEN Zenoss User Community ARCHIVE  

Creating seperate disk usage thresholds for individual server

Subject: Creating seperate disk usage thresholds for individual server
Author: [Not Specified]
Posted: 2015-01-06 17:59

Hi,
I am new to Zenoss, and have finally managed to get it set up (v4.2.5) and monitoring some basic things on a bunch of windows servers using WinRM/WMI, mostly using the default settings. So the default file system monitoring template looks to be defined in Devices->Server->File System. And there is a threshold set for %90 used space. Now I can create other thresholds here, but how do I create a separate threshold for just one server, like if theres one server thats always at 97% used space, how do I configure it so this particular one only has a threshold of 98% used space

I tried going into this server device itself, and thought it would make sense to do Override Template Here, however I dont see the File System template there to even overwrite it. All I see is Active Directory, Device, and IIS, none of which have the file system data sources in there. I do see the actual data for it (like stats & graphs, etc) under Components->File Systems, but I dont see a way to actually configure the monitoring of those components at a local level.

What am I doing wrong Any help would be greatly appreciated.

Thanks in advance!
JR



Subject: http://www.zenoss.org/forum
Author: Jan Garaj
Posted: 2015-01-07 02:35

http://www.zenoss.org/forum/2551
http://www.zenoss.org/forum/3476

Let me know if you have still problem.

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: You validate/edit - http:/
Author: Jan Garaj
Posted: 2015-01-07 03:32

You validate/edit - http://wiki.zenoss.org/Filesystem_thresholds

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: Thank you Jan! That 2nd post
Author: [Not Specified]
Posted: 2015-01-07 10:23

Thank you Jan! That 2nd post helped a lot. Not sure how I missed that documentation on my own. Now I see it's easy to click on the file system in the device and click drop down to display template and create local template for each file system.

One more question please. My current thresholds use a percentage of disk space. For example, the "10% free space" threshold uses the FreeMegabytes_FreeMegabytes data point, and the Min Value is "here.totalBlocks * here.blockSize / 1024 / 1024 * .1". But what if I want to use actual GB free, and not a percentage Like if I wanted to set min threshold value at 50GB, can I do that and if so what string would I enter for Min Value

Thanks again!



Subject: In your Win case:
Author: Jan Garaj
Posted: 2015-01-07 13:47

In your Win case:

Threshold: Less than 50GB is free
Selected metric: FreeMegabytes_FreeMegabyte
MInimum value: 51200

51200 = 51200MB = 50GB

Try it and let us know if it's OK.

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: Haha, that was way too simple
Author: [Not Specified]
Posted: 2015-01-07 17:25

Haha, that was way too simple. For some reason I thought that field required using some variables instead of simply inputting the exact value I wanted. Thanks again Jan!



Subject: Change filesystem threshold from percentage to Free GBs
Author: [Not Specified]
Posted: 2016-08-16 22:40

HI,

I am using zenoss 3.2.5 along with SNMP file system monitoring, right now i am getting disk space 90% threshold base alerts. What i need to do to change the threshold from percentage to 10 GB remaining space. The just one datapoint is available here is usedblocks_usedblocks.

Regards,

Arshad



Subject: RE: Change filesystem threshold from percentage to Free GBs
Author: Jane Curry
Posted: 2017-06-14 05:29

I have just done the exact same thing on Zenoss 5 using the CalculatedPerformance ZenPack.  Just not sure whether this, and the prerequisite Python Collector ZenPack, are available / work with Zenoss 3.2.5.

As you say, the only datapoint you have is usedblocks (and that's all that the Host Resources SNMP MIB will easily provide).  You also need to know the blocksize for the filesystem if you want to provide thresholds in MB or GB.  The HRFileSystem modeler does gather blocksize for you on each filesystem object, but you don;t have a way to do arithmetic with your datapoint value in a threshold.

The CalculatedPerformance ZenPack lets you create new datapoints using combinations of an object's attributes, methods and existing datapoints - both for a device object and for a component object.  You will need to check your standard Zenoss code to ensure the following applies to your older code, but look in $ZENHOME/Products/ZenModel/FileSystem.py and you should find a FileSystem object has attributes for blockSize and totalBlocks.  It should also have methods for getTotalBlocks(), availBytes() and usedBytes()  (among others).

Create a CalculatedPerformance datasource in an appropriate FileSystem template and use the expression here.availBytes - "here" gives you access to the FileSystem object instance and availBytes is the method - note no parentheses even though it is a method.
Once you have your datapoint, you can then create thresholds on it like any other datapoint so I have a min value of 1024 * 1024 * 1024 for a 1BG minimum.
Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


< Previous
Triggers With Graphs Data
  Next
add device without modeling?
>