Discussion:
Can I threshold the ratio of two datasources? (ver 3.2.1
Mike McDonough
2012-02-09 20:27:34 UTC
Permalink
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]
jmp242
2012-02-09 20:39:41 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: Can I threshold the ratio of two datasources? (ver 3.2.1"

To view the discussion, visit: http://community.zenoss.org/message/64441#64441

--------------------------------------------------------------
You can try using the formula datasource zenpack. However, note it has performance implications so use sparingly.

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64441#64441]

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]
Mike McDonough
2012-02-09 21:12:07 UTC
Permalink
Mike McDonough [http://community.zenoss.org/people/mikemcdonough] created the discussion

"Re: Can I threshold the ratio of two datasources? (ver 3.2.1"

To view the discussion, visit: http://community.zenoss.org/message/64443#64443

--------------------------------------------------------------
I'll check it out. Thanks
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64443#64443]

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]
Mike McDonough
2012-02-10 20:06:55 UTC
Permalink
Mike McDonough [http://community.zenoss.org/people/mikemcdonough] created the discussion

"Re: Can I threshold the ratio of two datasources? (ver 3.2.1"

To view the discussion, visit: http://community.zenoss.org/message/64479#64479

--------------------------------------------------------------
That looks like it will do the trick. Hopefully Ryan will get some time to daemonize it and reduce the CPU load.

Thanks
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/64479#64479]

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]
Loading...