nagiostv-react icon indicating copy to clipboard operation
nagiostv-react copied to clipboard

archivejson.cgi does not return values unless endtime is a negative value

Open ftigges-comdev opened this issue 1 year ago • 2 comments

Nagios Core 4.4.7 NTV: 0.8.7

This could be an error in this Nagios version.

The alertlist is just empty when sending +0. When sending -0 it works just fine. When sending +1 as endtime there is an error msg: "The requested start time must be before the end time."

Which seems odd.

Solution/Workaround:

In /usr/share/nagios/nagiostv/static/js/main.5ed0ad9f.js change endtime entries.

From concat(t,"&endtime=%2B

to

concat(t,"&endtime=%2D

on both occasions.

Best regards

ftigges-comdev avatar May 17 '23 13:05 ftigges-comdev

Weird bug. I have the same version of Nagios Core and my archivejson.cgi works fine with +0. It also works with -0. I wonder what is different with yours and why its unhappy. I will give this change a try in the next release. You are using "cgi bin" mode and not livestatus mode, correct?

chriscareycode avatar May 29 '23 18:05 chriscareycode

Hi, the Nagios version is shipped with opensuse.

And yes I am using "cgi bin mode".

Thanks for your time and best regards

Florian

ftigges-comdev avatar May 30 '23 07:05 ftigges-comdev

Fix released in 0.9.0. please test and let me know

chriscareycode avatar May 26 '24 18:05 chriscareycode

v0.9 works like a charm.

Thank you for your efforts

ftigges-comdev avatar May 27 '24 07:05 ftigges-comdev