NetXMS Support Forum

English Support => General Support => Topic started by: enryfantasy on May 26, 2015, 02:50:35 PM

Title: Can't login to netxms web interface
Post by: enryfantasy 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
Title: Re: Can't login to netxms web interface
Post by: Alex Kirhenshtein 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.
Title: Re: Can't login to netxms web interface
Post by: enryfantasy 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.
Title: Re: Can't login to netxms web interface
Post by: Alex Kirhenshtein on May 26, 2015, 03:30:45 PM
Set "LogFile" in /etc/netxmsd.conf to some location where file can be created.
For example:LogFile=/var/log/netxmsd
Title: Re: Can't login to netxms web interface
Post by: enryfantasy 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.
Title: Re: Can't login to netxms web interface
Post by: Alex Kirhenshtein 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:
sudo /sbin/setcap cap_net_bind_service,cap_net_raw=ep /opt/netxms/bin/netxmsd

To verify:
1) check with getcap:$ /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