Trends Broken in 4.1.1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
iscb2015
Posts: 13
Joined: Fri Aug 28, 2015 2:35 am

Trends Broken in 4.1.1

Post 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
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Trends Broken in 4.1.1

Post 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.
iscb2015
Posts: 13
Joined: Fri Aug 28, 2015 2:35 am

Re: Trends Broken in 4.1.1

Post 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
iscb2015
Posts: 13
Joined: Fri Aug 28, 2015 2:35 am

Re: Trends Broken in 4.1.1

Post 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
iscb2015
Posts: 13
Joined: Fri Aug 28, 2015 2:35 am

Re: Trends Broken in 4.1.1

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Trends Broken in 4.1.1

Post 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.
Former Nagios employee
iscb2015
Posts: 13
Joined: Fri Aug 28, 2015 2:35 am

Re: Trends Broken in 4.1.1

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Trends Broken in 4.1.1

Post 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.
Former Nagios Employee.
me.
iscb2015
Posts: 13
Joined: Fri Aug 28, 2015 2:35 am

Re: Trends Broken in 4.1.1

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Trends Broken in 4.1.1

Post 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?
Former Nagios employee
Locked