Can't login to netxms web interface

Started by enryfantasy, May 26, 2015, 02:50:35 PM

Previous topic - Next topic

enryfantasy

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

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

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

Set "LogFile" in /etc/netxmsd.conf to some location where file can be created.
For example:LogFile=/var/log/netxmsd

enryfantasy

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

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