Page 1 of 2

Trends Broken in 4.1.1

Posted: Fri Sep 04, 2015 6:16 am
by iscb2015
There is a forum item which discusses a problem with the Trends display in 4.1.0rc1 - that item is closed with the comments that a fix has been included in the 4.1.1 release.

I have built and installed the 4.1.1 release and am getting the exact same issue with the Trends (and Alert Histogram) functions - ie a blank screen with just a small "three bar" icon displayed.

Any suggestions ?

I have Nagios built and installed on Solaris 11.2 (SPARC) everything else seems to be working - except these two functions.

Ian

Re: Trends Broken in 4.1.1

Posted: Fri Sep 04, 2015 12:45 pm
by jdalrymple
Probably better start looking in your httpd error and access logs. I can confirm trends works as expected in 4.1.1 on my CentOS 6.5 box.

Re: Trends Broken in 4.1.1

Posted: Mon Sep 07, 2015 2:17 am
by iscb2015
Should have said;

The access log shows that trends.html gets called;

[04/Sep/2015:11:15:55 +0100] "GET /nagios/trends.html?host=mal-ssapp01&t1=1441275219&t2=1441361619&includesoftstates=no&assumestateretention=yes&assumeinitialstates=yes&assumestatesduringnotrunning=yes&initialassumedhoststate=0&backtrack=4 HTTP/1.1" 200 2990

There are no messages in the error log for the 4th September.

Any suggestions on how to run with some sort of debug to try to figure out what is happening ?

ldd on the trends.cgi binary shows that all the libraries it expects are found (all from the Solaris 11.2 install).

Ian

Re: Trends Broken in 4.1.1

Posted: Mon Sep 07, 2015 9:29 am
by iscb2015
This seems to be an issue with the trends.html file rather than the CGI binary.

If I select the Legacy Trends option from the wed page it asks for various information and then produces the expected output.

Equally if I call the trends.cgi binary from the browser and pass the same arguments to it as are sent to trends.html it also works.

I have tried this on IE 9 and 11 - both exhibit the same issue.

Any suggestions ?

Ian

Re: Trends Broken in 4.1.1

Posted: Tue Sep 08, 2015 9:04 am
by iscb2015
In the cgiutils.h file is what seems to be a check for LEGACY_GRAPHICAL_CGI which changes the procedures produced - the question is will this revert to the Nagios 3.x version of the web interface for the graphical displays which call trends.cgi rather than trends.html which seems to be broken ?

If so how to I set this variable ? [I'm not a C programmer so I'm not aware of how these things work].

Ian

Re: Trends Broken in 4.1.1

Posted: Tue Sep 08, 2015 4:42 pm
by tmcdonald
Have you tried this on a non-IE browser? Try with Chrome or Firefox, if it still does not work they have some developer utilities we might be able to leverage to troubleshoot further.

Re: Trends Broken in 4.1.1

Posted: Thu Sep 17, 2015 6:31 am
by iscb2015
Apologies for the slow response - was on holiday.

IE is the site standard (ie its a Microsoft product) so even if it did work with an alternate browser we wouldn't actually be any further forward (from our prespective).
Someone did try it with the Edge browser in Windows 10 and it seemed to work there (thats a dev build so unlikely to be used widely in the near future).

I did figure out a way to get the LEGACY_GRAPHICAL_CGI defined and after rebuilding the interface seems to be working again.

Ian

Re: Trends Broken in 4.1.1

Posted: Thu Sep 17, 2015 3:48 pm
by hsmith
Hi Ian,

Are you on a non-english Windows installation by chance? There were some updates pushed out today that addressed a couple of language problems.

Re: Trends Broken in 4.1.1

Posted: Tue Oct 06, 2015 8:13 am
by iscb2015
Apologies for the slow reply - now that I've found a workaround I've not been checking the board regularly.

I can confirm that I am use an English language version of IE / Windows.

Cheers

Ian

Re: Trends Broken in 4.1.1

Posted: Tue Oct 06, 2015 5:02 pm
by tmcdonald
I think we can put this one to rest for now. If you don't mind, since you have it working may we close this thread?