Author Topic: Can't login to netxms web interface  (Read 5099 times)

enryfantasy

  • Newbie
  • *
  • Posts: 12
    • View Profile
Can't login to netxms web interface
« on: May 26, 2015, 02:50:35 pm »
Hi.
I just intalled 1.2.17 netxms version and it's web interface by eploying the war file into tomcat.
I then tried to login to the web interface but I always get a "Connection refused".
I tried "admin" and "netxms" as apssword but nothing.
Which default user and password am I supposed to use?

Thanks,
enrico

Alex Kirhenshtein

  • Team Member
  • Administrator
  • Hero Member
  • *****
  • Posts: 999
    • View Profile
Re: Can't login to netxms web interface
« Reply #1 on: May 26, 2015, 02:58:09 pm »
Hello. admin/netxms is default credentials, but you have another issue – WebUI can't connect to the server. Check that netxmsd is running and accepting connections on port 4701/TCP.

enryfantasy

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Can't login to netxms web interface
« Reply #2 on: May 26, 2015, 03:18:01 pm »
I tried to launch netxmsd without any parametrs and I get an error.
FATAL ERROR: cannot open log file.

Why that?
I tried to comment the line in /etc/netxmsd.conf regarding the log file but I always get that error.

Alex Kirhenshtein

  • Team Member
  • Administrator
  • Hero Member
  • *****
  • Posts: 999
    • View Profile
Re: Can't login to netxms web interface
« Reply #3 on: May 26, 2015, 03:30:45 pm »
Set "LogFile" in /etc/netxmsd.conf to some location where file can be created.
For example:
Code: [Select]
LogFile=/var/log/netxmsd

enryfantasy

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Can't login to netxms web interface
« Reply #4 on: May 26, 2015, 05:48:01 pm »
Great! thank you.
I found out that /var/log wasn't accessible by the netxms. so I changed that line in the conf file to point into /home/{myusername}/netxms and now it works!

Thank you.

Alex Kirhenshtein

  • Team Member
  • Administrator
  • Hero Member
  • *****
  • Posts: 999
    • View Profile
Re: Can't login to netxms web interface
« Reply #5 on: May 27, 2015, 02:43:39 pm »
Please note that if netxmsd is started without root permissions, ICMP and SNMP traps will not work (RAW sockets required for ICMP and SNMP traps are received on port 162).

If you running modern Linux you can set capabilities to overcome that:
Code: [Select]
sudo /sbin/setcap cap_net_bind_service,cap_net_raw=ep /opt/netxms/bin/netxmsd
To verify:
1) check with getcap:
Code: [Select]
$ /sbin/getcap /opt/netxms/bin/netxmsd
/opt/netxms/bin/netxmsd = cap_net_bind_service,cap_net_raw+ep
2) This error should not appear anymore on log file: "[ERROR] Unable to bind socket to port 162 in function SNMPTrapReceiver: Permission denied"

P.S. setcap/getcap are from package libcap2-bin