NetXMS Support Forum

English Support => General Support => Topic started by: Mko61 on August 10, 2018, 01:04:50 PM

Title: Agent on ubuntu 16.04 not starting
Post by: Mko61 on August 10, 2018, 01:04:50 PM
Hi all,

I tried the installation as described in https://www.netxms.org/documentation/adminguide/installation.html but I can't get the agent running.

As a recap from the above link the installation steps were:
$ wget http://packages.netxms.org/netxms-release_1.2_all.deb
$ sudo dpkg -i netxms-release_1.2_all.deb
sudo apt-get update
apt-get install netxms-agent

I try to start tha agent by the command "nxagentd -d" and have no errors nor messages, but the agent doesn't start. The server doesn't recognize the agent (altought the machine il seen) and it's not listed by "ps -A".

Since I'm really not skilled in linux, maybe that I miss something fundamental, so fundamental that it's not in the manual.

Can anyone help me?

Thanks, Marco


Title: Re: Agent on ubuntu 16.04 not starting
Post by: Victor Kirhenshtein on August 13, 2018, 11:10:51 AM
Hi,

check agent configuration file - it should have correct log settings and correct management server address in MasterServers. You can also tun agent in foreground with maximum debug as

nxagentd -D9

and check what is going on.

Best regards,
Victor
Title: Re: Agent on ubuntu 16.04 not starting
Post by: Mko61 on August 13, 2018, 03:33:29 PM

Hi Victor,

thank you for you answer.

I did what you suggested and got a lot of messages on the screen, none of errors except the first: "Error reading additional configuration files from '/etc/nxagentd.conf.d'" ... actually that file does not exist. Is it really missing or is not needed?

Anyway, the bunch of lines terminates with a nice "Agent running. Press Ctrl+C to shutdown."

Now the agent is visible as a running process (ps -A, pstree) but the object detail in the Management Console continues to show it as "isAgent=No" and no monitoring action (eg. adding a data collector based on agent) is possible.

Have you any further suggestion?

Best Regards,

Marco



Title: Re: Agent on ubuntu 16.04 not starting
Post by: Victor Kirhenshtein on August 14, 2018, 10:41:15 AM
Try to run configuration poll manually (right click on node, Poll, then Configuration). Check what agent will report.

Best regards,
Victor