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

Topics - Sack-C-Fix

#1
Hello,

for some purposes it would be beneficial to be able to change the address of a node via NXSL.

Maybe this function already exists, but I didn't find anything in the documentation.


Thanks

Andreas
#2
Hello,

looks like I've got the next problem.
In the event log of the server I find the following entries:

Database query failed (Query: SELECT drop_chunks(to_timestamp(1628553600), 'tdata_sc_default'); Error: TS001 ERROR:  "tdata_sc_default" is not a hypertable or a continuous aggregate view
HINT:  It is only possible to drop chunks from a hypertable or continuous aggregate view)


I use, at least I thought I did, a TimescaleDB. During initialisation, it was also specified as such, and Timescale is also displayed as an extension in the database.

In timescaledb_information.hypertable, however, no tables are displayed, are these not used by Netxms?
If not, how can the old (or all) data be removed, the DB is currently over 500GB in size.

Thanks in advance

Andy
#3
General Support / Poll WebService through "proxy"
September 01, 2021, 02:34:16 PM
Hello,
is it possible to have the query executed by another node?
Our server has no connection to the internet, but there is an agent which has the corresponding permissions.

I would like to query the web services from this agent, but I cannot find a suitable configuration.
"Poller Node" and/or "Source Node" do not seem to work here, we are not using zoning.

Checks via nxwsget are working as expected.

Thanks
Andy
#4
General Support / Netxms-Server crashes after tuning
April 08, 2021, 03:09:55 PM
Hello,

I have a problem with the correct tuning of the server.

We use version 3.8.193 of the netxms-server, database is postgresql 11.11 with timescaledb.
The whole thing is set up as a cluster (2 nodes), as described here in the forum (pacemaker, corosync), under ESX.
Each VM has 8 CPUs and 16 GB RAM, storage (flash) is connected via SAN, the network has 10 Gbit.

Without (or moderate) tuning, the CPU-load is approx. 1,6.
However, the threads, mostly POLLERS, are completely overloaded:


POLLERS
   Threads.............. 500 (250/500)
   Load average......... 4006.09 4004.16 4002.81
   Current load......... 801%
   Usage................ 100%
   Active requests...... 4005
   Scheduled requests... 0
   Total requests....... 2991207
   Thread starts........ 250
   Thread stops......... 0
   Average wait time.... 13489521 ms


If I adjust the configuration, e.g. ThreadPool.Poller.MaxSize = 4000 and so on, the load is significantly reduced.
However, after some time (minutes, hours, days) the CPU-load increases to 300 or more and the service is terminated, systemctl says netxms-server aborted.

Here the stats:

Objects............: 39878
Monitored nodes....: 4050
Collectible DCIs...: 26354
Active alarms......: 970
Uptime.............: 27 days,  4:16:28


Approx. 1100 of these are network devices that are queried via SNMP. To reduce the load, the topology query is deactivated for these.
700 are server (with agent), the rest of the devices, with a few exceptions, are monitored via PING.

The network devices are polled via proxy, other devices are connected directly to the server.

I have returned to a working configuration (with slow pollers and data collection), but would like to know how I can optimise the system.
Unfortunately I don't have any logs from the last crash, is there any other information that helps to solve the problem?

I would appreciate any tips on how to make the system more reliable.

Andi
#5
Hi everyone,

I have a problem with executing an agentĀ“s action via EPP and found also some strange behaviour on Linux, systems are:

  • Server-Linux: Debian 9, NetXMS-Server 3.0.2357
  • Server-Windows: Server 2012 R2, NetXMS-Server 2.2.16
  • Agent-Windows: Server 2012 R2, NetXMS-Agent 3.0.2357

What i want is to execute a cmd-Script (send message) on the Windows-Agent, tested it with following config (nxagentd.conf)

...
EnableActions = yes
Action = notify: C:\\Local\\Binw\\Notify_V3.cmd -S $1 -D $2 -M $3 -G $4 -L $5
...


Using parameters for the action, things get strange on the Linux-Server:
/bin/# ./nxaction -o 192.168.9.40 notify Test2 NetXMS E NetXMS2 LinNXACTION

Working, i get mail:
Executing action C:\\Local\\Binw\\Notify_V3.cmd -S Test -D NetXMS -M E -G NetXMS2 -L LinNXACTION of type 1

Via Action + EPP, not working:
Executing action C:\\Local\\Binw\\Notify_V3.cmd -S Test NetXMS E NetXMS2 LinEPP -D NetXMS E NetXMS2 LinEPP -M E NetXMS2 LinEPP -G NetXMS2 LinEPP -L LinEPP of type 1

I tried almost 50 different versions of the config (using " or ' around single parameters, all parameters, escaping the parameters with \" an \' and so on), but i always get a result like the above.
Seems there is an problem transmitting and escaping the string from Linux to Windows, because if i use same config from within Windows-Server i get (which is also not working):
Executing action C:\\Local\\Binw\\Notify_V3.cmd -S Test -D NetXMS -M E -G NetXMS2 -L WinEPP of type 1

So, is this a known problem or am i doing it wrong?
And, has someone a working example of using an action with multiple parameters?

Thanks

Andreas
#6
General Support / Add Image to Library via Java-API
July 04, 2017, 09:44:01 AM
Hi there,
first of all, thanks for this awesome Software.

I am trying to add some Icons to the ImageLibrary via Java-API but i am not sure how to do this.
What I have already tried:

  • Upload png to Server with uuid as Filename, this works, file is in /var/files/
  • Instantiate new LibraryImage(uuid, Name, category,...), works also, except for empty Image
  • createImage adds Image to Library with desired Name, but then I get a NullPointerException because of the empty image :-\

So, can someone help me on how to get an png-File on the Server into the ImageLibrary?

Thanks
Andy

Edit:

Ok, got it working.
String objectName = (String)object1.getObjectName();
String fileName = "C:/Users/xxx/Images/" + objectName + ".PNG";
UUID uuid = UUID.randomUUID();
ProgressListener listener = null;
byte[] array = Files.readAllBytes(new File(fileName).toPath());      

LibraryImage newImg = new LibraryImage(uuid, objectName, "Default", "image/png", false);
newImg.setBinaryData(array);
s.createImage(newImg, listener);


Only Problem now, it takes some time until i can assign the new Image to a Node.