NetXMS Agent Setup

tested on slackware

Setup

no need for the agent on the server itself

Slackware – grab the latest

#wget https://www.netxms.org/download/releases/3.8/nxagent-3.8.314-linux-x86_64.tar.gz
wget https://www.netxms.org/download/releases/3.8/nxagent-3.8.314-linux-x86_64-static.tar.gz
tar tvzf nxagent-3.8.314-linux-x86_64-static.tar.gz
tar xzf nxagent-3.8.314-linux-x86_64-static.tar.gz -C /usr/local/bin/
ls -ltrhF /usr/local/bin/
vi /etc/nxagentd.conf

MasterServers = SERVER-ADDRESS
LogFile = /var/log/nxagentd
EnableAgentRegistration = 1

TODO – can run as user?

Ubuntu

wget http://packages.netxms.org/netxms-release-latest.deb
dpkg -i netxms-release-latest.deb
apt-get update

install netxms-agent
systemctl start nxagentd
systemctl enable nxagentd

Ready to go

Register the agent and exit

nxagentd -c /etc/nxagentd.conf -r SERVER-ADDRESS
^C

Slackware – enable at startup

vi /etc/rc.local

echo -n nxagent...
/usr/local/bin/nxagentd -c /etc/nxagentd.conf -d && echo done || echo FAIL

status

pgrep -a nxagent
tail /var/log/nxagentd
netstat -lntup | grep nxagent

stop

pkill nxagent

Blocking the public interface

Cannot bind to nic/ip? then block the port specifically from the outside

    table inet filter {
            chain input {
                    type filter hook input priority filter; policy accept;

                    iifname xenbr0 tcp dport 4700 reject with tcp reset;
            }
    }

Resources

Installing from deb repository https://www.netxms.org/documentation/adminguide/installation.html#installing-from-deb-repository

https://www.netxms.org/documentation/adminguide/agent-management.html


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun