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 - Mystery

#1
General Support / NetXMS update 2.2.10 to newest
September 21, 2022, 03:02:35 PM
Hello,

I have very old version of NetXMS and I would like to update it to the newest version. Is it possible to install fresh server with latest version and migrate DB from 2.2.10 to 4.X?

If not, does anybody know how to fix this error when I try to update it via apt-get update on old version of debian?

/var/lib/dpkg/info/netxms-server:amd64.postinst: 89: /var/lib/dpkg/info/netxms-server:amd64.postinst: /usr/bin/nxdbmgr: Permission denied Or when I try to compile it manually via

sh ./configure --with-server --with-mysql --with-agent --enable-unicode --with-pcre=/opt/pcre/lib64
configure: error: libpcre32 is requred which I have installed before

Thank you very much :-)
#2
Somehow service is trying to start older version of server.
Anyway if I run manually netxmsd from console, it load right version NetXMS Server V3.3.315 Build 3.3-315-g5360e23aa3 (UNICODE) Ready
But after a while, there is a SIGSEGV error and it stops.

2020.05.18 10:43:25.592 *I* [db.drv             ] Database driver "sqlite.ddr" loaded and initialized successfully
2020.05.18 10:43:26.392 *I* [                   ] NetXMS Server started

NetXMS Server V3.3.315 Build 3.3-315-g5360e23aa3 (UNICODE) Ready
Enter "help" for command list or "down" for server shutdown
System Console

netxmsd: 2020.05.18 10:43:26.645 *I* [                   ] Listening for syslog messages on UDP socket 0.0.0.0:514
2020.05.18 10:43:26.645 *I* [                   ] Listening for syslog messages on UDP socket :::514
2020.05.18 10:43:26.645 *I* [                   ] SocketListener/MobileDevices: listening on 0.0.0.0:4747
2020.05.18 10:43:26.645 *I* [                   ] SocketListener/MobileDevices: listening on [0.0.0.0]:4747
2020.05.18 10:43:26.646 *I* [                   ] SocketListener/Clients: listening on 0.0.0.0:4701
2020.05.18 10:43:26.646 *I* [                   ] SocketListener/Clients: listening on [0.0.0.0]:4701
2020.05.18 10:43:26.646 *I* [                   ] Listening for SNMP traps on UDP socket 0.0.0.0:162
2020.05.18 10:43:26.646 *I* [                   ] Listening for SNMP traps on UDP socket :::162
2020.05.18 10:43:26.646 *I* [                   ] SocketListener/AgentTunnels: listening on 0.0.0.0:4703
2020.05.18 10:43:26.646 *I* [                   ] SocketListener/AgentTunnels: listening on [0.0.0.0]:4703
Unauthorized access to memory (SIGSEGV)

#3
Hello, I upgraded from scratch our NetXMS instance from 2.2.10 to 3.3.315 on Linux debian
nxdbmgr check OK
nxdbmgr upgrade after 10 days OK
nxagentd run ok

When i run service netxmsd start
it says running but in /var/log/netxms.log I can see Errors:

2020.05.18 08:08:03.608 Log file opened (rotation policy 2, max size 16777216)
2020.05.18 08:08:04.058 *I* Platform subagent "/usr/local/lib/netxms/linux.nsm" successfully loaded
2020.05.18 08:08:04.203 *I* Database driver "mysql.ddr" loaded and initialized successfully
2020.05.18 08:08:04.694 *E* Your database has format version 32.12, but server is compiled for version 22.40

When I restarted server and these services are autostart, it started server somehow with same error:

2020.05.18 08:25:28.024 *I* [logger             ] Log file opened (rotation policy 2, max size 16777216)
2020.05.18 08:25:28.028 *I* [                   ] Code page set to ISO8859-1
2020.05.18 08:25:28.029 *I* [                   ] Platform subagent "/usr/local/lib/netxms/linux.nsm" successfully loaded
2020.05.18 08:25:28.031 *I* [db.drv             ] Database driver "mysql.ddr" loaded and initialized successfully
2020.05.18 08:25:28.031 *E* [                   ] Unable to bind socket for local admin interface (98 Address already in use)
2020.05.18 08:25:33.329 *I* [                   ] Server ID 2BE33A49B3270BF8
2020.05.18 08:25:33.668 *I* [                   ] Server certificate not set
2020.05.18 08:25:35.592 *E* Your database has format version 32.12, but server is compiled for version 22.40
2020.05.18 08:25:44.241 *I* [db.drv             ] Database driver "sqlite.ddr" loaded and initialized successfully
2020.05.18 08:25:51.643 *I* [db.drv             ] Database driver "sqlite.ddr" loaded and initialized successfully

But all values and history on nodes are empty, even netxms server node is saying there is running agent 2.2.10.
Somehow DB is for 3.3.X and server instalation is older.

Any tips how to fix this?
Thank you.
#4
General Support / Duplicate emails after update to 2.2.10
November 23, 2018, 09:13:05 AM
Hello, after update to version 2.2.10 I am experiencing problem with sending duplicate emails.
I checked configuration and it seems there should be only one email when node goes down or up.

The time difference between both e-mail is from 1 sec to 1 minute and the interesting point is that I have been playing with some UTF8 changes in emails body and one email is without UTF8 characters and second one is with UTF8 char. When I check Actions Configuration, I can only see that email skeletons with UTF8. There is also only one Action in DB, so there must be somewhere problem but I don't know how to debug that. Any idea? Will Syslog Monitor help or where can I see processed e-mails?

Thank you in advance.
#5
General Support / Re: UTF8 in e-mail problem (2.2.10)
November 22, 2018, 04:38:53 PM
Ok I solved it :-) I have to change also table charset and fields name charset.

Thank you.
#6
General Support / Re: UTF8 in e-mail problem (2.2.10)
November 22, 2018, 02:28:23 PM
Hello, probably yes, because when I create new data, it changes half of these characters too.
MySQL DB is set to UTF8.

Container names, object names, event processing policy, etc .... work ok with all UTF8 char set without problem.
Strange.

Can you try to write Č OR Ř to Event configuration, refresh it and see if encoding works?
#7
General Support / Re: UTF8 in e-mail problem (2.2.10)
November 16, 2018, 01:22:00 PM
Hello, that was the problem. Thanks.

Now I can see the last UTF8 strange problem, in Event Configuration half of UTF8 characters are changed to ? This is weird.
For example:

ěščřžýáíéůú
is changed to:
?š??žýáíéé?ú

Name of containers are ok. Any idea? Thank you.
#8
General Support / UTF8 in e-mail problem (2.2.10)
November 06, 2018, 09:51:38 AM
Hello, I recompiled server to UNICODE and changed my MySQL DB to UTF8 but when I try to receive some UTF8 mail, it skips all these characters. Can anyone tell me how to diagnostic this behaviour or what needs to be configured more?

My settings:

NetXMS Server Version 2.2.10 Build 9516 (2.2.10) (UNICODE)
NXCP: 4.48.1.14 (AES-256, Blowfish-256, 3DES, AES-128, Blowfish-128)
Built with: g++ (Debian 4.9.2-10) 4.9.2

MySQL:

+--------------------------+----------------------------+
| Variable_name            | Value                      |
+--------------------------+----------------------------+
| character_set_client     | utf8                       |
| character_set_connection | utf8                       |
| character_set_database   | utf8                       |
| character_set_filesystem | binary                     |
| character_set_results    | utf8                       |
| character_set_server     | utf8                       |
| character_set_system     | utf8                       |
| character_sets_dir       | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+

Thank you.
#9
Hello, thank you.
I upgraded our netXMS instance without any problems :-)
#10
General Support / Update from 2.0.8 to 2.2.3 or newer
February 26, 2018, 08:56:35 AM
Hello,

is it possible to update from 2.0.8 to latest version directly or I should I update to 2.1 first?
Thank you.
#11
General Support / Second network interface
August 11, 2017, 09:37:06 AM
Hello,

we would like to monitor some of our critical infrastructure via another network interface. Is it possible to add 2nd interface and somewhere set NetXMS to monitor some specific servers only via this new network interface?

Thank you
#12
General Support / Re: NXLS Script returns bad sum values
November 02, 2016, 08:48:26 AM
Ok, I solved it by:

return real(GetDCIValueByDescription.....

and also by val1 = real(GetDCI ...
#13
General Support / Re: NXLS Script returns bad sum values
November 01, 2016, 12:20:29 PM
Well,

return val1 / 1000 + val2 /1000 + val3 /1000;

returns correct numbers (/1000 lower ofc), so it has to be something with overflow ...
#14
General Support / NXLS Script returns bad sum values
November 01, 2016, 11:41:04 AM
Hello guys,

I have one question about scripting in NetXMS. I wrote script, which simply sum three values and return this result.

val1 = GetDCIValueByDescription ...
val2 = GetDCIValueByDescription ...
val3 = GetDCIValueByDescription ...

return val1 + val2 + val3;

When I return val1 or val2 or val3 it returns right number, but when I sum these values, it returns negative incorrect value.
For example val1 = 200.50 val2 = 700.56 and val3 = 1500. When I sum it, it returns -1400 ... That's very strange ...
I thought it could be due to overflow of float value, but somehow it works correctly on different servers with higher values.

Any idea how to solve this or debug this?? Thank you in advance
#15
It works pretty well. Thank you sir :-)