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

#1
General Support / nxadm: Server error 2
June 03, 2022, 09:14:58 AM
Hi,

I can't change the debug level with nxadm:

# /opt/netxms/bin/nxadm -i

NetXMS Server Remote Console V4.1.333 Ready
Enter "help" for command list

netxmsd: debug 7
Server error 2
netxmsd: help
Server error 2
netxmsd:


BB
#2
General Support / No Peer in Object Details
November 26, 2021, 12:44:11 PM
Hi,

I have no more Peer Node, MAC, IP... in "Object Details" of all my devices.

No problems in the "Topology table" or "Topology Poll"
[26.11.2021 11:28:31] Update of peer information on interfaces
[26.11.2021 11:28:31] Local interface Te1/1/1 linked to remote interface cs9200l24p-00-4-1.xxxxxx.xx:Gi1/0/4
[26.11.2021 11:28:31] Topology of the processed link layer
[26.11.2021 11:28:31] Topology query completed for node cs9200l48-00-4-4.xxxxxx.xx


Do you know why I don't have the info in the database anymore?

Thanks,
BB
#3
General Support / snmp traps rate
July 02, 2021, 04:04:48 PM
Hi,

I have enabled snmp traps.
Everything works, but NetXMS is regularly an hour late in processing traps...
I think this is due to the thousand of devices managed.

How do I configure NetXMS to keep up with this?

thanks
BB
#4
General Support / AgentExecuteAction
June 07, 2021, 08:09:02 PM
Hello,

I am trying to use the NXSL command "AgentExecuteAction".

In the configuration file of my agent, I have placed:
ExternalParameter = Test:echo test > /tmp/test.txt
This works very well on the command line:
/opt/netxms/bin/nxget localhost 'Test

# more /tmp/test.txt
test


So, I made a very small script  ;):
AgentExecuteAction($node, "Test");

I execute it...
I can see the action in debug mode:

  ** code=0x0043 (CMD_ACTION) version=5 flags=0x0000 id=4 size=56 numFields=3
  ** 000000: [    87] UTF8-STRING "Test"
  ** 000010: [   482] INT16       0
  ** 000018: [    88] INT32       0

2021.06.07 16:22:52.231 *D* [comm.cs.4          ] Received message CMD_ACTION (4)
2021.06.07 16:22:52.231 *D* [actions            ] ExecuteAction(Test): requestId=4, RCC=404
2021.06.07 16:22:52.231 *D* [comm.cs.4          ] Sending message CMD_REQUEST_COMPLETED (ID 4; size 32; uncompressed)
2021.06.07 16:22:52.231 *D* [comm.cs.4          ] Outgoing message dump:
  ** 000000 | 00 1D 50 00 00 00 00 20 00 00 00 04 00 00 00 01 | ..P.... ........
  ** 000010 | 00 00 00 1C 00 00 00 00 00 00 01 94 00 00 00 00 | ................
  ** code=0x001D (CMD_REQUEST_COMPLETED) version=5 flags=0x0000 id=4 size=32 numFields=1
  ** 000000: [    28] INT32       404

2021.06.07 16:22:52.231 *D* [comm.cs.4          ] Communication channel closed by peer
2021.06.07 16:22:52.231 *D* [comm.cs.4          ] Session with 129.20.128.4 closed
2021.06.07 16:22:52.231 *D* [comm.cs.4          ] Session unregistered
2021.06.07 16:22:52.231 *D* [comm.cs.4          ] Receiver thread stopped

but it doesn't work ...

Is it a syntax problem?
A Parameter problem?

Thanks
BB
#5
Hi,

I tried a NXSL script to display the content of all alarms.
It works for MAC_ADDRESS_CHANGED_.* for example:
alarm = FindAlarmByKeyRegex("MAC_ADDRESS_CHANGED_.*");
println alarm->message;

MAC address for interface unknown changed from XX:XX:XX:XX:XX:XX to XX:XX:XX:XX:XX:XX
*** FINISHED ***


But it doesn't work for SERVICE_DOWN_?
alarm = FindAlarmByKeyRegex("SERVICE_DOWN_.*");
println alarm->message;

Error 14 in line 64: Function or operation argument is not an object

I must be doing it wrong...

Can you help me?

Thanks
BB
#6
General Support / Problem Creating a Network Maps.
March 12, 2021, 10:55:22 AM
Hi,

I can't create new maps in the interface (right click on Network Maps) since 3.8.193 version  :-[
My auto-creation scripts work, but the cards are empty and there are no more filters...

Have there been any changes to the Network Maps ?


BB
#7
General Support / nxdbmgr init: Segmentation fault
July 03, 2020, 04:30:35 PM
Hi,

I installed the latest version on a new server (CentOS Linux release 7.8.2003).
No compilation or installation problems:


/configure --with-server --with-mariadb --with-mariadb-compat-headers --with-agent
...
...
...
---------------------------------------------------------------------
                         Configure results
---------------------------------------------------------------------

Version                 : 3.4.178
Prefix                  : /usr/local
Platform                : Linux
Shared library suffix   : .so
Shared library version  : 34
IPv6 support            : YES
MQTT support            : YES
Build Server            : YES
Server libs             :
LDAP support            : NO
XMPP support            : YES
ZeroMQ support          : NO
Python support          : NO
Encryption enabled      : YES
SSH support enabled     : YES
Build DB-Drivers        : mariadb sqlite
Build Clients           : NO
Build Agent             : YES
Agent libs              :
Agent extra components  :
Subagents list          : linux ds18x20 netsvc ssh mqtt lorawan
Systemd support         : YES
SD-Bus support          : NO
Build Static Agent      : NO
UNICODE build           : YES
Use internal libexpat   : YES
Use internal libjansson : YES
Use internal sqlite     : YES
Use internal zlib       : NO
Force 32bit build       : NO
C compiler              : gcc
C++ compiler            : g++
C++ compiler info       : g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
CPPFLAGS                :  -D_THREAD_SAFE -D_GNU_SOURCE -O2 -Wformat -Wno-unused-result -Wno-format-truncation -Werror=return-type -fvisibility=hidden -I/usr/local/include -DUNICODE -DPREFIX=L\"${prefix}\" -DDATADIR=L\"${pkgdatadir}\" -DBINDIR=L\"${bindir}\" -DLIBDIR=L\"${libdir}\" -DPKGLIBDIR=L\"${pkglibdir}\" -DSTATEDIR=L\"${localstatedir}/lib/netxms\" -DSYSCONFDIR=L\"${sysconfdir}\" -DNDEBUG
CXXFLAGS                : -g -O2 -std=c++11 -fno-rtti -fno-exceptions -fvisibility-inlines-hidden
CFLAGS                  : -g -O2
LDFLAGS                 :   -L/usr/local/lib 
LIBS                    : -lpcre32 -lpcre -lz -lresolv -ldl  -lpthread -lssl -lcrypto -lcurl
Executable LDFLAGS      :
Executable LIBS         :
MariaDB CPPFLAGS        : -I/usr/include/mysql
MariaDB LIBS            : -lmariadb


No database creation problems either on MariaDB:
rpm -qa | grep -i maria
MariaDB-compat-10.4.13-1.el7.centos.x86_64
MariaDB-server-10.4.13-1.el7.centos.x86_64
MariaDB-client-10.4.13-1.el7.centos.x86_64
MariaDB-devel-10.4.13-1.el7.centos.x86_64
MariaDB-shared-10.4.13-1.el7.centos.x86_64
MariaDB-common-10.4.13-1.el7.centos.x86_64
$ mysql -u netxms -pPaSsWwDd
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 1056





But I'm getting a segmentation error on initial configuration using nxdbmgr utility:
$ /usr/local/bin/nxdbmgr init
NetXMS Database Manager Version 3.4.178 Build 3.4-178-g757c658f4d (UNICODE)

Initializing database...
Erreur de segmentation


Any ideas on how to fix this?

Thanks
BB
#8
General Support / nxshell
April 06, 2020, 01:06:04 PM
Hi,

In version 2.2.2, nxshell takes 10s to launch on my server.
In version 3.2.451 it takes 1m15s !

Do you know why there's such a difference?

By the way, is it possible to launch nxshell once and then have it run scripts on demand?

Thanks
#9
Hello,

I updated my netxms and nxshell version (2.2.15 => 3.1)

An attribute creation script doesn't work anymore.
Can you help it?

import csv, sys
from java.util import HashMap
...
...
        MAT = s.findObjectByName(MATname)
        if MAT :
            MATId = MAT.getObjectId()
            md = NXCObjectModificationData(MATId)
            MODIF = HashMap()
            MODIF.put("UR1location", Location)
            md.setCustomAttributes(MODIF)
            session.modifyObject(md)   
            w.writerow([
                MAT.getObjectId(),
                MAT.getObjectName(),
                MAT.getCustomAttributes(),
                ])


I'm getting the next error:

Traceback (most recent call last):
  File "/data/infra/scripts/NetXMS/Custom-Attributes_UR1location.py", line 27, in <module>
    session.modifyObject(md)
at org.netxms.client.NXCSession.modifyObject(NXCSession.java:5152)
at org.netxms.client.NXCSession.modifyObject(NXCSession.java:5691)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String cannot be cast to org.netxms.client.objects.configs.CustomAttribute



Thank's
#10
Hi,

I have an during make process in a centos 7:
"
make[5] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools/nxdbmgr »
Making all in nxminfo
make[5] : on entre dans le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools/nxminfo »
  CXX      nxminfo-nxminfo.o
  CXXLD    nxminfo
../../libnxsrv/.libs/libnxsrv.so: undefined reference to `SNMP_Variable::getValueAsMACAddr() const'
collect2: error: ld returned 1 exit status
make[5]: *** [nxminfo] Erreur 1
make[5] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools/nxminfo »
make[4]: *** [all-recursive] Erreur 1
make[4] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server/tools »
make[3]: *** [all-recursive] Erreur 1
make[3] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src/server »
make[2]: *** [all-recursive] Erreur 1
make[2] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5/src »
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le répertoire « /root/NetXMS/netxms-2.2.5 »
make: *** [all] Erreur 2
"

with the following configuration options:
./configure --with-server --with-mysql --with-agent

I have no problems in version 2.2.4.

thanks for your help.
#11
General Support / SysLocation
December 27, 2017, 12:42:31 PM
Hi,

Is it possible to create maps based on sysLocation?


Thank's.