asuknath / Nagios-Status-JSON

Nagios Status JSON
26 stars 19 forks source link

iOs app says "Invalid API" #6

Open rockbert77 opened 6 years ago

rockbert77 commented 6 years ago

I´ve installed the nath_status.php and updated it accordingly so that i finds the status.dat file. I can access and see the https://nagios.server.com/nagios/nath_status.php file in a browser.

But the iOs app says:

"Invalid API". "Nagios API is invalid. Upload nath_status.php to your Nagios web root folder... "

etc etc.

But I´ve done all that and I´ve also configured the app correctly regarding the url (with a / at the end).

Nagios version is 4.1.1.

Is there something I´m not doing correctly here?

gmourani commented 6 years ago

I've same problem with iphone but work well with Android!

asuknath commented 6 years ago

Could you please provide me more info?

On Thu, Feb 1, 2018 at 3:36 PM, gmourani notifications@github.com wrote:

I've same problem with iphone but work well with Android!

— 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/6#issuecomment-362393873, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdgqWWBik0SHgcPXGES227DmJV-OhWvks5tQiBEgaJpZM4PJzBs .

alcius commented 6 years ago

Hello, I've same problem with iphone 6S, iOS 11.2.5 but work well with Android! Thanks for your help. image

gmourani commented 6 years ago

Could you please provide me more info? Yes, which one?

gmourani commented 6 years ago

Maybe your SDK is not updated with latest Appel SDK version!

asuknath commented 6 years ago

Unfortunately IOS devices require Valid SSL Certification. You will not be able to connect if you don't have Valid SSL. Next release I will try to find workaround.

You can add free SSL cert easily.

https://www.hostfav.com/blog/index.php/2017/08/14/add-lets-encrypt-ssl-certificate-to-nagios-4-x-running-on-centos-7/

On Thu, Feb 8, 2018 at 4:18 PM, alcius notifications@github.com wrote:

Hello, I've same problem with iphone 6S, iOS 11.2.5 but work well with Android! Thanks for your help. [image: image] https://user-images.githubusercontent.com/36280781/35998788-901dab90-0d15-11e8-92f2-0b682fb7e891.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/asuknath/Nagios-Status-JSON/issues/6#issuecomment-364251512, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdgqfJ3CQnHmmnBKieTDgpZ0B7QBE6uks5tS2S0gaJpZM4PJzBs .

asuknath commented 6 years ago

Going to test with latest IOS version and update you soon.

On Thu, Feb 8, 2018 at 4:21 PM, gmourani notifications@github.com wrote:

Maybe your SDK is not updated with latest Appel SDK version!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/asuknath/Nagios-Status-JSON/issues/6#issuecomment-364252181, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdgqaX3xLHvoMpKqAVvRjzVnCHMVq5Kks5tS2VQgaJpZM4PJzBs .

gmourani commented 6 years ago

Hello,

We have valid ssl certificate signed by Goddady !

On Feb 8, 2018, at 4:33 PM, Asuk Nath notifications@github.com wrote:

Unfortunately IOS devices require Valid SSL Certification. You will not be able to connect if you don't have Valid SSL. Next release I will try to find workaround.

You can add free SSL cert easily.

https://www.hostfav.com/blog/index.php/2017/08/14/add-lets-encrypt-ssl-certificate-to-nagios-4-x-running-on-centos-7/

On Thu, Feb 8, 2018 at 4:18 PM, alcius notifications@github.com wrote:

Hello, I've same problem with iphone 6S, iOS 11.2.5 but work well with Android! Thanks for your help. [image: image] https://user-images.githubusercontent.com/36280781/35998788-901dab90-0d15-11e8-92f2-0b682fb7e891.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/asuknath/Nagios-Status-JSON/issues/6#issuecomment-364251512, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdgqfJ3CQnHmmnBKieTDgpZ0B7QBE6uks5tS2S0gaJpZM4PJzBs .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/asuknath/Nagios-Status-JSON/issues/6#issuecomment-364255439, or mute the thread https://github.com/notifications/unsubscribe-auth/ATYxXzExg9Q9wJR8nPo1W5w1CzyrQpejks5tS2g9gaJpZM4PJzBs.

rj-dsl commented 6 years ago

Any updates on this issue? The problem still persists, even with a valid ssl cert on the site... So the prob seems to be something else..

asuknath commented 6 years ago

I'm working on new update.

Asuk

On Sat, May 19, 2018 at 8:36 PM, René Johansen notifications@github.com wrote:

Any updates on this issue? The problem still persists, even with a valid ssl cert on the site... So the prob seems to be something else..

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/asuknath/Nagios-Status-JSON/issues/6#issuecomment-390446190, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdgqd91EqHkE0ftSD6012muvw_g451qks5t0LqUgaJpZM4PJzBs .

rj-dsl commented 6 years ago

Fantastic! Im looking forward to it! Let med know if I can help with any testing, im not a coder, but I would be happy to test any betas

nomad2783 commented 5 years ago

I have the same problem still. I recently upgraded the ubuntu server running nagios3. Everything was working before, and has done so for quite a while. I upgraded from ubuntu 16.04 to 18.04 and upgraded from php5.x to php7.2 The site has https using letsencrypt.org using a gateway (so ssl has not changed from before when everything worked) when accessing the nath_status.php file directly from a browser everything seems fine, though I couldn't say if the outputted data has changed format in some way after upgrading php version, but it looks correct to me. using the app v1.0.4

agiddani commented 3 years ago

I have the same issue till now, @asuknath have you found any resolution for this. Can you please share the details about this issue. Thank you.