NSClient++ Help (#1) - error:.\NSClientListener.cpp:296: (#205) - Message List

error:.\NSClientListener.cpp:296:

How to resolve this problem "error:.\NSClientListener.cpp:296:Unauthorized access from: x.x.x.x"

Thanks

  • Message #574

    use the same password on the client as the server (check the password option)

    • Message #589

      I let the password blank, which already have other machine being monitored with the same configuration of NSC.INI and this problem occurs in only two machines.

      • Message #590

        humm, the other thing to check is the allowed_hosts line but I am assuming you have it setup the same as well?

        MickeM

        • Message #593

          The file nsc.ini is as below. The log of error I can generate after giving a telnet x.x.x.x 12489

          ;# PASSWORD
          ;  This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
          password=
          ;# ALLOWED HOST ADDRESSES
          ;  This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
          ;  If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
          ;  The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access
          allowed_hosts=89.0.0.30/8
          allowed_hosts=127.0.0.1
          
          • Message #594

            humm, you cant have two allowed_hosts entries... you should have a list like so:

            allowed_hosts=89.0.0.30/8,127.0.0.1
            

            MickeM

            • Message #598

              Thank you very much, worked this way.

Subscriptions