News:

We really need your input in this questionnaire

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - tolimanjo

#16
General Support / Re: Linux Agent
June 12, 2020, 03:28:19 PM
Looks like you struck the same issue with Mint that I did, where 'libssl1.0.2' isn't installed.

Assuming you are on an Intel/AMD 64-bit platform then you can download its Debian package from the command line using:

      wget http://ftp.us.debian.org/debian/pool/main/o/openssl1.0/libssl1.0.2_1.0.2u-1~deb9u1_amd64.deb

then run:

      sudo apt-get install ./libssl1.0.2_1.0.2u-1~deb9u1_amd64.deb
      sudo apt-get install netxms-agent

That should get the agent installed.
#17
General Support / Re: Linux Agent
June 11, 2020, 12:32:57 PM
I did an agent install on Mint 19.2 recently. Here are my notes - hope they help:


In '/etc/apt/sources.list.d' create new file 'netxms.list' and add the following line:

   deb http://packages.netxms.org/debian/ stretch main
   
Install NetXMS agent with:

   wget -q -O - http://packages.netxms.org/netxms.gpg | sudo apt-key add -
   apt-get update
   apt-get install netxms-agent

(In my case I got the following error:

      The following packages have unmet dependencies:
      netxms-agent : Depends: netxms-base (= 3.3.350-1) but it is not going to be installed
            Depends: netxms-dbdrv-sqlite3 (= 3.3.350-1) but it is not going to be installed
            Depends: libcurl3 (>= 7.16.2) but it is not going to be installed
            Depends: libssl1.0.2 (>= 1.0.2d) but it is not installable

   ...so downloaded the libssl1.02 package from 'https://packages.debian.org/stretch/libssl1.0.2' and ran the following:

      apt install ./libssl1.0.2_1.0.2u-1_deb9u1_amd64.deb
      apt-get install libcurl3
      apt-get install netxms-agent
)

In '/etc/nxagentd.conf' uncomment the 'MasterServers' attribute and change its value to the NetXMS server DNS or IP address

Set the agent to start at boot, and then start it:

   systemctl enable nxagentd
   systemctl start nxagentd

Make sure it's running:

   service nxagentd status
   
Should now be able to register the agent on the server as per section 6.5.1 of the admin guide.
#18
Trying to do a transformation on a trap parameter. Have tried doing it this way:

oid = $1;
status = $2;
newStatus = "unknown";

switch (status)
{
   case "1"
      newStatus = "up";
      break;
   case "2":
      newStatus = "down";
      break;
}

return %(oid, newStatus);


It doesn't appear to work though, so how should I reference (and return) the parameter values?

Thanks.