Installing agent onto Ubuntu 12.04/14.04

Started by Tengu, December 02, 2014, 11:28:34 AM

Previous topic - Next topic

Tengu

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?

tomaskir

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.

Tengu

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?

Victor Kirhenshtein

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

tomaskir

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

tomaskir


Tengu

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).

Victor Kirhenshtein

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