Page 1 of 2

No data to display nonetype object has no attribute text

Posted: Tue Dec 23, 2014 9:14 am
by WillemDH
Hello,

Upgraded to R2.1 and I'm having issues with the capacity planner. "No data to display nonetype object has no attribute text" is shown in each graph.

Grtz

Willem

Re: No data to display nonetype object has no attribute text

Posted: Tue Dec 23, 2014 10:21 am
by slansing
I checked this on two 2.1 servers, upgraded from 2.0, not able to reproduce it yet. Can you provide the output of:

Code: Select all

tail -f /var/log/httpd/error_log
While trying to access a page with those graphs? Then show us what the output is? Thanks!

Re: No data to display nonetype object has no attribute text

Posted: Wed Dec 24, 2014 5:06 am
by WillemDH
Sam,

Nothing to see in the error log.

Grtz

Willem

Re: No data to display nonetype object has no attribute text

Posted: Fri Dec 26, 2014 10:16 am
by scottwilkerson
For clarity is this every graph, or just those for your host checks?

Can you load all the graphs for a specific host and see other items?

Something has me thinking I remember this being part of a specific check adding additional performance metrics, e.g. check_ping or check_icmp

Re: No data to display nonetype object has no attribute text

Posted: Fri Dec 26, 2014 10:21 am
by WillemDH
It's only in the capacity planner graphs of host and services. Other graphs work fine.

Re: No data to display nonetype object has no attribute text

Posted: Fri Dec 26, 2014 12:07 pm
by jomann
Hello Willem,

It looks like what you are seeing is the python backend not able to get both warning/critical values. We confirmed it here and have fixed the component. It'll be in the next release but I've attached it for you to update on your system. You should be able to do it through the web UI.

Re: No data to display nonetype object has no attribute text

Posted: Fri Dec 26, 2014 2:42 pm
by WillemDH
I'm on holiday, so I can only upgrade from 05/01. Or do you recommend updating asap?

Re: No data to display nonetype object has no attribute text

Posted: Fri Dec 26, 2014 2:56 pm
by scottwilkerson
When possible we would recommend upgrading to the just released 2014R2.2 which would include this fix as well as a patch to Nagios Core that could cause a notification to fail if your plugin returned LONGHOSTOUTPUT or LONGSERVICEOUTPUT that contained chars that need to be escaped, e.g. "()

This bug has been around for 9 months but it could cause missed notifications in certain circumstances

Re: No data to display nonetype object has no attribute text

Posted: Mon Dec 29, 2014 3:54 pm
by jomann
It looks like we needed to do a couple more changes to get all the issues with this component resolved so I am giving you a 2.1.8 version of the component.

You may need to extract it into the capacityplanning folder and do a chmod +x on the backend folder... something like

unzip -o /tmp/capacityplanning.zip -d /usr/local/nagiosxi/html/includes/components/
chmod +x -R /usr/local/nagiosxi/html/includes/components/capacityplanning/backend

Re: No data to display nonetype object has no attribute text

Posted: Mon Jan 05, 2015 8:53 am
by WillemDH
Hello,

Just updated our QA and PR to 2.3 and the capacity planner seems to work again. Thread can be closed.

Thanks!!

Grtz

Willem