NetXMS Support Forum

English Support => General Support => Topic started by: Tengu on December 02, 2014, 11:28:34 AM

Title: Installing agent onto Ubuntu 12.04/14.04
Post by: Tengu on December 02, 2014, 11:28:34 AM
Hi All

I was browsing through the forums and was wondering if anyone else is having an issue installing the NetXMS agent onto Ubuntu 12.04 or 14.04 x64?

I downloaded the netxms-base_1.2.17_amd64.deb file and installed it okay using dpkg -i, I then moved onto the netxms-agent_1.2.17_amd64.deb but it comes up with the following error:

...
Unpacking replacement netxms-agent ...
dpkg: dependency problems prevent configuration of netxms-agent:
netxms-agent depends on libsensors4; however:
  Package libsensors4 is not installed.
dpkg: error processing netxms-agent (--install):
dependency problems - leaving unconfigured
Processing triggers for ureadahead ...
Errors were encountered while processing:
netxms-agent

I then decided to try the generic linux package, but when I gunzip the nxagent-1.7.17-linux-x86-static.tar.gz file I find there's only "nxagentd". Is there some way to set up just the nxagentd?
Title: Re: Installing agent onto Ubuntu 12.04/14.04
Post by: tomaskir on December 03, 2014, 09:54:39 AM
This is completely normal, nxagentd has some dependencies which it needs.

I suggest adding the netxms apt repo, and installing said packages from the apt repo.
Apt will take care of the dependency chain automatically for you.
Title: Re: Installing agent onto Ubuntu 12.04/14.04
Post by: Tengu on December 03, 2014, 10:54:18 AM
I'm assuming the repository is here: https://www.netxms.org/apt/dists/
The only distros I see in the repository are for Debian 5, 6 and 7.
How do I go about using them for Ubuntu 14.04 and 12.04?
Title: Re: Installing agent onto Ubuntu 12.04/14.04
Post by: Victor Kirhenshtein on December 03, 2014, 12:20:46 PM
Hi,

Debian 7 packages should work on Ubuntu, and so you can use repository for Debian 7. You can just add

deb https://www.netxms.org/apt wheezy main

to /etc/apt/sources.list, then run

apt-get update
apt-get install netxms-agent

Should work fine.

Best regards,
Victor
Title: Re: Installing agent onto Ubuntu 12.04/14.04
Post by: tomaskir on December 03, 2014, 12:30:56 PM
Yes, that is the right repo.

Simply do in console:
echo deb https://www.netxms.org/apt wheezy main >> /etc/apt/sources.list.d/netxms.list

Then
apt-get update && apt-get install netxms-agent
Title: Re: Installing agent onto Ubuntu 12.04/14.04
Post by: tomaskir on December 03, 2014, 12:31:21 PM
Damn, Victor beat me to it :)
Title: Re: Installing agent onto Ubuntu 12.04/14.04
Post by: Tengu on December 03, 2014, 01:38:41 PM
Thanks for the replies, I've added it to the sources list and went to get netxms-agent, but I'm presented with the following error:

The following packages have unmet dependencies.
netxms-agent : Depends: libsensors4 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Title: Re: Installing agent onto Ubuntu 12.04/14.04
Post by: Victor Kirhenshtein on December 03, 2014, 02:23:54 PM
Try to install libsensors4 manually. It's a bit strange though - I test it on Ubuntu 14.04 LTS and installation went fine.

Best regards,
Victor