Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ftigges-comdev opened this issue May 17, 2023 · 4 comments
Assignees
Labels
bug Something isn't working can not reproduce

Comments

@ftigges-comdev
Copy link

ftigges-comdev commented May 17, 2023

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

@chriscareycode
Copy link
Owner

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 chriscareycode added bug Something isn't working can not reproduce labels May 29, 2023
@ftigges-comdev
Copy link
Author

Hi, the Nagios version is shipped with opensuse.

And yes I am using "cgi bin mode".

Thanks for your time and best regards

Florian

@chriscareycode
Copy link
Owner

Fix released in 0.9.0. please test and let me know

@ftigges-comdev
Copy link
Author

v0.9 works like a charm.

Thank you for your efforts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can not reproduce
Projects
None yet
Development

No branches or pull requests

2 participants