Mike McDonough
2012-02-09 20:27:34 UTC
Mike McDonough [http://community.zenoss.org/people/mikemcdonough] created the discussion
"Can I threshold the ratio of two datasources? (ver 3.2.1"
To view the discussion, visit: http://community.zenoss.org/message/64440#64440
--------------------------------------------------------------
(Running: Zenoss, version 3.2.1 - CentOS 5.6 - Dell PowerEdge 1950)
I have a situation where I need to create an event when the ratio of two datasources falls below a set value.
So in this case, I'm using Allen Sanabria's Netscaler python script to collect data on a virtual server bound to a cluster of web servers. I've created the "Monitoring Template" (/Devices/Netscaler/VirtualServers), added a "Data Source" and "Command Template" to run the script, added datapoints (tothits, hitsrate, requestrate, ect...), as well as graphs, and thresholds.
Everything is working as expected.
The fly in the ointment came when an increase in visits exposed a bug in our web server codebase. If I had monitoring the ratio of responses verses requests, I would have had an indicator that trouble was afoot on our web farm about 30 minutes before everyone else.
Other then creating a script that employs RRDTool to query the $ZENHOME/perf/Devices/{host}/{datasource}.{datapoint}.rrd files and use is as a new datasource, I can't figure out how to get Zenoss to event on this type of condition. Any Ideas?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64440#64440]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Can I threshold the ratio of two datasources? (ver 3.2.1"
To view the discussion, visit: http://community.zenoss.org/message/64440#64440
--------------------------------------------------------------
(Running: Zenoss, version 3.2.1 - CentOS 5.6 - Dell PowerEdge 1950)
I have a situation where I need to create an event when the ratio of two datasources falls below a set value.
So in this case, I'm using Allen Sanabria's Netscaler python script to collect data on a virtual server bound to a cluster of web servers. I've created the "Monitoring Template" (/Devices/Netscaler/VirtualServers), added a "Data Source" and "Command Template" to run the script, added datapoints (tothits, hitsrate, requestrate, ect...), as well as graphs, and thresholds.
Everything is working as expected.
The fly in the ointment came when an increase in visits exposed a bug in our web server codebase. If I had monitoring the ratio of responses verses requests, I would have had an indicator that trouble was afoot on our web farm about 30 minutes before everyone else.
Other then creating a script that employs RRDTool to query the $ZENHOME/perf/Devices/{host}/{datasource}.{datapoint}.rrd files and use is as a new datasource, I can't figure out how to get Zenoss to event on this type of condition. Any Ideas?
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64440#64440]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]