thomas
2011-11-30 11:07:06 UTC
thomas [http://community.zenoss.org/people/thomas] created the discussion
"Avoiding the User-supplied Python expression error"
To view the discussion, visit: http://community.zenoss.org/message/62915#62915
--------------------------------------------------------------
I have a mysql template that uses an gathered RRDValue to dynamically calculate the threshold, however sometimes (probably because the template fails to gather data) I get this error:
User-supplied Python expression (here.getRRDValue('CheckMySql_Max_connections') * 0.9) for maximum value caused error: ['CheckMySql_Threads_connected']
The threshold is defined as follows:
here.getRRDValue('CheckMySql_Max_connections') * 0.8
I would like to know if it is possible to make a threshold that still does this, but if the here.getRRDvalue fails, then default to ie. 100.
Regards
Thomas
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62915#62915]
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]
"Avoiding the User-supplied Python expression error"
To view the discussion, visit: http://community.zenoss.org/message/62915#62915
--------------------------------------------------------------
I have a mysql template that uses an gathered RRDValue to dynamically calculate the threshold, however sometimes (probably because the template fails to gather data) I get this error:
User-supplied Python expression (here.getRRDValue('CheckMySql_Max_connections') * 0.9) for maximum value caused error: ['CheckMySql_Threads_connected']
The threshold is defined as follows:
here.getRRDValue('CheckMySql_Max_connections') * 0.8
I would like to know if it is possible to make a threshold that still does this, but if the here.getRRDvalue fails, then default to ie. 100.
Regards
Thomas
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/62915#62915]
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]