Closed wboerhout closed 1 year ago
Hi Wilm,
Try to open URL in your computer https://nagiosurl/nagios/nath_status.php and make sure you are getting JSON output.
Also make sure URL ends with / same as https://nagiosurl/nagios/
On Wed, Jul 11, 2018 at 10:11 AM Wilm Boerhout notifications@github.com wrote:
Nagios® Core™ 4.2.4, IOS 11 IOS 11.4.1
nath_status.php returns no data in browser: { "hosts": [ ], "services": [ ] }
and in app, all zeros on dashboard. Used to work fine until recently.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/asuknath/Nagios-Status-JSON/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdgqYJq73KkilMiQCorgoHloPHwkXOiks5uFgd0gaJpZM4VLNyZ .
Hmm. That is what I did, and the output is show in my post above. Now when I run the same command in the same browser today, it works fine: a long list of JSON output in the browser, and the app shows the expected number of services and hosts with their status.
I do not like it when the behaviour changes without reason, even if it is in the right direction as happened today. It is a problem in the interaction of the script with Nagios, since app and browser behaviour are identical.
Under what circumstances would the php script return the empty set as shown above? Is there any way to debug the script?
Thanks for the effort, it really is a helpful app/script.
I found same matter. Check httpd / general log messages, if the status.dat is readable or you found some fopen/fclose errors.
By end of this month I will release a stable version with HA infrastructure.
On Fri, May 10, 2019 at 8:23 AM Fabrizio A. notifications@github.com wrote:
I found same matter. Check httpd / general log messages, if the status.dat is readable or you found some fopen/fclose errors.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/asuknath/Nagios-Status-JSON/issues/12#issuecomment-491270003, or mute the thread https://github.com/notifications/unsubscribe-auth/AE3WBKMNDJCQGTYZ3HHCBG3PUVSK3ANCNFSM4FJM3SMQ .
project is no longer relevant for me. sorry.
Nagios® Core™ 4.2.4, IOS 11.4.1
nath_status.php returns no data in browser:
{ "hosts": [ ], "services": [ ] }
and in app, all zeros on dashboard. Used to work fine until recently.