Subject: |
RE: Extend Monitoring Templates in child device classes |
Author: |
Adam McCurdy |
Posted: |
2019-04-04 23:21 |
How different are the datasources/thresholds/graphs? You may be able to get away with using the same template but a few cProperties that you pull into your datasource and threshold. For example, if you're doing something like:
script.sh <categoryA-arguments>
and
script.sh <categoryB-arguments>
you could do
script.sh ${here/cCategoryArguments}
instead, and create that custom property and override it locally for each device class. When zenhub builds the configuration for the collector, it'll resolve those properties through zope acquisition and grab the closest copy of them up the tree (either at the device level or the device class level, wherever it's set).
You could do the same with a threshold if it's on the same datapoint; just create
cCategoryThreshold
or whatever you want to call it, then use
${here/cCategoryThreshold}
in your threshold value.
------------------------------
Adam McCurdy
Manager, Customer Enablement
Zenoss
------------------------------
Subject: |
RE: Extend Monitoring Templates in child device classes |
Author: |
Bharat Kumar Kobagana |
Posted: |
2019-04-05 05:51 |
Hi Adam,
Thanks for quick response. Above information is partly suitable to my requirement.
But in my requirement, the difference is not big huge (Not only a threshold value change). Category A and B have
difference in data sources, data points, etc.
------------------------------
Bharat Kumar Kobagana
Visakhapatnam
------------------------------
Subject: |
RE: Extend Monitoring Templates in child device classes |
Author: |
Adam McCurdy |
Posted: |
2019-04-05 16:44 |
I'm not sure how you'd be able to consolidate them if they're extremely different. It sounds like you need different templates.
------------------------------
Adam McCurdy
Manager, Customer Enablement
Zenoss
------------------------------
Subject: |
RE: Extend Monitoring Templates in child device classes |
Author: |
Bharat Kumar Kobagana |
Posted: |
2019-04-06 08:48 |
Yeah sure. Will create separate templates. Thanks for the provided solution.
------------------------------
Bharat Kumar Kobagana
Visakhapatnam
------------------------------