Skip navigation
1 2 3 ... 6 Previous Next 21695 Views 77 Replies Latest reply: Jan 18, 2012 12:01 PM by Shane Scott RSS
Yasha Zislin Rank: Green Belt 139 posts since
Oct 20, 2011
Currently Being Moderated

Dec 5, 2011 4:10 PM

Error in the graph

I have a weird error when click on graphs for all Windows hosts.

 

pythonThresholdException User-supplied Python expression (here.getTotalBlocks() * .9) for maximum value caused error: ['usedBlocks_usedBlocks']

 

By default when you assign a host to FileSystem template (in our environment it's always Windows for whatever reason), there is one graph for storage usage utilization. It has a formula in the maximum threshold value which is referenced in the error.

 

Any ideas?

 

SNMP is working. I've tested usedBlocks OID.

 

Thank you.

  • jcurry ZenossMaster 1,021 posts since
    Apr 15, 2008
    Currently Being Moderated
    1. Dec 8, 2011 10:10 AM (in response to Yasha Zislin)
    Re: Error in the graph

    A couple of possible things here...

     

    You say "when you assign a host to FileSystem template"...... - the FileSystem template is a COMPONENT template not a device template, so you should not be binding this template manually - it should bind automatically.  If you see FileSystem as a template bound to the device then unbind it. (BTW - what version of Zenoss are you on??).

     

    You have obviously checked the SNMP connectivity to your Windows targets but could you check each of the OIDs that are specified in the FileSystem template.  I've seen some Windows SNMP agents that provide some parts of the file system host resources MIB, but not all the expected data.

     

    Cheers,

    Jane


  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    2. Dec 8, 2011 12:08 PM (in response to jcurry)
    Re: Error in the graph

    Yasha:

     

    Change the threshold to:  ((here.getTotalBlocks() or 1) * .9). This will advert the 'Python experssion' error.

     

    In the /Perf/FileSystem transform add a check for if getTotalBlocks() is None or < some number and to rewrite the event in such case to tell you that the TotalBlocks has not been modeled for that device. This will let you know what devices need their filesystem information remodled/fixed, etc.

     

    Chances are if this value isn't filled its due to a modeler that hasn't run or is malfunctioning.

     

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    4. Dec 12, 2011 10:33 AM (in response to Yasha Zislin)
    Re: Error in the graph

    Yasha:

     

    If you snmpwalk this box does it return the flesystem info?

     

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    6. Dec 12, 2011 10:43 AM (in response to Yasha Zislin)
    Re: Error in the graph

    Yasha:

     

    Can you, as the zenoss user, zenmodel run now -v 10 -d 'your device' and post the result?

     

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    8. Dec 12, 2011 11:34 AM (in response to Yasha Zislin)
    Re: Error in the graph

    Yasha:

     

    Looks like Zenoss cant reach it at all. On the zenoss server as the zenoss user can you smnpwalk -v2c -c 'your community' 'yourdevice ip'?

     

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    10. Dec 12, 2011 11:54 AM (in response to Yasha Zislin)
    Re: Error in the graph

    Yasha:

     

    Thats the problem. You can't have a snmpstring with symbolic characters.

     

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009
    Currently Being Moderated
    13. Dec 12, 2011 12:18 PM (in response to Yasha Zislin)
    Re: Error in the graph

    Yasha:

     

    I don't think theres a way to make zenperfsnmp handle those characters that's easy to implement. I think you're right, Windows doesn't do v3 OOB. The only real option would be to convert all the templates to zencommand datasources, but, this is easier said than done. Is it really not an option to strip out the $?

     

    --Shane

1 2 3 ... 6 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points