undefined method []' for nil:NilClass (NoMethodError)

Chris Angelico rosuav at gmail.com
Mon Aug 5 18:29:28 EDT 2013


On Mon, Aug 5, 2013 at 11:24 PM,  <thcerbla.netsrot at googlemail.com> wrote:
> I have this script to monitor solr4 with munin.
>
> But I get an error and I hove no idea what's the problem.
>
> Error:
> /etc/munin/plugins/solr4_multicore_avgRequestsPerSecond:60: undefined method []' for nil:NilClass (NoMethodError)
>
> cores_url = "http://#{SOLR_HOST}:#{SOLR_PORT}/solr/admin/cores?action=STATUS&wt=ruby"


Your first problem, I think, is that that's not Python code. My
crystal ball suggests it's probably Ruby.

ChrisA



More information about the Python-list mailing list