Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. v5.1.3 Android Client

v5.1.3 Android Client

Scheduled Pinned Locked Moved Support
40 Posts 9 Posters 321.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    C
    cserzs
    wrote on last edited by
    #23

    Hi,

    Thank you for your support.
    Can this webapi test be performed in a browser, e.g. with the URL "http://ipaddress:port/webapi"?
    I tried this, but unfortunately I didn't get any results.

    If I enter the Hostname or IP parameter in the format http://ipaddress:port in the Android app, I get an error code 500.

    1 Reply Last reply
    0
    • W
      W
      WSallade
      wrote on last edited by
      #24

      Have exact same issue. v5.2.6 on Debian, getting error 500 with Android app. 

      Have webapi module loaded and get http://<server ip>:8000 returns "{"description": "NetXMS web service API", "version": "5.2.6", "build": "5.2-443-ge9a696f0c2", "apiVersion": 1}", so this looks good.

      1 Reply Last reply
      0
      • F
        F
        Filipp Sudanov
        wrote on last edited by
        #25

        Can you capture network traffic on server's 8000 port using tcpdump (tcpdump -s 0 -w snmp.pcap port 8000) or Wireshark if you are on Windows.
        You can send resulting file to me via private message.

        Also check netxmsd log, may be there are some error messages there.

        1 Reply Last reply
        0
        • T
          T
          tolimanjo
          wrote on last edited by
          #26

          I was getting the '500' error from the client when using HTTP, and a packet capture showed HTTPS style connection attempts to the server. Perhaps Android was trying to be helpful?
          Anyway, putting an HTTPS-HTTP proxy in front of the server (and specifying https:// on the client) fixed the problem.

          1 Reply Last reply
          0
          • A
            A
            Alex Kirhenshtein
            wrote on last edited by
            #27

            @tolimanjo said in v5.1.3 Android Client:

            I was getting the '500' error from the client when using HTTP, and a packet capture showed HTTPS style connection attempts to the server. Perhaps Android was trying to be helpful?
            Anyway, putting an HTTPS-HTTP proxy in front of the server (and specifying https:// on the client) fixed the problem.

            if protocol is not specified in the connection string, https:// is added.

            1 Reply Last reply
            0
            • C
              C
              cwl
              wrote on last edited by
              #28

              @tolimanjo said in v5.1.3 Android Client:

              Anyway, putting an HTTPS-HTTP proxy in front of the server (and specifying https:// on the client) fixed the problem.

              Indeed, with nginx and a few lines in config it works via https.

              As for now it doen't look like offering much - no information on nodes, dashboard not working; will be implemented one day, I hope.
              Thq question is: the application does not notify about alarms as I can see. Is that correct?

              1 Reply Last reply
              0
              • N
                N
                NosekTomas
                wrote on last edited by
                #29

                Hi,
                I'm starting to play around with NetXMS and I can't seem to connect the new application. Or rather, I can't get the WebAPI to work/open.

                I used NetXMS a long time ago, and now I'm coming back to it. Back then, there was still the old Android application, which communicated via its mgmt port.

                Unfortunately, I couldn't find any documentation on how to get this new application up and running; the documentation refers to the old version.

                If I understand this thread correctly, the application requires the new WebAPI – the one that is set up as a module in netxmsd.conf (not the old one that was installed via a war file and tomcat).

                I added the following section to netxmsd.conf:

                Module = webapi
                
                [WEBAPI]
                ListenerPort = 8000
                

                According to the logs, it looks like the module has loaded, but is it only accessible from the localhost address?  I haven't been able to change this in any way. Port 8000 is not available when trying to connect to the netxms server.

                root@netxms-testing:/etc# ss -tulpn | grep 8000
                tcp   LISTEN 0      4096       127.0.0.1:8000       0.0.0.0:*    users:(("netxmsd",pid=8114,fd=21))
                

                Can anyone please help me or send me a link to existing documentation?

                Thank you very much.

                1 Reply Last reply
                0
                • F
                  F
                  Filipp Sudanov
                  wrote on last edited by
                  #30

                  @nosektomas said in v5.1.3 Android Client:

                  Hi,
                  I'm starting to play around with NetXMS and I can't seem to connect the new application. Or rather, I can't get the WebAPI to work/open.

                  I used NetXMS a long time ago, and now I'm coming back to it. Back then, there was still the old Android application, which communicated via its mgmt port.

                  Unfortunately, I couldn't find any documentation on how to get this new application up and running; the documentation refers to the old version.

                  If I understand this thread correctly, the application requires the new WebAPI – the one that is set up as a module in netxmsd.conf (not the old one that was installed via a war file and tomcat).

                  Hi and welcome back 🙂

                  Mobile app expects the endpoint to be https, while server module produces only http. Prior to 6.0.2 recommendation was to put nginx in reverse proxy mode. In 6.0.2 now includes reproxy, which is started by server process. You need to generate certificate files and then the following server config should work:

                  [WEBAPI]
                  TLSEnable = yes
                  TLSCertificate = /opt/netxms/etc/server.crt
                  TLSCertificateKey = /opt/netxms/etc/server.key
                  TLSPort = 8443
                  

                  Documentation is a bit behind because this is work in progress, but should be updated soon.

                  1 Reply Last reply
                  0
                  • N
                    N
                    NosekTomas
                    wrote on last edited by
                    #31

                    Thank you very much for your reply.

                    Yesterday, I found out that when I add the following to the configuration:

                    [WEBAPI]
                    Address = 0.0.0.0
                    Port = 8000
                    

                    the HTTP API becomes accessible from 0.0.0.0 – i.e. from outside of the system. I also found out that the application requires HTTPS when examining it with Wireshark. So I set up a reverse proxy ngnix in front of it and the app connected.

                    Thank you very much for the [WEBAPI] TLS configuration. I will try to add it so that I don't need an external proxy.

                    Is there a list of configuration options for [WEBAPI] somewhere? I tried about 10 options for writing "Address = 0.0.0.0". And I didn't find the TLS option (thanks for that).

                    But then - I found that when I open a node in the APP, I get an error:

                    Error: java.lang.NumberFormatException: For
                    input string: "action"
                    

                    Is this normal?

                    Thank you very much!

                    Best regards,
                    Tomáš Nosek

                    1 Reply Last reply
                    0
                    • A
                      A
                      Alex Kirhenshtein
                      wrote on last edited by
                      #32

                      it's known issue, I'll publish app update soon

                      1 Reply Last reply
                      0
                      • N
                        N
                        NosekTomas
                        wrote on last edited by
                        #33

                        @filipp-sudanov said in v5.1.3 Android Client:

                        Hi and welcome back 🙂

                        Mobile app expects the endpoint to be https, while server module produces only http. Prior to 6.0.2 recommendation was to put nginx in reverse proxy mode. In 6.0.2 now includes reproxy, which is started by server process. You need to generate certificate files and then the following server config should work:

                        Code Select Expand

                        [WEBAPI]
                        TLSEnable = yes
                        TLSCertificate = /opt/netxms/etc/server.crt
                        TLSCertificateKey = /opt/netxms/etc/server.key
                        TLSPort = 8443
                        

                        Documentation is a bit behind because this is work in progress, but should be updated soon.

                        Thanks a lot. I tried to configure the built-in reproxy according to the instructions, but it won't start. And I dont know why  😕

                        1 Reply Last reply
                        0
                        • F
                          F
                          Filipp Sudanov
                          wrote on last edited by
                          #34

                          Reproxy on linux needs it to be installed manually, as it's not easily available from package. On linux we might use something else in the future. So currently nginx is the way.

                          Supported parameters are basically Address and Port, Address supports "*" or "any" to bind to all interfaces. (https://github.com/netxms/netxms/blob/master/src/server/core/webapi.cpp#L410)

                          Rest of params are for reproxy which is not relevant if using nginx (https://github.com/netxms/netxms/blob/master/src/server/core/webapi_tls.cpp#L205)

                          1 Reply Last reply
                          0
                          • F
                            F
                            Filipp Sudanov
                            wrote on last edited by
                            #35

                            UPD: reproxy has no repository, but there's .deb package - you can just install that: https://github.com/umputun/reproxy/releases

                            1 Reply Last reply
                            0
                            • N
                              N
                              nichky
                              wrote on last edited by
                              #36

                              when we login from android, i tried
                               ip-address:8000
                              ip-address:4701
                              ip-address.
                              No of them are working im getting error 500 and 525

                              1 Reply Last reply
                              0
                              • H
                                H
                                hellium
                                wrote on last edited by
                                #37

                                Its kinda working now.

                                But the mobile client is incredibly limited in what data it shows.

                                We are mainly missing the "comment" field :/.

                                1 Reply Last reply
                                0
                                • A
                                  A
                                  Alex Kirhenshtein
                                  wrote on last edited by
                                  #38

                                  @hellium said in v5.1.3 Android Client:

                                  But the mobile client is incredibly limited in what data it shows.

                                  well, that's why I'm asking for feedback 🙂

                                  I've added comments section on object details, will be included in next update.

                                  1 Reply Last reply
                                  0
                                  • H
                                    H
                                    hellium
                                    wrote on last edited by
                                    #39

                                    Great!
                                    Thanks a lot :).

                                    1 Reply Last reply
                                    0
                                    • A
                                      A
                                      Alex Kirhenshtein
                                      wrote on last edited by
                                      #40

                                      Comments are available in open testing track (https://play.google.com/apps/testing/org.netxms.android); 1.0.6 / build 27.

                                      1 Reply Last reply
                                      0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      Powered by NodeBB Contributors
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups